FFmpeg
Public Attributes | List of all members
MotionEstContext Struct Reference

Motion estimation context. More...

#include <motion_est.h>

Public Attributes

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_t * scratchpad
 data area for the ME algo, so that the ME does not need to malloc/free. More...
 
uint8_t * best_mb
 
uint8_t * temp_mb [2]
 
uint8_t * temp
 
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. More...
 
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_t * src [4][4]
 
uint8_t * ref [4][4]
 
int stride
 
int uvstride
 
int64_t mc_mb_var_sum_temp
 
int64_t 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_DMV *2+1]
 bit amount needed to encode a MV
 
uint8_t * current_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.

Member Data Documentation

§ penalty_factor

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.

§ scratchpad

uint8_t* MotionEstContext::scratchpad

data area for the ME algo, so that the ME does not need to malloc/free.


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