#[repr(C)]pub struct AVCodecContext {Show 152 fields
pub av_class: *const AVClass,
pub log_level_offset: c_int,
pub codec_type: AVMediaType,
pub codec: *const AVCodec,
pub codec_id: AVCodecID,
pub codec_tag: c_uint,
pub priv_data: *mut c_void,
pub internal: *mut AVCodecInternal,
pub opaque: *mut c_void,
pub bit_rate: i64,
pub flags: c_int,
pub flags2: c_int,
pub extradata: *mut u8,
pub extradata_size: c_int,
pub time_base: AVRational,
pub pkt_timebase: AVRational,
pub framerate: AVRational,
pub ticks_per_frame: c_int,
pub delay: c_int,
pub width: c_int,
pub height: c_int,
pub coded_width: c_int,
pub coded_height: c_int,
pub sample_aspect_ratio: AVRational,
pub pix_fmt: AVPixelFormat,
pub sw_pix_fmt: AVPixelFormat,
pub color_primaries: AVColorPrimaries,
pub color_trc: AVColorTransferCharacteristic,
pub colorspace: AVColorSpace,
pub color_range: AVColorRange,
pub chroma_sample_location: AVChromaLocation,
pub field_order: AVFieldOrder,
pub refs: c_int,
pub has_b_frames: c_int,
pub slice_flags: c_int,
pub draw_horiz_band: Option<unsafe extern "C" fn(s: *mut AVCodecContext, src: *const AVFrame, offset: *mut c_int, y: c_int, type_: c_int, height: c_int)>,
pub get_format: Option<unsafe extern "C" fn(s: *mut AVCodecContext, fmt: *const AVPixelFormat) -> AVPixelFormat>,
pub max_b_frames: c_int,
pub b_quant_factor: f32,
pub b_quant_offset: f32,
pub i_quant_factor: f32,
pub i_quant_offset: f32,
pub lumi_masking: f32,
pub temporal_cplx_masking: f32,
pub spatial_cplx_masking: f32,
pub p_masking: f32,
pub dark_masking: f32,
pub nsse_weight: c_int,
pub me_cmp: c_int,
pub me_sub_cmp: c_int,
pub mb_cmp: c_int,
pub ildct_cmp: c_int,
pub dia_size: c_int,
pub last_predictor_count: c_int,
pub me_pre_cmp: c_int,
pub pre_dia_size: c_int,
pub me_subpel_quality: c_int,
pub me_range: c_int,
pub mb_decision: c_int,
pub intra_matrix: *mut u16,
pub inter_matrix: *mut u16,
pub chroma_intra_matrix: *mut u16,
pub intra_dc_precision: c_int,
pub mb_lmin: c_int,
pub mb_lmax: c_int,
pub bidir_refine: c_int,
pub keyint_min: c_int,
pub gop_size: c_int,
pub mv0_threshold: c_int,
pub slices: c_int,
pub sample_rate: c_int,
pub sample_fmt: AVSampleFormat,
pub ch_layout: AVChannelLayout,
pub frame_size: c_int,
pub block_align: c_int,
pub cutoff: c_int,
pub audio_service_type: AVAudioServiceType,
pub request_sample_fmt: AVSampleFormat,
pub initial_padding: c_int,
pub trailing_padding: c_int,
pub seek_preroll: c_int,
pub get_buffer2: Option<unsafe extern "C" fn(s: *mut AVCodecContext, frame: *mut AVFrame, flags: c_int) -> c_int>,
pub bit_rate_tolerance: c_int,
pub global_quality: c_int,
pub compression_level: c_int,
pub qcompress: f32,
pub qblur: f32,
pub qmin: c_int,
pub qmax: c_int,
pub max_qdiff: c_int,
pub rc_buffer_size: c_int,
pub rc_override_count: c_int,
pub rc_override: *mut RcOverride,
pub rc_max_rate: i64,
pub rc_min_rate: i64,
pub rc_max_available_vbv_use: f32,
pub rc_min_vbv_overflow_use: f32,
pub rc_initial_buffer_occupancy: c_int,
pub trellis: c_int,
pub stats_out: *mut c_char,
pub stats_in: *mut c_char,
pub workaround_bugs: c_int,
pub strict_std_compliance: c_int,
pub error_concealment: c_int,
pub debug: c_int,
pub err_recognition: c_int,
pub hwaccel: *const AVHWAccel,
pub hwaccel_context: *mut c_void,
pub hw_frames_ctx: *mut AVBufferRef,
pub hw_device_ctx: *mut AVBufferRef,
pub hwaccel_flags: c_int,
pub extra_hw_frames: c_int,
pub error: [u64; 8],
pub dct_algo: c_int,
pub idct_algo: c_int,
pub bits_per_coded_sample: c_int,
pub bits_per_raw_sample: c_int,
pub thread_count: c_int,
pub thread_type: c_int,
pub active_thread_type: c_int,
pub execute: Option<unsafe extern "C" fn(c: *mut AVCodecContext, func: Option<unsafe extern "C" fn(c2: *mut AVCodecContext, arg: *mut c_void) -> c_int>, arg2: *mut c_void, ret: *mut c_int, count: c_int, size: c_int) -> c_int>,
pub execute2: Option<unsafe extern "C" fn(c: *mut AVCodecContext, func: Option<unsafe extern "C" fn(c2: *mut AVCodecContext, arg: *mut c_void, jobnr: c_int, threadnr: c_int) -> c_int>, arg2: *mut c_void, ret: *mut c_int, count: c_int) -> c_int>,
pub profile: c_int,
pub level: c_int,
pub properties: c_uint,
pub skip_loop_filter: AVDiscard,
pub skip_idct: AVDiscard,
pub skip_frame: AVDiscard,
pub skip_alpha: c_int,
pub skip_top: c_int,
pub skip_bottom: c_int,
pub lowres: c_int,
pub codec_descriptor: *const AVCodecDescriptor,
pub sub_charenc: *mut c_char,
pub sub_charenc_mode: c_int,
pub subtitle_header_size: c_int,
pub subtitle_header: *mut u8,
pub dump_separator: *mut u8,
pub codec_whitelist: *mut c_char,
pub coded_side_data: *mut AVPacketSideData,
pub nb_coded_side_data: c_int,
pub export_side_data: c_int,
pub max_pixels: i64,
pub apply_cropping: c_int,
pub discard_damaged_percentage: c_int,
pub max_samples: i64,
pub get_encode_buffer: Option<unsafe extern "C" fn(s: *mut AVCodecContext, pkt: *mut AVPacket, flags: c_int) -> c_int>,
pub frame_num: i64,
pub side_data_prefer_packet: *mut c_int,
pub nb_side_data_prefer_packet: c_uint,
pub decoded_side_data: *mut *mut AVFrameSideData,
pub nb_decoded_side_data: c_int,
}
Fields§
§av_class: *const AVClass
§log_level_offset: c_int
§codec_type: AVMediaType
§codec: *const AVCodec
§codec_id: AVCodecID
§codec_tag: c_uint
§priv_data: *mut c_void
§internal: *mut AVCodecInternal
§opaque: *mut c_void
§bit_rate: i64
§flags: c_int
§flags2: c_int
§extradata: *mut u8
§extradata_size: c_int
§time_base: AVRational
§pkt_timebase: AVRational
§framerate: AVRational
§ticks_per_frame: c_int
§delay: c_int
§width: c_int
§height: c_int
§coded_width: c_int
§coded_height: c_int
§sample_aspect_ratio: AVRational
§pix_fmt: AVPixelFormat
§sw_pix_fmt: AVPixelFormat
§color_primaries: AVColorPrimaries
§color_trc: AVColorTransferCharacteristic
§colorspace: AVColorSpace
§color_range: AVColorRange
§chroma_sample_location: AVChromaLocation
§field_order: AVFieldOrder
§refs: c_int
§has_b_frames: c_int
§slice_flags: c_int
§draw_horiz_band: Option<unsafe extern "C" fn(s: *mut AVCodecContext, src: *const AVFrame, offset: *mut c_int, y: c_int, type_: c_int, height: c_int)>
§get_format: Option<unsafe extern "C" fn(s: *mut AVCodecContext, fmt: *const AVPixelFormat) -> AVPixelFormat>
§max_b_frames: c_int
§b_quant_factor: f32
§b_quant_offset: f32
§i_quant_factor: f32
§i_quant_offset: f32
§lumi_masking: f32
§temporal_cplx_masking: f32
§spatial_cplx_masking: f32
§p_masking: f32
§dark_masking: f32
§nsse_weight: c_int
§me_cmp: c_int
§me_sub_cmp: c_int
§mb_cmp: c_int
§ildct_cmp: c_int
§dia_size: c_int
§last_predictor_count: c_int
§me_pre_cmp: c_int
§pre_dia_size: c_int
§me_subpel_quality: c_int
§me_range: c_int
§mb_decision: c_int
§intra_matrix: *mut u16
§inter_matrix: *mut u16
§chroma_intra_matrix: *mut u16
§intra_dc_precision: c_int
§mb_lmin: c_int
§mb_lmax: c_int
§bidir_refine: c_int
§keyint_min: c_int
§gop_size: c_int
§mv0_threshold: c_int
§slices: c_int
§sample_rate: c_int
§sample_fmt: AVSampleFormat
§ch_layout: AVChannelLayout
§frame_size: c_int
§block_align: c_int
§cutoff: c_int
§audio_service_type: AVAudioServiceType
§request_sample_fmt: AVSampleFormat
§initial_padding: c_int
§trailing_padding: c_int
§seek_preroll: c_int
§get_buffer2: Option<unsafe extern "C" fn(s: *mut AVCodecContext, frame: *mut AVFrame, flags: c_int) -> c_int>
§bit_rate_tolerance: c_int
§global_quality: c_int
§compression_level: c_int
§qcompress: f32
§qblur: f32
§qmin: c_int
§qmax: c_int
§max_qdiff: c_int
§rc_buffer_size: c_int
§rc_override_count: c_int
§rc_override: *mut RcOverride
§rc_max_rate: i64
§rc_min_rate: i64
§rc_max_available_vbv_use: f32
§rc_min_vbv_overflow_use: f32
§rc_initial_buffer_occupancy: c_int
§trellis: c_int
§stats_out: *mut c_char
§stats_in: *mut c_char
§workaround_bugs: c_int
§strict_std_compliance: c_int
§error_concealment: c_int
§debug: c_int
§err_recognition: c_int
§hwaccel: *const AVHWAccel
§hwaccel_context: *mut c_void
§hw_frames_ctx: *mut AVBufferRef
§hw_device_ctx: *mut AVBufferRef
§hwaccel_flags: c_int
§extra_hw_frames: c_int
§error: [u64; 8]
§dct_algo: c_int
§idct_algo: c_int
§bits_per_coded_sample: c_int
§bits_per_raw_sample: c_int
§thread_count: c_int
§thread_type: c_int
§active_thread_type: c_int
§execute: Option<unsafe extern "C" fn(c: *mut AVCodecContext, func: Option<unsafe extern "C" fn(c2: *mut AVCodecContext, arg: *mut c_void) -> c_int>, arg2: *mut c_void, ret: *mut c_int, count: c_int, size: c_int) -> c_int>
§execute2: Option<unsafe extern "C" fn(c: *mut AVCodecContext, func: Option<unsafe extern "C" fn(c2: *mut AVCodecContext, arg: *mut c_void, jobnr: c_int, threadnr: c_int) -> c_int>, arg2: *mut c_void, ret: *mut c_int, count: c_int) -> c_int>
§profile: c_int
§level: c_int
§properties: c_uint
§skip_loop_filter: AVDiscard
§skip_idct: AVDiscard
§skip_frame: AVDiscard
§skip_alpha: c_int
§skip_top: c_int
§skip_bottom: c_int
§lowres: c_int
§codec_descriptor: *const AVCodecDescriptor
§sub_charenc: *mut c_char
§sub_charenc_mode: c_int
§subtitle_header_size: c_int
§subtitle_header: *mut u8
§dump_separator: *mut u8
§codec_whitelist: *mut c_char
§coded_side_data: *mut AVPacketSideData
§nb_coded_side_data: c_int
§export_side_data: c_int
§max_pixels: i64
§apply_cropping: c_int
§discard_damaged_percentage: c_int
§max_samples: i64
§get_encode_buffer: Option<unsafe extern "C" fn(s: *mut AVCodecContext, pkt: *mut AVPacket, flags: c_int) -> c_int>
§frame_num: i64
§side_data_prefer_packet: *mut c_int
§nb_side_data_prefer_packet: c_uint
§decoded_side_data: *mut *mut AVFrameSideData
§nb_decoded_side_data: c_int
Trait Implementations§
Source§impl Clone for AVCodecContext
impl Clone for AVCodecContext
Source§fn clone(&self) -> AVCodecContext
fn clone(&self) -> AVCodecContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for AVCodecContext
Auto Trait Implementations§
impl Freeze for AVCodecContext
impl RefUnwindSafe for AVCodecContext
impl !Send for AVCodecContext
impl !Sync for AVCodecContext
impl Unpin for AVCodecContext
impl UnwindSafe for AVCodecContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more