FFmpeg
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
MPVMainEncContext Struct Reference

#include <mpegvideoenc.h>

Data Fields

MPVEncContext s
 The main slicecontext. More...
 
int intra_only
 if true, only intra pictures are generated More...
 
int gop_size
 
int max_b_frames
 max number of B-frames More...
 
int picture_in_gop_number
 0-> first pic in gop, ... More...
 
int input_picture_number
 used to set pic->display_picture_number More...
 
int coded_picture_number
 used to set pic->coded_picture_number More...
 
MPVPictureinput_picture [MPVENC_MAX_B_FRAMES+1]
 next pictures in display order More...
 
MPVPicturereordered_input_picture [MPVENC_MAX_B_FRAMES+1]
 next pictures in coded order More...
 
int64_t user_specified_pts
 last non-zero pts from user-supplied AVFrame More...
 
int64_t dts_delta
 pts difference between the first and second input frame, used for calculating dts of the first frame when there's a delay More...
 
int64_t reordered_pts
 reordered pts to be used as dts for the next output frame when there's a delay More...
 
AVFrametmp_frames [MPVENC_MAX_B_FRAMES+2]
 temporary frames used by b_frame_strategy = 2 More...
 
int b_frame_strategy
 
int b_sensitivity
 
int brd_scale
 
int scenechange_threshold
 
int noise_reduction
 
float border_masking
 
int lmin
 
int lmax
 
int vbv_ignore_qmax
 
int vbv_delay_pos
 offset of vbv_delay in the bitstream More...
 
const uint8_t * fcode_tab
 smallest fcode needed for each MV More...
 
int frame_skip_threshold
 
int frame_skip_factor
 
int frame_skip_exp
 
int frame_skip_cmp
 
me_cmp_func frame_skip_cmp_fn
 
int(* encode_picture_header )(struct MPVMainEncContext *m)
 
int64_t bit_rate
 
int64_t total_bits
 
int frame_bits
 bits used for the current frame More...
 
int header_bits
 
int stuffing_bits
 bits used for stuffing More...
 
int next_lambda
 next lambda used for retrying to encode a frame More...
 
int fixed_qscale
 fixed qscale if non zero More...
 
int last_lambda_for [5]
 last lambda for a specific pict type More...
 
int last_pict_type
 
int last_non_b_pict_type
 used for MPEG-4 gmc B-frames & ratecontrol More...
 
RateControlContext rc_context
 contains stuff only accessed in ratecontrol.c More...
 
int me_penalty_compensation
 
int me_pre
 prepass for motion estimation More...
 
int64_t mb_var_sum
 sum of MB variance for current frame More...
 
int64_t mc_mb_var_sum
 motion compensated MB variance for current frame More...
 
char * me_map_base
 backs MotionEstContext.(map|score_map) More...
 
char * dct_error_sum_base
 backs dct_error_sum More...
 
int16_t(* mv_table_base )[2]
 

Detailed Description

Definition at line 172 of file mpegvideoenc.h.

Field Documentation

◆ s

MPVEncContext MPVMainEncContext::s

◆ intra_only

int MPVMainEncContext::intra_only

if true, only intra pictures are generated

Definition at line 175 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_init(), ff_rate_estimate_qscale(), frame_end(), init_matrices(), and set_bframe_chain_length().

◆ gop_size

int MPVMainEncContext::gop_size

◆ max_b_frames

int MPVMainEncContext::max_b_frames

◆ picture_in_gop_number

int MPVMainEncContext::picture_in_gop_number

0-> first pic in gop, ...

Definition at line 178 of file mpegvideoenc.h.

Referenced by encode_picture(), ff_mpv_encode_picture(), and set_bframe_chain_length().

◆ input_picture_number

int MPVMainEncContext::input_picture_number

used to set pic->display_picture_number

Definition at line 179 of file mpegvideoenc.h.

Referenced by load_input_picture().

◆ coded_picture_number

int MPVMainEncContext::coded_picture_number

used to set pic->coded_picture_number

Definition at line 180 of file mpegvideoenc.h.

