FFmpeg
|
#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... | |
MPVPicture * | input_picture [MPVENC_MAX_B_FRAMES+1] |
next pictures in display order More... | |
MPVPicture * | reordered_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... | |
AVFrame * | tmp_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] |
Definition at line 172 of file mpegvideoenc.h.
MPVEncContext MPVMainEncContext::s |
The main slicecontext.
Definition at line 173 of file mpegvideoenc.h.
Referenced by adaptive_quantization(), alloc_huffman(), encode_end(), encode_frame(), encode_init(), encode_picture(), encode_q_branch(), estimate_best_b_count(), estimate_qp(), ff_flv_encode_picture_header(), ff_get_2pass_fcode(), ff_get_best_fcode(), ff_mpv_encode_end(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_msmpeg4_encode_init(), ff_msmpeg4_encode_motion(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rv10_encode_picture_header(), ff_rv20_encode_picture_header(), ff_vbv_update(), ff_write_pass1_stats(), find_best_tables(), frame_end(), frame_start(), get_4block_rd(), get_block_rd(), get_diff_limited_q(), get_qminmax(), get_qscale(), init_buffers(), init_matrices(), init_pass2(), load_input_picture(), me_cmp_init(), mjpeg_amv_encode_picture_header(), mjpeg_encode_init(), modify_qscale(), mpeg4_encode_gop_header(), mpeg4_encode_picture_header(), mpeg4_encode_visual_object_header(), mpeg4_encode_vol_header(), mpv_encode_defaults(), msmpeg4_encode_dc(), msmpeg4_encode_picture_header(), select_input_picture(), set_bframe_chain_length(), skip_check(), speedhq_encode_init(), speedhq_encode_picture_header(), update_noise_reduction(), update_qscale(), and wmv2_encode_picture_header().
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().
int MPVMainEncContext::gop_size |
Definition at line 176 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_init(), ff_rate_control_init(), and set_bframe_chain_length().
int MPVMainEncContext::max_b_frames |
max number of B-frames
Definition at line 177 of file mpegvideoenc.h.
Referenced by estimate_best_b_count(), ff_mpv_encode_init(), ff_rate_control_init(), init_buffers(), load_input_picture(), mpeg4_encode_mb(), mpeg4_encode_visual_object_header(), mpeg4_encode_vol_header(), and set_bframe_chain_length().
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().
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().
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().
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().
MPVPicture* MPVMainEncContext::reordered_input_picture[MPVENC_MAX_B_FRAMES+1] |
next pictures in coded order
Definition at line 183 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_end(), load_input_picture(), mpeg4_encode_gop_header(), mpeg4_encode_mb(), select_input_picture(), and set_bframe_chain_length().
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().
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().
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().
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().
int MPVMainEncContext::b_frame_strategy |
Definition at line 197 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_init(), and set_bframe_chain_length().
int MPVMainEncContext::b_sensitivity |
Definition at line 198 of file mpegvideoenc.h.
Referenced by set_bframe_chain_length().
int MPVMainEncContext::brd_scale |
Definition at line 199 of file mpegvideoenc.h.
Referenced by estimate_best_b_count(), and ff_mpv_encode_init().
int MPVMainEncContext::scenechange_threshold |
Definition at line 201 of file mpegvideoenc.h.
Referenced by encode_picture(), and ff_mpv_encode_init().
int MPVMainEncContext::noise_reduction |
Definition at line 203 of file mpegvideoenc.h.
Referenced by frame_start(), init_buffers(), and update_noise_reduction().
float MPVMainEncContext::border_masking |
Definition at line 205 of file mpegvideoenc.h.
Referenced by adaptive_quantization(), and ff_mpv_encode_init().
int MPVMainEncContext::lmin |
Definition at line 206 of file mpegvideoenc.h.
Referenced by encode_init(), ff_mpv_encode_init(), and get_qminmax().
int MPVMainEncContext::lmax |
Definition at line 206 of file mpegvideoenc.h.
Referenced by encode_init(), ff_mpv_encode_init(), ff_mpv_encode_picture(), and get_qminmax().
int MPVMainEncContext::vbv_ignore_qmax |
Definition at line 207 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_picture(), and update_qscale().
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().
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().
int MPVMainEncContext::frame_skip_threshold |
Definition at line 215 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_init(), and set_bframe_chain_length().
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().
int MPVMainEncContext::frame_skip_exp |
Definition at line 217 of file mpegvideoenc.h.
Referenced by skip_check().
int MPVMainEncContext::frame_skip_cmp |
Definition at line 218 of file mpegvideoenc.h.
Referenced by me_cmp_init().
me_cmp_func MPVMainEncContext::frame_skip_cmp_fn |
Definition at line 219 of file mpegvideoenc.h.
Referenced by me_cmp_init(), and skip_check().
int(* MPVMainEncContext::encode_picture_header) (struct MPVMainEncContext *m) |
Definition at line 221 of file mpegvideoenc.h.
Referenced by encode_init(), encode_picture(), ff_mpv_encode_init(), ff_msmpeg4_encode_init(), mjpeg_encode_init(), and speedhq_encode_init().
int64_t MPVMainEncContext::bit_rate |
Definition at line 224 of file mpegvideoenc.h.
Referenced by encode_init(), ff_mpv_encode_init(), ff_msmpeg4_encode_ext_header(), ff_rate_control_init(), ff_rate_estimate_qscale(), init_pass2(), and msmpeg4_encode_picture_header().
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().
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().
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().
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().
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().
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().
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().
int MPVMainEncContext::last_pict_type |
Definition at line 232 of file mpegvideoenc.h.
Referenced by encode_frame(), ff_rate_estimate_qscale(), and frame_end().
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().
RateControlContext MPVMainEncContext::rc_context |
contains stuff only accessed in ratecontrol.c
Definition at line 234 of file mpegvideoenc.h.
Referenced by encode_end(), encode_frame(), ff_get_2pass_fcode(), ff_mpv_encode_end(), ff_mpv_encode_picture(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_vbv_update(), get_diff_limited_q(), get_qscale(), init_pass2(), modify_qscale(), and set_bframe_chain_length().
int MPVMainEncContext::me_penalty_compensation |
Definition at line 236 of file mpegvideoenc.h.
Referenced by encode_picture().
int MPVMainEncContext::me_pre |
prepass for motion estimation
Definition at line 237 of file mpegvideoenc.h.
Referenced by encode_picture().
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().
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().
char* MPVMainEncContext::me_map_base |
backs MotionEstContext.(map|score_map)
Definition at line 242 of file mpegvideoenc.h.
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().
int16_t(* MPVMainEncContext::mv_table_base)[2] |
Definition at line 244 of file mpegvideoenc.h.
Referenced by ff_mpv_encode_end(), and init_buffers().