#include <limits.h>#include <stdio.h>#include "config.h"#include "global.h"#include "cpu_accel.h"#include "simd.h"

Go to the source code of this file.
Data Structures | |
| struct | _blockcrd |
| struct | mb_motion |
| struct | subsampled_mb |
Defines | |
| #define | pipestep(o) v = p1[o]-p2[o]; s+= abs(v); |
| #define | pipestep(o) diff = p1[o]-p2[o]; s += abs(diff) |
| #define | pipestep(o) diff = p1[o]-p2[o]; s += diff < 0 ? -diff : diff; |
Typedefs | |
| typedef struct _blockcrd | blockxy |
| typedef struct mb_motion | mb_motion_s |
| typedef struct subsampled_mb | subsampled_mb_s |
Functions | |
| static void | frame_ME (motion_engine_t *engine, pict_data_s *picture, motion_comp_s *mc, int mboffset, int i, int j, struct mbinfo *mbi) |
| static void | field_ME (motion_engine_t *engine, pict_data_s *picture, motion_comp_s *mc, int mboffset, int i, int j, struct mbinfo *mbi, int secondfield, int ipflag) |
| static void | frame_estimate (motion_engine_t *engine, uint8_t *org, uint8_t *ref, subsampled_mb_s *ssmb, int i, int j, int sx, int sy, mb_motion_s *bestfr, mb_motion_s *besttop, mb_motion_s *bestbot, int imins[2][2], int jmins[2][2]) |
| static void | field_estimate (motion_engine_t *engine, pict_data_s *picture, uint8_t *toporg, uint8_t *topref, uint8_t *botorg, uint8_t *botref, subsampled_mb_s *ssmb, int i, int j, int sx, int sy, int ipflag, mb_motion_s *bestfr, mb_motion_s *best8u, mb_motion_s *best8l, mb_motion_s *bestsp) |
| static void | dpframe_estimate (motion_engine_t *engine, pict_data_s *picture, uint8_t *ref, subsampled_mb_s *ssmb, int i, int j, int iminf[2][2], int jminf[2][2], mb_motion_s *dpbest, int *imindmvp, int *jmindmvp, int *vmcp) |
| static void | dpfield_estimate (motion_engine_t *engine, pict_data_s *picture, uint8_t *topref, uint8_t *botref, uint8_t *mb, int i, int j, int imins, int jmins, mb_motion_s *dpbest, int *vmcp) |
| static void | fullsearch (motion_engine_t *engine, uint8_t *org, uint8_t *ref, subsampled_mb_s *ssblk, int lx, int i0, int j0, int sx, int sy, int h, int xmax, int ymax, mb_motion_s *motion) |
| static void | find_best_one_pel (motion_engine_t *engine, uint8_t *org, uint8_t *blk, int searched_size, int i0, int j0, int ilow, int jlow, int xmax, int ymax, int lx, int h, mb_motion_s *res) |
| static int | build_sub22_mcomps (motion_engine_t *engine, int i0, int j0, int ihigh, int jhigh, int null_mc_sad, uint8_t *s22org, uint8_t *s22blk, int flx, int fh, int searched_sub44_size) |
| static int | unidir_pred_var (const mb_motion_s *motion, uint8_t *mb, int lx, int h) |
| static int | bidir_pred_var (const mb_motion_s *motion_f, const mb_motion_s *motion_b, uint8_t *mb, int lx, int h) |
| static int | bidir_pred_sad (const mb_motion_s *motion_f, const mb_motion_s *motion_b, uint8_t *mb, int lx, int h) |
| static int | variance (uint8_t *mb, int size, int lx) |
| static int | dist22 (uint8_t *blk1, uint8_t *blk2, int qlx, int qh) |
| static int | dist44 (uint8_t *blk1, uint8_t *blk2, int flx, int fh) |
| static int | dist2_22 (uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int | bdist2_22 (uint8_t *blk1f, uint8_t *blk1b, uint8_t *blk2, int lx, int h) |
| static int | dist1_00 (uint8_t *blk1, uint8_t *blk2, int lx, int h, int distlim) |
| static int | dist1_01 (uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int | dist1_10 (uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int | dist1_11 (uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int | dist2 (uint8_t *blk1, uint8_t *blk2, int lx, int hx, int hy, int h) |
| static int | bdist2 (uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) |
| static int | bdist1 (uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) |
| static int | unidir_chrom_var_sum (mb_motion_s *lum_mc, uint8_t **ref, subsampled_mb_s *ssblk, int lx, int h) |
| int | bidir_chrom_var_sum (mb_motion_s *lum_mc_f, mb_motion_s *lum_mc_b, uint8_t **ref_f, uint8_t **ref_b, subsampled_mb_s *ssblk, int lx, int h) |
| static int | chrom_var_sum (subsampled_mb_s *ssblk, int h, int lx) |
| static void | sub_mean_reduction (mc_result_s *matches, int len, int times, int *newlen_res, int *minweight_res) |
| static int | build_sub44_mcomps (motion_engine_t *engine, int ilow, int jlow, int ihigh, int jhigh, int i0, int j0, int null_mc_sad, uint8_t *s44org, uint8_t *s44blk, int qlx, int qh) |
| void | fast_motion_data (uint8_t *blk, int picture_struct) |
| void | init_motion () |
| void | motion_engine_loop (motion_engine_t *engine) |
| void | motion_estimation (pict_data_s *picture, motion_comp_s *mc_data, int secondfield, int ipflag) |
| void | start_motion_engines () |
| void | stop_motion_engines () |
Variables | |
| static void(* | pfind_best_one_pel )(motion_engine_t *engine, uint8_t *org, uint8_t *blk, int searched_size, int i0, int j0, int ilow, int jlow, int xmax, int ymax, int lx, int h, mb_motion_s *res) |
| static int(* | pbuild_sub22_mcomps )(motion_engine_t *engine, int i0, int j0, int ihigh, int jhigh, int null_mc_sad, uint8_t *s22org, uint8_t *s22blk, int flx, int fh, int searched_sub44_size) |
| static int(* | pdist2_22 )(uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int(* | pbdist2_22 )(uint8_t *blk1f, uint8_t *blk1b, uint8_t *blk2, int lx, int h) |
| static int(* | pdist22 )(uint8_t *blk1, uint8_t *blk2, int flx, int fh) |
| static int(* | pdist44 )(uint8_t *blk1, uint8_t *blk2, int qlx, int qh) |
| static int(* | pdist1_00 )(uint8_t *blk1, uint8_t *blk2, int lx, int h, int distlim) |
| static int(* | pdist1_01 )(uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int(* | pdist1_10 )(uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int(* | pdist1_11 )(uint8_t *blk1, uint8_t *blk2, int lx, int h) |
| static int(* | pdist2 )(uint8_t *blk1, uint8_t *blk2, int lx, int hx, int hy, int h) |
| static int(* | pbdist2 )(uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) |
| static int(* | pbdist1 )(uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) |
| #define pipestep | ( | o | ) | diff = p1[o]-p2[o]; s += diff < 0 ? -diff : diff; |
| #define pipestep | ( | o | ) | diff = p1[o]-p2[o]; s += abs(diff) |
| #define pipestep | ( | o | ) | v = p1[o]-p2[o]; s+= abs(v); |
Referenced by dist1_00(), dist22(), and dist44().
| typedef struct mb_motion mb_motion_s |
| typedef struct subsampled_mb subsampled_mb_s |
| static int bdist1 | ( | uint8_t * | pf, | |
| uint8_t * | pb, | |||
| uint8_t * | p2, | |||
| int | lx, | |||
| int | hxf, | |||
| int | hyf, | |||
| int | hxb, | |||
| int | hyb, | |||
| int | h | |||
| ) | [static] |
| static int bdist2 | ( | uint8_t * | pf, | |
| uint8_t * | pb, | |||
| uint8_t * | p2, | |||
| int | lx, | |||
| int | hxf, | |||
| int | hyf, | |||
| int | hxb, | |||
| int | hyb, | |||
| int | h | |||
| ) | [static] |
| static int bdist2_22 | ( | uint8_t * | blk1f, | |
| uint8_t * | blk1b, | |||
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
| int bidir_chrom_var_sum | ( | mb_motion_s * | lum_mc_f, | |
| mb_motion_s * | lum_mc_b, | |||
| uint8_t ** | ref_f, | |||
| uint8_t ** | ref_b, | |||
| subsampled_mb_s * | ssblk, | |||
| int | lx, | |||
| int | h | |||
| ) |
Definition at line 329 of file motion.c.
References mb_motion::fieldoff, pbdist2_22, mb_motion::pos, subsampled_mb::umb, subsampled_mb::vmb, _blockcrd::x, and _blockcrd::y.
| static int bidir_pred_sad | ( | const mb_motion_s * | motion_f, | |
| const mb_motion_s * | motion_b, | |||
| uint8_t * | mb, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
Definition at line 2197 of file motion.c.
References mb_motion::blk, mb_motion::hx, mb_motion::hy, and pbdist1.
Referenced by field_ME().
| static int bidir_pred_var | ( | const mb_motion_s * | motion_f, | |
| const mb_motion_s * | motion_b, | |||
| uint8_t * | mb, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
Definition at line 2181 of file motion.c.
References mb_motion::blk, mb_motion::hx, mb_motion::hy, and pbdist2.
Referenced by field_ME(), and frame_ME().
| static int build_sub22_mcomps | ( | motion_engine_t * | engine, | |
| int | i0, | |||
| int | j0, | |||
| int | ihigh, | |||
| int | jhigh, | |||
| int | null_mc_sad, | |||
| uint8_t * | s22org, | |||
| uint8_t * | s22blk, | |||
| int | flx, | |||
| int | fh, | |||
| int | searched_sub44_size | |||
| ) | [static] |
Definition at line 1082 of file motion.c.
References mc_22_red, s, motion_engine_t::sub22_mcomps, motion_engine_t::sub22_num_mcomps, motion_engine_t::sub44_mcomps, sub_mean_reduction(), mc_result::weight, mc_result::x, _blockcrd::x, mc_result::y, and _blockcrd::y.
Referenced by init_motion().

| static int build_sub44_mcomps | ( | motion_engine_t * | engine, | |
| int | ilow, | |||
| int | jlow, | |||
| int | ihigh, | |||
| int | jhigh, | |||
| int | i0, | |||
| int | j0, | |||
| int | null_mc_sad, | |||
| uint8_t * | s44org, | |||
| uint8_t * | s44blk, | |||
| int | qlx, | |||
| int | qh | |||
| ) | [static] |
Definition at line 987 of file motion.c.
References mc_44_red, s1, motion_engine_t::sub44_mcomps, motion_engine_t::sub44_num_mcomps, sub_mean_reduction(), mc_result::weight, mc_result::x, and mc_result::y.
Referenced by fullsearch().

| static int chrom_var_sum | ( | subsampled_mb_s * | ssblk, | |
| int | h, | |||
| int | lx | |||
| ) | [static] |
Definition at line 352 of file motion.c.
References subsampled_mb::umb, variance(), and subsampled_mb::vmb.
Referenced by frame_ME().

| static int dist1_00 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h, | |||
| int | distlim | |||
| ) | [static] |
| static int dist1_01 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
| static int dist1_10 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
| static int dist1_11 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
| static int dist2 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | hx, | |||
| int | hy, | |||
| int | h | |||
| ) | [static] |
| static int dist22 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | qlx, | |||
| int | qh | |||
| ) | [static] |
| static int dist2_22 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
| static int dist44 | ( | uint8_t * | blk1, | |
| uint8_t * | blk2, | |||
| int | flx, | |||
| int | fh | |||
| ) | [static] |
| static void dpfield_estimate | ( | motion_engine_t * | engine, | |
| pict_data_s * | picture, | |||
| uint8_t * | topref, | |||
| uint8_t * | botref, | |||
| uint8_t * | mb, | |||
| int | i, | |||
| int | j, | |||
| int | imins, | |||
| int | jmins, | |||
| mb_motion_s * | dpbest, | |||
| int * | vmcp | |||
| ) | [static] |
Definition at line 799 of file motion.c.
References height2, pict_data::pict_struct, mb_motion::pos, mb_motion::sad, TOP_FIELD, width, width2, and _blockcrd::x.
| static void dpframe_estimate | ( | motion_engine_t * | engine, | |
| pict_data_s * | picture, | |||
| uint8_t * | ref, | |||
| subsampled_mb_s * | ssmb, | |||
| int | i, | |||
| int | j, | |||
| int | iminf[2][2], | |||
| int | jminf[2][2], | |||
| mb_motion_s * | dpbest, | |||
| int * | imindmvp, | |||
| int * | jmindmvp, | |||
| int * | vmcp | |||
| ) | [static] |
Definition at line 633 of file motion.c.
References height, subsampled_mb::mb, mb_motion::pos, mb_motion::sad, pict_data::topfirst, width, _blockcrd::x, and _blockcrd::y.
| void fast_motion_data | ( | uint8_t * | blk, | |
| int | picture_struct | |||
| ) |
Definition at line 1690 of file motion.c.
References b, colsums_offset, FRAME_PICTURE, fsubsample_offset, height, nb, qsubsample_offset, rowsums_offset, and width.
Referenced by putseq().
| static void field_estimate | ( | motion_engine_t * | engine, | |
| pict_data_s * | picture, | |||
| uint8_t * | toporg, | |||
| uint8_t * | topref, | |||
| uint8_t * | botorg, | |||
| uint8_t * | botref, | |||
| subsampled_mb_s * | ssmb, | |||
| int | i, | |||
| int | j, | |||
| int | sx, | |||
| int | sy, | |||
| int | ipflag, | |||
| mb_motion_s * | bestfr, | |||
| mb_motion_s * | best8u, | |||
| mb_motion_s * | best8l, | |||
| mb_motion_s * | bestsp | |||
| ) | [static] |
Definition at line 479 of file motion.c.
References BOTTOM_FIELD, mb_motion::fieldoff, mb_motion::fieldsel, subsampled_mb::fmb, fullsearch(), height, subsampled_mb::mb, pict_data::pict_struct, subsampled_mb::qmb, mb_motion::sad, TOP_FIELD, subsampled_mb::umb, subsampled_mb::vmb, and width.
Referenced by field_ME().

| static void field_ME | ( | motion_engine_t * | engine, | |
| pict_data_s * | picture, | |||
| motion_comp_s * | mc, | |||
| int | mboffset, | |||
| int | i, | |||
| int | j, | |||
| struct mbinfo * | mbi, | |||
| int | secondfield, | |||
| int | ipflag | |||
| ) | [static] |
Definition at line 2608 of file motion.c.
References bidir_pred_sad(), bidir_pred_var(), BOTTOM_FIELD, motion_comp::cur, motion_comp::curref, mbinfo::dmvector, field_estimate(), mb_motion::fieldsel, subsampled_mb::fmb, fsubsample_offset, I_TYPE, subsampled_mb::mb, MB_BACKWARD, MB_FORWARD, MB_INTRA, mbinfo::mb_type, MC_16X8, MC_DMV, MC_FIELD, mbinfo::motion_type, mbinfo::MV, mbinfo::mv_field_sel, motion_comp::neworg, motion_comp::newref, motion_comp::oldorg, motion_comp::oldref, P_TYPE, pict_data::pict_struct, pict_data::pict_type, mb_motion::pos, subsampled_mb::qmb, qsubsample_offset, mb_motion::sad, motion_comp::sxb, motion_comp::sxf, motion_comp::syb, motion_comp::syf, TOP_FIELD, subsampled_mb::umb, unidir_pred_var(), v0, variance(), subsampled_mb::vmb, width, _blockcrd::x, and _blockcrd::y.
Referenced by motion_engine_loop().

| static void find_best_one_pel | ( | motion_engine_t * | engine, | |
| uint8_t * | org, | |||
| uint8_t * | blk, | |||
| int | searched_size, | |||
| int | i0, | |||
| int | j0, | |||
| int | ilow, | |||
| int | jlow, | |||
| int | xmax, | |||
| int | ymax, | |||
| int | lx, | |||
| int | h, | |||
| mb_motion_s * | res | |||
| ) | [static] |
Definition at line 1213 of file motion.c.
References mb_motion::blk, mb_motion::pos, mb_motion::sad, motion_engine_t::sub22_mcomps, motion_engine_t::sub22_num_mcomps, mc_result::x, _blockcrd::x, mc_result::y, and _blockcrd::y.
Referenced by init_motion().
| static void frame_estimate | ( | motion_engine_t * | engine, | |
| uint8_t * | org, | |||
| uint8_t * | ref, | |||
| subsampled_mb_s * | ssmb, | |||
| int | i, | |||
| int | j, | |||
| int | sx, | |||
| int | sy, | |||
| mb_motion_s * | bestfr, | |||
| mb_motion_s * | besttop, | |||
| mb_motion_s * | bestbot, | |||
| int | imins[2][2], | |||
| int | jmins[2][2] | |||
| ) | [static] |
Definition at line 371 of file motion.c.
References mb_motion::fieldoff, mb_motion::fieldsel, subsampled_mb::fmb, fullsearch(), height, subsampled_mb::mb, mb_motion::pos, subsampled_mb::qmb, mb_motion::sad, subsampled_mb::umb, subsampled_mb::vmb, width, _blockcrd::x, and _blockcrd::y.
Referenced by frame_ME().

| static void frame_ME | ( | motion_engine_t * | engine, | |
| pict_data_s * | picture, | |||
| motion_comp_s * | mc, | |||
| int | mboffset, | |||
| int | i, | |||
| int | j, | |||
| struct mbinfo * | mbi | |||
| ) | [static] |
Definition at line 2209 of file motion.c.
References bidir_pred_var(), chrom_var_sum(), motion_comp::cur, mbinfo::dmvector, mb_motion::fieldoff, mb_motion::fieldsel, subsampled_mb::fmb, frame_estimate(), pict_data::frame_pred_dct, fsubsample_offset, fullsearch(), height, I_TYPE, subsampled_mb::mb, MB_BACKWARD, MB_FORWARD, MB_INTRA, mbinfo::mb_type, MC_DMV, MC_FIELD, MC_FRAME, mbinfo::motion_type, mbinfo::MV, mbinfo::mv_field_sel, motion_comp::neworg, motion_comp::newref, motion_comp::oldorg, motion_comp::oldref, P_TYPE, pict_data::pict_type, mb_motion::pos, subsampled_mb::qmb, qsubsample_offset, motion_comp::sxb, motion_comp::sxf, motion_comp::syb, motion_comp::syf, subsampled_mb::umb, unidir_chrom_var_sum(), v0, mbinfo::var, mb_motion::var, variance(), subsampled_mb::vmb, width, _blockcrd::x, and _blockcrd::y.
Referenced by motion_engine_loop().

| static void fullsearch | ( | motion_engine_t * | engine, | |
| uint8_t * | org, | |||
| uint8_t * | ref, | |||
| subsampled_mb_s * | ssblk, | |||
| int | lx, | |||
| int | i0, | |||
| int | j0, | |||
| int | sx, | |||
| int | sy, | |||
| int | h, | |||
| int | xmax, | |||
| int | ymax, | |||
| mb_motion_s * | motion | |||
| ) | [static] |
Definition at line 1366 of file motion.c.
References mb_motion::blk, build_sub44_mcomps(), subsampled_mb::fmb, fsubsample_offset, mb_motion::hx, mb_motion::hy, subsampled_mb::mb, mb_motion::pos, subsampled_mb::qmb, qsubsample_offset, mb_motion::sad, motion_engine_t::sub22_num_mcomps, motion_engine_t::sub44_num_mcomps, mb_motion::var, _blockcrd::x, and _blockcrd::y.
Referenced by field_estimate(), frame_estimate(), and frame_ME().

| void init_motion | ( | ) |
Definition at line 2914 of file motion.c.
References ACCEL_X86_MMX, ACCEL_X86_MMXEXT, bdist1(), bdist2(), bdist2_22(), build_sub22_mcomps(), cpu_accel(), dist1_00(), dist1_01(), dist1_10(), dist1_11(), dist2(), dist22(), dist2_22(), dist44(), find_best_one_pel(), fprintf, pbdist1, pbdist2, pbdist2_22, pbuild_sub22_mcomps, pdist1_00, pdist1_01, pdist1_10, pdist1_11, pdist2, pdist22, pdist2_22, pdist44, pfind_best_one_pel, and verbose.
Referenced by init().

| void motion_engine_loop | ( | motion_engine_t * | engine | ) |
Definition at line 2976 of file motion.c.
References motion_engine_t::done, field_ME(), frame_ME(), FRAME_PICTURE, motion_engine_t::input_lock, motion_engine_t::ipflag, pict_data::mbinfo, motion_engine_t::motion_comp, motion_engine_t::output_lock, motion_engine_t::pict_data, pict_data::pict_struct, picture, motion_engine_t::secondfield, motion_engine_t::start_row, and width.
Referenced by start_motion_engines().

| void motion_estimation | ( | pict_data_s * | picture, | |
| motion_comp_s * | mc_data, | |||
| int | secondfield, | |||
| int | ipflag | |||
| ) |
Definition at line 3031 of file motion.c.
References input_lock, motion_engine_t::ipflag, motion_engine_t::motion_comp, motion_engines, output_lock, motion_engine_t::pict_data, processors, and motion_engine_t::secondfield.
Referenced by putseq().
| void start_motion_engines | ( | ) |
Definition at line 3055 of file motion.c.
References motion_engine_t::done, motion_engine_t::end_row, height2, input_lock, motion_engine_loop(), motion_engines, output_lock, processors, and motion_engine_t::start_row.
Referenced by init().

| void stop_motion_engines | ( | ) |
Definition at line 3084 of file motion.c.
References motion_engine_t::done, input_lock, motion_engines, output_lock, and processors.
Referenced by mpeg2enc().
| static void sub_mean_reduction | ( | mc_result_s * | matches, | |
| int | len, | |||
| int | times, | |||
| int * | newlen_res, | |||
| int * | minweight_res | |||
| ) | [static] |
Definition at line 910 of file motion.c.
References mc_result::weight.
Referenced by build_sub22_mcomps(), and build_sub44_mcomps().
| static int unidir_chrom_var_sum | ( | mb_motion_s * | lum_mc, | |
| uint8_t ** | ref, | |||
| subsampled_mb_s * | ssblk, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
Definition at line 295 of file motion.c.
References mb_motion::fieldoff, pdist2_22, mb_motion::pos, subsampled_mb::umb, subsampled_mb::vmb, _blockcrd::x, and _blockcrd::y.
Referenced by frame_ME().
| static int unidir_pred_var | ( | const mb_motion_s * | motion, | |
| uint8_t * | mb, | |||
| int | lx, | |||
| int | h | |||
| ) | [static] |
Definition at line 2167 of file motion.c.
References mb_motion::blk, mb_motion::hx, mb_motion::hy, and pdist2.
Referenced by field_ME().
| static int variance | ( | uint8_t * | mb, | |
| int | size, | |||
| int | lx | |||
| ) | [static] |
Definition at line 2142 of file motion.c.
References s2.
Referenced by chrom_var_sum(), field_ME(), and frame_ME().
int(* pbdist1)(uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) [static] |
Referenced by bidir_pred_sad(), and init_motion().
int(* pbdist2)(uint8_t *pf, uint8_t *pb, uint8_t *p2, int lx, int hxf, int hyf, int hxb, int hyb, int h) [static] |
Referenced by bidir_pred_var(), and init_motion().
int(* pbdist2_22)(uint8_t *blk1f, uint8_t *blk1b, uint8_t *blk2, int lx, int h) [static] |
Referenced by bidir_chrom_var_sum(), and init_motion().
int(* pbuild_sub22_mcomps)(motion_engine_t *engine, int i0, int j0, int ihigh, int jhigh, int null_mc_sad, uint8_t *s22org, uint8_t *s22blk, int flx, int fh, int searched_sub44_size) [static] |
Referenced by init_motion().
int(* pdist1_00)(uint8_t *blk1, uint8_t *blk2, int lx, int h, int distlim) [static] |
Referenced by init_motion().
int(* pdist1_01)(uint8_t *blk1, uint8_t *blk2, int lx, int h) [static] |
Referenced by init_motion().
int(* pdist1_10)(uint8_t *blk1, uint8_t *blk2, int lx, int h) [static] |
Referenced by init_motion().
int(* pdist1_11)(uint8_t *blk1, uint8_t *blk2, int lx, int h) [static] |
Referenced by init_motion().
int(* pdist2)(uint8_t *blk1, uint8_t *blk2, int lx, int hx, int hy, int h) [static] |
Referenced by init_motion(), and unidir_pred_var().
int(* pdist22)(uint8_t *blk1, uint8_t *blk2, int flx, int fh) [static] |
Referenced by init_motion().
int(* pdist2_22)(uint8_t *blk1, uint8_t *blk2, int lx, int h) [static] |
Referenced by init_motion(), and unidir_chrom_var_sum().
int(* pdist44)(uint8_t *blk1, uint8_t *blk2, int qlx, int qh) [static] |
Referenced by init_motion().
void(* pfind_best_one_pel)(motion_engine_t *engine, uint8_t *org, uint8_t *blk, int searched_size, int i0, int j0, int ilow, int jlow, int xmax, int ymax, int lx, int h, mb_motion_s *res) [static] |
Referenced by init_motion().
1.5.5