Referenced by set_bframe_chain_length().

◆ input_picture

MPVPicture* MPVMainEncContext::input_picture[MPVENC_MAX_B_FRAMES+1]

next pictures in display order

Definition at line 182 of file mpegvideoenc.h.

Referenced by estimate_best_b_count(), ff_mpv_encode_end(), load_input_picture(), select_input_picture(), and set_bframe_chain_length().

◆ reordered_input_picture

MPVPicture* MPVMainEncContext::reordered_input_picture[MPVENC_MAX_B_FRAMES+1]

◆ user_specified_pts

int64_t MPVMainEncContext::user_specified_pts

last non-zero pts from user-supplied AVFrame

Definition at line 185 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_init(), and load_input_picture().

◆ dts_delta

int64_t MPVMainEncContext::dts_delta

pts difference between the first and second input frame, used for calculating dts of the first frame when there's a delay

Definition at line 189 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_picture(), and load_input_picture().

◆ reordered_pts

int64_t MPVMainEncContext::reordered_pts

reordered pts to be used as dts for the next output frame when there's a delay

Definition at line 193 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_picture().

◆ tmp_frames

AVFrame* MPVMainEncContext::tmp_frames[MPVENC_MAX_B_FRAMES+2]

temporary frames used by b_frame_strategy = 2

Definition at line 196 of file mpegvideoenc.h.

Referenced by estimate_best_b_count(), ff_mpv_encode_end(), and ff_mpv_encode_init().

◆ b_frame_strategy

int MPVMainEncContext::b_frame_strategy

Definition at line 197 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_init(), and set_bframe_chain_length().

◆ b_sensitivity

int MPVMainEncContext::b_sensitivity

Definition at line 198 of file mpegvideoenc.h.

Referenced by set_bframe_chain_length().

◆ brd_scale

int MPVMainEncContext::brd_scale

Definition at line 199 of file mpegvideoenc.h.

Referenced by estimate_best_b_count(), and ff_mpv_encode_init().

◆ scenechange_threshold

int MPVMainEncContext::scenechange_threshold

Definition at line 201 of file mpegvideoenc.h.

Referenced by encode_picture(), and ff_mpv_encode_init().

◆ noise_reduction

int MPVMainEncContext::noise_reduction

Definition at line 203 of file mpegvideoenc.h.

Referenced by frame_start(), init_buffers(), and update_noise_reduction().

◆ border_masking

float MPVMainEncContext::border_masking

Definition at line 205 of file mpegvideoenc.h.

Referenced by adaptive_quantization(), and ff_mpv_encode_init().

◆ lmin

int MPVMainEncContext::lmin

Definition at line 206 of file mpegvideoenc.h.

Referenced by encode_init(), ff_mpv_encode_init(), and get_qminmax().

◆ lmax

int MPVMainEncContext::lmax

◆ vbv_ignore_qmax

int MPVMainEncContext::vbv_ignore_qmax

Definition at line 207 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_picture(), and update_qscale().

◆ vbv_delay_pos

int MPVMainEncContext::vbv_delay_pos

offset of vbv_delay in the bitstream

Definition at line 210 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_picture().

◆ fcode_tab

const uint8_t* MPVMainEncContext::fcode_tab

smallest fcode needed for each MV

Definition at line 212 of file mpegvideoenc.h.

Referenced by encode_init(), ff_get_best_fcode(), and mpv_encode_defaults().

◆ frame_skip_threshold

int MPVMainEncContext::frame_skip_threshold

Definition at line 215 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_init(), and set_bframe_chain_length().

◆ frame_skip_factor

int MPVMainEncContext::frame_skip_factor

Definition at line 216 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_init(), set_bframe_chain_length(), and skip_check().

◆ frame_skip_exp

int MPVMainEncContext::frame_skip_exp

Definition at line 217 of file mpegvideoenc.h.

Referenced by skip_check().

◆ frame_skip_cmp

int MPVMainEncContext::frame_skip_cmp

Definition at line 218 of file mpegvideoenc.h.

Referenced by me_cmp_init().

◆ frame_skip_cmp_fn

