FFmpeg  1.2.4
Data Fields
MotionEstContext Struct Reference

Motion estimation context. More...

#include <mpegvideo.h>

Data Fields

AVCodecContextavctx
int skip
 set if ME is skipped for the current MB
int co_located_mv [4][2]
 mv from last P-frame for direct mode ME
int direct_basis_mv [4][2]
uint8_tscratchpad
 data area for the ME algo, so that the ME does not need to malloc/free
uint8_tbest_mb
uint8_ttemp_mb [2]
uint8_ttemp
int best_bits
uint32_t * map
 map to avoid duplicate evaluations
uint32_t * score_map
 map to store the scores
unsigned map_generation
int pre_penalty_factor
int penalty_factor
 an estimate of the bits required to code a given mv value, e.g.
int sub_penalty_factor
int mb_penalty_factor
int flags
int sub_flags
int mb_flags
int pre_pass
 = 1 for the pre pass
int dia_size
int xmin
int xmax
int ymin
int ymax
int pred_x
int pred_y
uint8_tsrc [4][4]
uint8_tref [4][4]
int stride
int uvstride
int mc_mb_var_sum_temp
int mb_var_sum_temp
int scene_change_score
op_pixels_func(* hpel_put )[4]
op_pixels_func(* hpel_avg )[4]
qpel_mc_func(* qpel_put )[16]
qpel_mc_func(* qpel_avg )[16]
uint8_t(* mv_penalty )[MAX_MV *2+1]
 amount of bits needed to encode a MV
uint8_tcurrent_mv_penalty
int(* sub_motion_search )(struct MpegEncContext *s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h)

Detailed Description

Motion estimation context.

Definition at line 154 of file mpegvideo.h.

Field Documentation

AVCodecContext* MotionEstContext::avctx
int MotionEstContext::best_bits

Definition at line 163 of file mpegvideo.h.

uint8_t* MotionEstContext::best_mb

Definition at line 160 of file mpegvideo.h.

int MotionEstContext::co_located_mv[4][2]

mv from last P-frame for direct mode ME

Definition at line 157 of file mpegvideo.h.

Referenced by cmp_direct_inline(), and direct_search().

uint8_t* MotionEstContext::current_mv_penalty
int MotionEstContext::dia_size
int MotionEstContext::direct_basis_mv[4][2]

Definition at line 158 of file mpegvideo.h.

Referenced by cmp_direct_inline(), and direct_search().

int MotionEstContext::flags
op_pixels_func(* MotionEstContext::hpel_avg)[4]

Definition at line 196 of file mpegvideo.h.

Referenced by cmp_direct_inline(), and ff_init_me().

op_pixels_func(* MotionEstContext::hpel_put)[4]

Definition at line 195 of file mpegvideo.h.

Referenced by cmp_direct_inline(), cmp_inline(), and ff_init_me().

uint32_t* MotionEstContext::map
unsigned MotionEstContext::map_generation
int MotionEstContext::mb_flags

Definition at line 177 of file mpegvideo.h.

Referenced by ff_init_me(), and get_mb_score().

int MotionEstContext::mb_penalty_factor
int MotionEstContext::mb_var_sum_temp

Definition at line 192 of file mpegvideo.h.

Referenced by encode_picture(), ff_estimate_p_frame_motion(), and mb_var_thread().

int MotionEstContext::mc_mb_var_sum_temp
uint8_t(* MotionEstContext::mv_penalty)[MAX_MV *2+1]
int MotionEstContext::penalty_factor

an estimate of the bits required to code a given mv value, e.g.

(1,0) takes more bits than (0,0). We have to estimate whether any reduction in residual is worth the extra bits.

Definition at line 168 of file mpegvideo.h.

Referenced by encode_q_branch(), epzs_motion_search2(), epzs_motion_search4(), epzs_motion_search_internal(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), and hpel_motion_search().

int MotionEstContext::pre_pass

= 1 for the pre pass

Definition at line 178 of file mpegvideo.h.

Referenced by epzs_motion_search_internal(), and pre_estimate_motion_thread().

int MotionEstContext::pre_penalty_factor

Definition at line 167 of file mpegvideo.h.

Referenced by epzs_motion_search_internal(), and ff_pre_estimate_p_frame_motion().

int MotionEstContext::pred_x
int MotionEstContext::pred_y
qpel_mc_func(* MotionEstContext::qpel_avg)[16]
qpel_mc_func(* MotionEstContext::qpel_put)[16]
uint8_t* MotionEstContext::ref[4][4]
int MotionEstContext::scene_change_score
uint32_t* MotionEstContext::score_map
uint8_t* MotionEstContext::scratchpad
int MotionEstContext::skip
uint8_t* MotionEstContext::src[4][4]
int MotionEstContext::stride
int MotionEstContext::sub_flags
int(* MotionEstContext::sub_motion_search)(struct MpegEncContext *s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h)
int MotionEstContext::sub_penalty_factor
uint8_t* MotionEstContext::temp
uint8_t* MotionEstContext::temp_mb[2]

Definition at line 161 of file mpegvideo.h.

int MotionEstContext::uvstride
int MotionEstContext::xmax
int MotionEstContext::xmin
int MotionEstContext::ymax
int MotionEstContext::ymin

The documentation for this struct was generated from the following file: