Struct ffmpeg::ffi::AVCodecContext

source ·
#[repr(C)]
pub struct AVCodecContext {
Show 159 fields pub av_class: *const AVClass, pub log_level_offset: c_int, pub codec_type: c_int, pub codec: *const AVCodec, pub codec_id: c_uint, 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 bit_rate_tolerance: c_int, pub global_quality: c_int, pub compression_level: c_int, pub flags: c_int, pub flags2: c_int, pub extradata: *mut u8, pub extradata_size: c_int, pub time_base: 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 gop_size: c_int, pub pix_fmt: 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 c_int) -> c_int>, pub max_b_frames: c_int, pub b_quant_factor: f32, pub b_quant_offset: f32, pub has_b_frames: c_int, 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 slice_count: c_int, pub slice_offset: *mut c_int, pub sample_aspect_ratio: AVRational, 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 slice_flags: c_int, pub mb_decision: c_int, pub intra_matrix: *mut u16, pub inter_matrix: *mut u16, pub intra_dc_precision: c_int, pub skip_top: c_int, pub skip_bottom: c_int, pub mb_lmin: c_int, pub mb_lmax: c_int, pub bidir_refine: c_int, pub keyint_min: c_int, pub refs: c_int, pub mv0_threshold: c_int, pub color_primaries: c_uint, pub color_trc: c_uint, pub colorspace: c_uint, pub color_range: c_uint, pub chroma_sample_location: c_uint, pub slices: c_int, pub field_order: c_uint, pub sample_rate: c_int, pub channels: c_int, pub sample_fmt: c_int, pub frame_size: c_int, pub frame_number: c_int, pub block_align: c_int, pub cutoff: c_int, pub channel_layout: u64, pub request_channel_layout: u64, pub audio_service_type: c_uint, pub request_sample_fmt: c_int, pub get_buffer2: Option<unsafe extern "C" fn(s: *mut AVCodecContext, frame: *mut AVFrame, flags: c_int) -> 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 reordered_opaque: i64, pub hwaccel: *const AVHWAccel, pub hwaccel_context: *mut c_void, 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 lowres: 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 nsse_weight: c_int, pub profile: c_int, pub level: c_int, pub skip_loop_filter: c_int, pub skip_idct: c_int, pub skip_frame: c_int, pub subtitle_header: *mut u8, pub subtitle_header_size: c_int, pub initial_padding: c_int, pub framerate: AVRational, pub sw_pix_fmt: c_int, pub pkt_timebase: AVRational, pub codec_descriptor: *const AVCodecDescriptor, pub pts_correction_num_faulty_pts: i64, pub pts_correction_num_faulty_dts: i64, pub pts_correction_last_pts: i64, pub pts_correction_last_dts: i64, pub sub_charenc: *mut c_char, pub sub_charenc_mode: c_int, pub skip_alpha: c_int, pub seek_preroll: c_int, pub chroma_intra_matrix: *mut u16, pub dump_separator: *mut u8, pub codec_whitelist: *mut c_char, pub properties: c_uint, pub coded_side_data: *mut AVPacketSideData, pub nb_coded_side_data: c_int, pub hw_frames_ctx: *mut AVBufferRef, pub trailing_padding: c_int, pub max_pixels: i64, pub hw_device_ctx: *mut AVBufferRef, pub hwaccel_flags: c_int, pub apply_cropping: c_int, pub extra_hw_frames: c_int, pub discard_damaged_percentage: c_int, pub max_samples: i64, pub export_side_data: c_int, pub get_encode_buffer: Option<unsafe extern "C" fn(s: *mut AVCodecContext, pkt: *mut AVPacket, flags: c_int) -> c_int>, pub ch_layout: AVChannelLayout, pub frame_num: i64,
}

Fields§

§av_class: *const AVClass§log_level_offset: c_int§codec_type: c_int§codec: *const AVCodec§codec_id: c_uint§codec_tag: c_uint§priv_data: *mut c_void§internal: *mut AVCodecInternal§opaque: *mut c_void§bit_rate: i64§bit_rate_tolerance: c_int§global_quality: c_int§compression_level: c_int§flags: c_int§flags2: c_int§extradata: *mut u8§extradata_size: c_int§time_base: AVRational§ticks_per_frame: c_int§delay: c_int§width: c_int§height: c_int§coded_width: c_int§coded_height: c_int§gop_size: c_int§pix_fmt: 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 c_int) -> c_int>§max_b_frames: c_int§b_quant_factor: f32§b_quant_offset: f32§has_b_frames: c_int§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§slice_count: c_int§slice_offset: *mut c_int§sample_aspect_ratio: AVRational§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§slice_flags: c_int§mb_decision: c_int§intra_matrix: *mut u16§inter_matrix: *mut u16§intra_dc_precision: c_int§skip_top: c_int§skip_bottom: c_int§mb_lmin: c_int§mb_lmax: c_int§bidir_refine: c_int§keyint_min: c_int§refs: c_int§mv0_threshold: c_int§color_primaries: c_uint§color_trc: c_uint§colorspace: c_uint§color_range: c_uint§chroma_sample_location: c_uint§slices: c_int§field_order: c_uint§sample_rate: c_int§channels: c_int§sample_fmt: c_int§frame_size: c_int§frame_number: c_int§block_align: c_int§cutoff: c_int§channel_layout: u64§request_channel_layout: u64§audio_service_type: c_uint§request_sample_fmt: c_int§get_buffer2: Option<unsafe extern "C" fn(s: *mut AVCodecContext, frame: *mut AVFrame, flags: c_int) -> 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§reordered_opaque: i64§hwaccel: *const AVHWAccel§hwaccel_context: *mut c_void§error: [u64; 8]§dct_algo: c_int§idct_algo: c_int§bits_per_coded_sample: c_int§bits_per_raw_sample: c_int§lowres: 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>§nsse_weight: c_int§profile: c_int§level: c_int§skip_loop_filter: c_int§skip_idct: c_int§skip_frame: c_int§subtitle_header: *mut u8§subtitle_header_size: c_int§initial_padding: c_int§framerate: AVRational§sw_pix_fmt: c_int§pkt_timebase: AVRational§codec_descriptor: *const AVCodecDescriptor§pts_correction_num_faulty_pts: i64§pts_correction_num_faulty_dts: i64§pts_correction_last_pts: i64§pts_correction_last_dts: i64§sub_charenc: *mut c_char§sub_charenc_mode: c_int§skip_alpha: c_int§seek_preroll: c_int§chroma_intra_matrix: *mut u16§dump_separator: *mut u8§codec_whitelist: *mut c_char§properties: c_uint§coded_side_data: *mut AVPacketSideData§nb_coded_side_data: c_int§hw_frames_ctx: *mut AVBufferRef§trailing_padding: c_int§max_pixels: i64§hw_device_ctx: *mut AVBufferRef§hwaccel_flags: c_int§apply_cropping: c_int§extra_hw_frames: c_int§discard_damaged_percentage: c_int§max_samples: i64§export_side_data: c_int§get_encode_buffer: Option<unsafe extern "C" fn(s: *mut AVCodecContext, pkt: *mut AVPacket, flags: c_int) -> c_int>§ch_layout: AVChannelLayout§frame_num: i64

Trait Implementations§

source§

impl AsRef<AVCodecContext> for AvCodecContext

source§

fn as_ref(&self) -> &AVCodecContext

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for AVCodecContext

source§

fn clone(&self) -> AVCodecContext

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for AVCodecContext

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.