me_cmp_func MPVMainEncContext::frame_skip_cmp_fn

Definition at line 219 of file mpegvideoenc.h.

Referenced by me_cmp_init(), and skip_check().

◆ encode_picture_header

int(* MPVMainEncContext::encode_picture_header) (struct MPVMainEncContext *m)

◆ bit_rate

int64_t MPVMainEncContext::bit_rate

◆ total_bits

int64_t MPVMainEncContext::total_bits

Definition at line 225 of file mpegvideoenc.h.

Referenced by encode_frame(), ff_mpv_encode_picture(), and ff_rate_estimate_qscale().

◆ frame_bits

int MPVMainEncContext::frame_bits

bits used for the current frame

Definition at line 226 of file mpegvideoenc.h.

Referenced by encode_frame(), ff_mpv_encode_picture(), and ff_rate_estimate_qscale().

◆ header_bits

int MPVMainEncContext::header_bits

Definition at line 227 of file mpegvideoenc.h.

Referenced by encode_picture(), ff_mpv_encode_picture(), and ff_write_pass1_stats().

◆ stuffing_bits

int MPVMainEncContext::stuffing_bits

bits used for stuffing

Definition at line 228 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_picture(), and ff_rate_estimate_qscale().

◆ next_lambda

int MPVMainEncContext::next_lambda

next lambda used for retrying to encode a frame

Definition at line 229 of file mpegvideoenc.h.

Referenced by estimate_qp(), and ff_mpv_encode_picture().

◆ fixed_qscale

int MPVMainEncContext::fixed_qscale

fixed qscale if non zero

Definition at line 230 of file mpegvideoenc.h.

Referenced by encode_picture(), estimate_qp(), and ff_mpv_encode_init().

◆ last_lambda_for

int MPVMainEncContext::last_lambda_for[5]

last lambda for a specific pict type

Definition at line 231 of file mpegvideoenc.h.

Referenced by encode_picture(), estimate_best_b_count(), and frame_end().

◆ last_pict_type

int MPVMainEncContext::last_pict_type

Definition at line 232 of file mpegvideoenc.h.

Referenced by encode_frame(), ff_rate_estimate_qscale(), and frame_end().

◆ last_non_b_pict_type

int MPVMainEncContext::last_non_b_pict_type

used for MPEG-4 gmc B-frames & ratecontrol

Definition at line 233 of file mpegvideoenc.h.

Referenced by encode_picture(), find_best_tables(), and frame_end().

◆ rc_context

RateControlContext MPVMainEncContext::rc_context

◆ me_penalty_compensation

int MPVMainEncContext::me_penalty_compensation

Definition at line 236 of file mpegvideoenc.h.

Referenced by encode_picture().

◆ me_pre

int MPVMainEncContext::me_pre

prepass for motion estimation

Definition at line 237 of file mpegvideoenc.h.

Referenced by encode_picture().

◆ mb_var_sum

int64_t MPVMainEncContext::mb_var_sum

sum of MB variance for current frame

Definition at line 239 of file mpegvideoenc.h.

Referenced by encode_picture(), ff_rate_estimate_qscale(), ff_write_pass1_stats(), and ratecontrol_1pass().

◆ mc_mb_var_sum

int64_t MPVMainEncContext::mc_mb_var_sum

motion compensated MB variance for current frame

Definition at line 240 of file mpegvideoenc.h.

Referenced by encode_picture(), ff_rate_estimate_qscale(), ff_write_pass1_stats(), and ratecontrol_1pass().

◆ me_map_base

char* MPVMainEncContext::me_map_base

backs MotionEstContext.(map|score_map)

Definition at line 242 of file mpegvideoenc.h.

◆ dct_error_sum_base

char* MPVMainEncContext::dct_error_sum_base

backs dct_error_sum

Definition at line 243 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_end(), and init_buffers().

◆ mv_table_base

int16_t(* MPVMainEncContext::mv_table_base)[2]

Definition at line 244 of file mpegvideoenc.h.

Referenced by ff_mpv_encode_end(), and init_buffers().


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