[−][src]Struct ffmpeg_dev::sys::MpegEncContext
MpegEncContext.
Fields
class: *mut AVClassy_dc_scale: c_intc_dc_scale: c_intac_pred: c_intblock_last_index: [c_int; 12]< last non zero coefficient in block
h263_aic: c_int< Advanced INTRA Coding (AIC)
inter_scantable: ScanTable< if inter == intra then intra should be used to reduce the cache usage
intra_scantable: ScanTableintra_h_scantable: ScanTableintra_v_scantable: ScanTableavctx: *mut AVCodecContextwidth: c_int< picture size. must be a multiple of 16
height: c_int< picture size. must be a multiple of 16
gop_size: c_intintra_only: c_int< if true, only intra pictures are generated
bit_rate: i64< wanted bit rate
out_format: OutputFormat< output format
h263_pred: c_int< use MPEG-4/H.263 ac/dc predictions
pb_frame: c_int< PB-frame mode (0 = none, 1 = base, 2 = improved)
h263_plus: c_int< H.263+ headers
h263_flv: c_int< use flv H.263 header
codec_id: AVCodecIDfixed_qscale: c_int< fixed qscale if non zero
encoding: c_int< true if we are encoding (vs decoding)
max_b_frames: c_int< max number of B-frames for encoding
luma_elim_threshold: c_intchroma_elim_threshold: c_intstrict_std_compliance: c_int< strictly follow the std (MPEG-4, ...)
workaround_bugs: c_int< workaround bugs in encoders which cannot be detected automatically
codec_tag: c_int< internal codec_tag upper case converted from avctx codec_tag
context_initialized: c_intinput_picture_number: c_int< used to set pic->display_picture_number, should not be used for/by anything else
coded_picture_number: c_int< used to set pic->coded_picture_number, should not be used for/by anything else
picture_number: c_intpicture_in_gop_number: c_int< 0-> first pic in gop, ...
mb_width: c_int< number of MBs horizontally & vertically
mb_height: c_int< number of MBs horizontally & vertically
mb_stride: c_int< mb_width+1 used for some arrays to allow simple addressing of left & top MBs without sig11
b8_stride: c_int< 2*mb_width+1 used for some 8x8 block arrays to allow simple addressing
h_edge_pos: c_int< horizontal / vertical position of the right/bottom edge (pixel replication)
v_edge_pos: c_int< horizontal / vertical position of the right/bottom edge (pixel replication)
mb_num: c_int< number of MBs of a picture
linesize: isize< line size, in bytes, may be different from width
uvlinesize: isize< line size, for chroma in bytes, may be different from width
picture: *mut Picture< main picture buffer
input_picture: *mut *mut Picture< next pictures on display order for encoding
reordered_input_picture: *mut *mut Picture< pointer to the next pictures in coded order for encoding
user_specified_pts: i64< last non-zero pts from AVFrame which was passed into avcodec_encode_video2()
dts_delta: i64pts difference between the first and second input frame, used for calculating dts of the first frame when there's a delay
reordered_pts: i64reordered pts to be used as dts for the next output frame when there's a delay
pb: PutBitContextbit output
start_mb_y: c_int< start mb_y of this thread (so current thread should process start_mb_y <= row < end_mb_y)
end_mb_y: c_int< end mb_y of this thread (so current thread should process start_mb_y <= row < end_mb_y)
thread_context: [*mut MpegEncContext; 32]slice_context_count: c_int< number of used thread_contexts
last_picture: Picturecopy of the previous picture structure. note, linesize & data, might not match the previous picture (for field pictures)
next_picture: Picturecopy of the next picture structure. note, linesize & data, might not match the next picture (for field pictures)
new_picture: Picturecopy of the source picture structure for encoding. note, linesize & data, might not match the source picture (for field pictures)
current_picture: Picture< buffer to store the decompressed current picture
last_picture_ptr: *mut Picture< pointer to the previous picture.
next_picture_ptr: *mut Picture< pointer to the next picture (for bidir pred)
current_picture_ptr: *mut Picture< pointer to the current picture
last_dc: [c_int; 3]< last DC values for MPEG-1
dc_val_base: *mut i16dc_val: [*mut i16; 3]< used for MPEG-4 DC prediction, all 3 arrays must be continuous
y_dc_scale_table: *const u8< qscale -> y_dc_scale table
c_dc_scale_table: *const u8< qscale -> c_dc_scale table
chroma_qscale_table: *const u8< qscale -> chroma_qscale (H.263)
coded_block_base: *mut u8coded_block: *mut u8< used for coded block pattern prediction (msmpeg4v3, wmv1)
ac_val_base: *mut [c_short; 16]ac_val: [*mut [c_short; 16]; 3]< used for MPEG-4 AC prediction, all 3 arrays must be continuous
mb_skipped: c_int< MUST BE SET only during DECODING
mbskip_table: *mut u8< used to avoid copy if macroblock skipped (for black regions for example) and used for B-frame encoding & decoding (contains skip table of next P-frame)
mbintra_table: *mut u8< used to avoid setting {ac, dc, cbp}-pred stuff to zero on inter MB decoding
cbp_table: *mut u8< used to store cbp, ac_pred for partitioned decoding
pred_dir_table: *mut u8< used to store pred_dir for partitioned decoding
sc: ScratchpadContextqscale: c_int< QP
chroma_qscale: c_int< chroma QP
lambda: c_uint< Lagrange multiplier used in rate distortion
lambda2: c_uint< (lambda*lambda) >> FF_LAMBDA_SHIFT
lambda_table: *mut c_intadaptive_quant: c_int< use adaptive quantization
dquant: c_int< qscale difference to prev qscale
closed_gop: c_int< MPEG1/2 GOP is closed
pict_type: c_int< AV_PICTURE_TYPE_I, AV_PICTURE_TYPE_P, AV_PICTURE_TYPE_B, ...
vbv_delay: c_intlast_pict_type: c_intlast_non_b_pict_type: c_int< used for MPEG-4 gmc B-frames & ratecontrol
droppable: c_intframe_rate_index: c_intmpeg2_frame_rate_ext: AVRationallast_lambda_for: [c_int; 5]< last lambda for a specific pict type
skipdct: c_int< skip dct and code zero residual
unrestricted_mv: c_int< mv can point outside of the coded picture
h263_long_vectors: c_int< use horrible H.263v1 long vector mode
bdsp: BlockDSPContextfdsp: FDCTDSPContexth264chroma: H264ChromaContexthdsp: HpelDSPContextidsp: IDCTDSPContextmecc: MECmpContextmdsp: MpegVideoDSPContextmpvencdsp: MpegvideoEncDSPContextpdsp: PixblockDSPContextqdsp: QpelDSPContextvdsp: VideoDSPContexth263dsp: H263DSPContextf_code: c_int< forward MV resolution
b_code: c_int< backward MV resolution for B-frames (MPEG-4)
p_mv_table_base: *mut [c_short; 2]b_forw_mv_table_base: *mut [c_short; 2]b_back_mv_table_base: *mut [c_short; 2]b_bidir_forw_mv_table_base: *mut [c_short; 2]b_bidir_back_mv_table_base: *mut [c_short; 2]b_direct_mv_table_base: *mut [c_short; 2]p_field_mv_table_base: [[*mut [c_short; 2]; 2]; 2]b_field_mv_table_base: [[[*mut [c_short; 2]; 2]; 2]; 2]p_mv_table: *mut [c_short; 2]< MV table (1MV per MB) P-frame encoding
b_forw_mv_table: *mut [c_short; 2]< MV table (1MV per MB) forward mode B-frame encoding
b_back_mv_table: *mut [c_short; 2]< MV table (1MV per MB) backward mode B-frame encoding
b_bidir_forw_mv_table: *mut [c_short; 2]< MV table (1MV per MB) bidir mode B-frame encoding
b_bidir_back_mv_table: *mut [c_short; 2]< MV table (1MV per MB) bidir mode B-frame encoding
b_direct_mv_table: *mut [c_short; 2]< MV table (1MV per MB) direct mode B-frame encoding
p_field_mv_table: [[*mut [c_short; 2]; 2]; 2]< MV table (2MV per MB) interlaced P-frame encoding
b_field_mv_table: [[[*mut [c_short; 2]; 2]; 2]; 2]< MV table (4MV per MB) interlaced B-frame encoding
p_field_select_table: [*mut c_uchar; 2]b_field_select_table: [[*mut c_uchar; 2]; 2]motion_est: c_int< ME algorithm
me_penalty_compensation: c_intme_pre: c_int< prepass for motion estimation
mv_dir: c_intmv_type: c_intmv: [[[c_int; 2]; 4]; 2]motion vectors for a macroblock first coordinate : 0 = forward 1 = backward second " : depend on type third " : 0 = x, 1 = y
field_select: [[c_int; 2]; 2]last_mv: [[[c_int; 2]; 2]; 2]< last MV, used for MV prediction in MPEG-1 & B-frame MPEG-4
fcode_tab: *mut u8< smallest fcode needed for each MV
direct_scale_mv: [[i16; 64]; 2]< precomputed to avoid divisions in ff_mpeg4_set_direct_mv
me: MotionEstContextno_rounding: c_int< apply no rounding to motion compensation (MPEG-4, msmpeg4, ...) for B-frames rounding mode is always 0
mb_x: c_intmb_y: c_intmb_skip_run: c_intmb_intra: c_intmb_type: *mut u16< Table for candidate MB types for encoding (defines in mpegutils.h)
block_index: [c_int; 6]< index to current MB in block based arrays with edges
block_wrap: [c_int; 6]dest: [*mut u8; 3]mb_index2xy: *mut c_int< mb_index -> mb_x + mb_y*mb_stride
intra_matrix: [u16; 64]matrix transmitted in the bitstream
chroma_intra_matrix: [u16; 64]inter_matrix: [u16; 64]chroma_inter_matrix: [u16; 64]force_duplicated_matrix: c_int< Force duplication of mjpeg matrices, useful for rtp streaming
intra_quant_bias: c_int< bias for the quantizer
inter_quant_bias: c_int< bias for the quantizer
min_qcoeff: c_int< minimum encodable coefficient
max_qcoeff: c_int< maximum encodable coefficient
ac_esc_length: c_int< num of bits needed to encode the longest esc
intra_ac_vlc_length: *mut u8intra_ac_vlc_last_length: *mut u8intra_chroma_ac_vlc_length: *mut u8intra_chroma_ac_vlc_last_length: *mut u8inter_ac_vlc_length: *mut u8inter_ac_vlc_last_length: *mut u8luma_dc_vlc_length: *mut u8coded_score: [c_int; 12]q_intra_matrix: *mut [c_int; 64]precomputed matrix (combine qscale and DCT renorm)
q_chroma_intra_matrix: *mut [c_int; 64]q_inter_matrix: *mut [c_int; 64]q_intra_matrix16: *mut [[c_ushort; 64]; 2]identical to the above but for MMX & these are not permutated, second 64 entries are bias
q_chroma_intra_matrix16: *mut [[c_ushort; 64]; 2]q_inter_matrix16: *mut [[c_ushort; 64]; 2]dct_error_sum: *mut [c_int; 64]dct_count: [c_int; 2]dct_offset: *mut [c_ushort; 64]total_bits: i64frame_bits: c_int< bits used for the current frame
stuffing_bits: c_int< bits used for stuffing
next_lambda: c_int< next lambda used for retrying to encode a frame
rc_context: RateControlContext< contains stuff only accessed in ratecontrol.c
mv_bits: c_intheader_bits: c_inti_tex_bits: c_intp_tex_bits: c_inti_count: c_intf_count: c_intb_count: c_intskip_count: c_intmisc_bits: c_int< cbp, mb_type
last_bits: c_int< temp var used for calculating the above vars
resync_mb_x: c_int< x position of last resync marker
resync_mb_y: c_int< y position of last resync marker
last_resync_gb: GetBitContext< used to search for the next resync marker
mb_num_left: c_int< number of MBs left in this video packet (for partitioned Slices only)
next_p_frame_damaged: c_int< set if the next p frame is damaged, to avoid showing trashed B-frames
parse_context: ParseContextgob_index: c_intobmc: c_int< overlapped block motion compensation
mb_info: c_int< interval for outputting info about mb offsets as side data
prev_mb_info: c_intlast_mb_info: c_intmb_info_ptr: *mut u8mb_info_size: c_intehc_mode: c_intrc_strategy: c_int< deprecated
umvplus: c_int< == H.263+ && unrestricted_mv
h263_aic_dir: c_int< AIC direction: 0 = left, 1 = top
h263_slice_structured: c_intalt_inter_vlc: c_int< alternative inter vlc
modified_quant: c_intloop_filter: c_intcustom_pcf: c_intstudio_profile: c_intdct_precision: c_inttime_increment_bits: c_intlast_time_base: c_inttime_base: c_int< time in seconds of last I,P,S Frame
time: i64< time of current frame
last_non_b_time: i64pp_time: u16< time distance between the last 2 p,s,i frames
pb_time: u16< time distance between the last b and p,s,i frame
pp_field_time: u16pb_field_time: u16< like above, just for interlaced
real_sprite_warping_points: c_intsprite_offset: [[c_int; 2]; 2]< sprite offset[isChroma][isMVY]
sprite_delta: [[c_int; 2]; 2]< sprite_delta [isY][isMVY]
mcsel: c_intquant_precision: c_intquarter_sample: c_int< 1->qpel, 0->half pel ME/MC
aspect_ratio_info: c_intsprite_warping_accuracy: c_intdata_partitioning: c_int< data partitioning flag from header
partitioned_frame: c_int< is current frame partitioned
low_delay: c_int< no reordering needed / has no B-frames
vo_type: c_inttex_pb: PutBitContext< used for data partitioned VOPs
pb2: PutBitContext< used for data partitioned VOPs
mpeg_quant: c_intpadding_bug_score: c_int< used to detect the VERY common padding bug in MPEG-4
divx_packed: c_intbitstream_buffer: *mut u8bitstream_buffer_size: c_intallocated_bitstream_buffer_size: c_uintrv10_version: c_int< RV10 version: 0 or 3
rv10_first_dc_coded: [c_int; 3]mjpeg_ctx: *mut MJpegContextesc_pos: c_intpred: c_inthuffman: c_intmv_table_index: c_intrl_table_index: c_intrl_chroma_table_index: c_intdc_table_index: c_intuse_skip_mb_code: c_intslice_height: c_int< in macroblocks
first_slice_line: c_int< used in MPEG-4 too to handle resync markers
flipflop_rounding: c_intmsmpeg4_version: c_int< 0=not msmpeg4, 1=mp41, 2=mp42, 3=mp43/divx3 4=wmv1/7 5=wmv2/8
per_mb_rl_table: c_intesc3_level_length: c_intesc3_run_length: c_intac_stats: *mut [[[[c_int; 2]; 65]; 65]; 2][mb_intra][isChroma][level][run][last]
inter_intra_pred: c_intmspel: c_intgb: GetBitContextgop_picture_number: c_int< index of the first picture of a GOP based on fake_pic_num & MPEG-1 specific
last_mv_dir: c_int< last mv_dir, used for B-frame encoding
vbv_delay_ptr: *mut u8< pointer to vbv_delay in the bitstream
progressive_sequence: c_intmpeg_f_code: [[c_int; 2]; 2]a53_cc: c_intpicture_structure: c_inttimecode_frame_start: i64< GOP timecode frame start number, in non drop frame format
intra_dc_precision: c_intframe_pred_frame_dct: c_inttop_field_first: c_intconcealment_motion_vectors: c_intq_scale_type: c_intbrd_scale: c_intintra_vlc_format: c_intalternate_scan: c_intseq_disp_ext: c_intvideo_format: c_intrepeat_first_field: c_intchroma_420_type: c_intchroma_format: c_intchroma_x_shift: c_intchroma_y_shift: c_intprogressive_frame: c_intfull_pel: [c_int; 2]interlaced_dct: c_intfirst_field: c_int< is 1 for the first field of a field picture 0 otherwise
drop_frame_timecode: c_int< timecode is in drop frame format.
scan_offset: c_int< reserve space for SVCD scan offset user data.
rtp_mode: c_intrtp_payload_size: c_inttc_opt_str: *mut c_char< timecode option string
tc: AVTimecode< timecode context
ptr_lastgob: *mut u8swap_uv: c_intpack_pblocks: c_intpblocks: [*mut [c_short; 64]; 12]block: *mut [c_short; 64]< points to one of the following blocks
blocks: *mut [[c_short; 64]; 12]decode_mb: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut [i16; 64]) -> c_int>block32: *mut [[c_int; 64]; 12]dpcm_direction: c_intdpcm_macroblock: *mut [[c_short; 256]; 3]dct_unquantize_mpeg1_intra: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_mpeg1_inter: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_mpeg2_intra: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_mpeg2_inter: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_h263_intra: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_h263_inter: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_intra: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_unquantize_inter: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int)>dct_quantize: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int, overflow: *mut c_int) -> c_int>fast_dct_quantize: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16, n: c_int, qscale: c_int, overflow: *mut c_int) -> c_int>denoise_dct: Option<unsafe extern "C" fn(s: *mut MpegEncContext, block: *mut i16)>mpv_flags: c_int< flags set by private options
quantizer_noise_shaping: c_intrc_qsquish: f32ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continuous function to limit qscale within qmin/qmax.
rc_qmod_amp: f32rc_qmod_freq: c_intrc_initial_cplx: f32rc_buffer_aggressivity: f32border_masking: f32lmin: c_intlmax: c_intvbv_ignore_qmax: c_intrc_eq: *mut c_charcplx_tab: *mut f32bits_tab: *mut f32context_reinit: c_inter: ERContexterror_rate: c_inttmp_frames: [*mut AVFrame; 18]b_frame_strategy: c_intb_sensitivity: c_intframe_skip_threshold: c_intframe_skip_factor: c_intframe_skip_exp: c_intframe_skip_cmp: c_intscenechange_threshold: c_intnoise_reduction: c_intTrait Implementations
impl Clone for MpegEncContext[src]
fn clone(&self) -> MpegEncContext[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for MpegEncContext[src]
Auto Trait Implementations
impl !Send for MpegEncContext
impl !Sync for MpegEncContext
impl Unpin for MpegEncContext
impl UnwindSafe for MpegEncContext
impl RefUnwindSafe for MpegEncContext
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,