FFmpeg  4.0
Data Fields
MotionEstContext Struct Reference

Motion estimation context. More...

#include <libavcodec/motion_est.h>

Data Fields

AVCodecContextavctx
 
int skip
 set if ME is skipped for the current MB More...
 
int co_located_mv [4][2]
 mv from last P-frame for direct mode ME More...
 
int direct_basis_mv [4][2]
 
uint8_tscratchpad
 data area for the ME algo, so that the ME does not need to malloc/free. More...
 
uint8_tbest_mb
 
uint8_ttemp_mb [2]
 
uint8_ttemp
 
int best_bits
 
uint32_t * map
 map to avoid duplicate evaluations More...
 
uint32_t * score_map
 map to store the scores More...
 
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 More...
 
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
 
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 More...
 
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 47 of file motion_est.h.

Field Documentation

◆ avctx

AVCodecContext* MotionEstContext::avctx

◆ skip

int MotionEstContext::skip

◆ co_located_mv

int MotionEstContext::co_located_mv[4][2]

mv from last P-frame for direct mode ME

Definition at line 50 of file motion_est.h.

Referenced by cmp_direct_inline(), and direct_search().

◆ direct_basis_mv

int MotionEstContext::direct_basis_mv[4][2]

Definition at line 51 of file motion_est.h.

Referenced by cmp_direct_inline(), and direct_search().

◆ scratchpad

uint8_t* MotionEstContext::scratchpad

◆ best_mb

uint8_t* MotionEstContext::best_mb

Definition at line 54 of file motion_est.h.

◆ temp_mb

uint8_t* MotionEstContext::temp_mb[2]

Definition at line 55 of file motion_est.h.

◆ temp

uint8_t* MotionEstContext::temp

◆ best_bits

int MotionEstContext::best_bits

Definition at line 57 of file motion_est.h.

◆ map

uint32_t* MotionEstContext::map

◆ score_map

uint32_t* MotionEstContext::score_map

◆ map_generation

unsigned MotionEstContext::map_generation

◆ pre_penalty_factor

int MotionEstContext::pre_penalty_factor

Definition at line 61 of file motion_est.h.

Referenced by epzs_motion_search_internal(), and ff_pre_estimate_p_frame_motion().

◆ 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.

Definition at line 62 of file motion_est.h.

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

◆ sub_penalty_factor

int MotionEstContext::sub_penalty_factor

◆ mb_penalty_factor

int MotionEstContext::mb_penalty_factor

◆ flags

int MotionEstContext::flags

◆ sub_flags

int MotionEstContext::sub_flags

◆ mb_flags

int MotionEstContext::mb_flags

Definition at line 71 of file motion_est.h.

Referenced by ff_init_me(), and get_mb_score().

◆ pre_pass

int MotionEstContext::pre_pass

= 1 for the pre pass

Definition at line 72 of file motion_est.h.

Referenced by epzs_motion_search_internal(), and pre_estimate_motion_thread().

◆ dia_size

int MotionEstContext::dia_size

◆ xmin

int MotionEstContext::xmin

◆ xmax

int MotionEstContext::xmax

◆ ymin

int MotionEstContext::ymin

◆ ymax

int MotionEstContext::ymax

◆ pred_x

int MotionEstContext::pred_x

◆ pred_y

int MotionEstContext::pred_y

◆ src

uint8_t* MotionEstContext::src[4][4]

◆ ref

uint8_t* MotionEstContext::ref[4][4]

◆ stride

int MotionEstContext::stride

◆ uvstride

int MotionEstContext::uvstride

◆ mc_mb_var_sum_temp

int64_t MotionEstContext::mc_mb_var_sum_temp

◆ mb_var_sum_temp

int64_t MotionEstContext::mb_var_sum_temp

Definition at line 86 of file motion_est.h.

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

◆ scene_change_score

int MotionEstContext::scene_change_score

◆ hpel_put

op_pixels_func(* MotionEstContext::hpel_put)[4]

Definition at line 89 of file motion_est.h.

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

◆ hpel_avg

op_pixels_func(* MotionEstContext::hpel_avg)[4]

Definition at line 90 of file motion_est.h.

Referenced by cmp_direct_inline(), and ff_init_me().

◆ qpel_put

qpel_mc_func(* MotionEstContext::qpel_put)[16]

◆ qpel_avg

qpel_mc_func(* MotionEstContext::qpel_avg)[16]

◆ mv_penalty

uint8_t(* MotionEstContext::mv_penalty)[MAX_DMV *2+1]

◆ current_mv_penalty

uint8_t* MotionEstContext::current_mv_penalty

◆ sub_motion_search

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)

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