#[repr(C)]
pub struct AVFormatContext {
Show 75 fields pub av_class: *const AVClass, pub iformat: *mut AVInputFormat, pub oformat: *mut AVOutputFormat, pub priv_data: *mut c_void, pub pb: *mut AVIOContext, pub ctx_flags: c_int, pub nb_streams: c_uint, pub streams: *mut *mut AVStream, pub filename: [c_char; 1024], pub url: *mut c_char, pub start_time: i64, pub duration: i64, pub bit_rate: i64, pub packet_size: c_uint, pub max_delay: c_int, pub flags: c_int, pub probesize: i64, pub max_analyze_duration: i64, pub key: *const u8, pub keylen: c_int, pub nb_programs: c_uint, pub programs: *mut *mut AVProgram, pub video_codec_id: AVCodecID, pub audio_codec_id: AVCodecID, pub subtitle_codec_id: AVCodecID, pub max_index_size: c_uint, pub max_picture_buffer: c_uint, pub nb_chapters: c_uint, pub chapters: *mut *mut AVChapter, pub metadata: *mut AVDictionary, pub start_time_realtime: i64, pub fps_probe_size: c_int, pub error_recognition: c_int, pub interrupt_callback: AVIOInterruptCB, pub debug: c_int, pub max_interleave_delta: i64, pub strict_std_compliance: c_int, pub event_flags: c_int, pub max_ts_probe: c_int, pub avoid_negative_ts: c_int, pub ts_id: c_int, pub audio_preload: c_int, pub max_chunk_duration: c_int, pub max_chunk_size: c_int, pub use_wallclock_as_timestamps: c_int, pub avio_flags: c_int, pub duration_estimation_method: AVDurationEstimationMethod, pub skip_initial_bytes: i64, pub correct_ts_overflow: c_uint, pub seek2any: c_int, pub flush_packets: c_int, pub probe_score: c_int, pub format_probesize: c_int, pub codec_whitelist: *mut c_char, pub format_whitelist: *mut c_char, pub internal: *mut AVFormatInternal, pub io_repositioned: c_int, pub video_codec: *mut AVCodec, pub audio_codec: *mut AVCodec, pub subtitle_codec: *mut AVCodec, pub data_codec: *mut AVCodec, pub metadata_header_padding: c_int, pub opaque: *mut c_void, pub control_message_cb: av_format_control_message, pub output_ts_offset: i64, pub dump_separator: *mut u8, pub data_codec_id: AVCodecID, pub open_cb: Option<unsafe extern "C" fn(s: *mut AVFormatContext, p: *mut *mut AVIOContext, url: *const c_char, flags: c_int, int_cb: *const AVIOInterruptCB, options: *mut *mut AVDictionary) -> c_int>, pub protocol_whitelist: *mut c_char, pub io_open: Option<unsafe extern "C" fn(s: *mut AVFormatContext, pb: *mut *mut AVIOContext, url: *const c_char, flags: c_int, options: *mut *mut AVDictionary) -> c_int>, pub io_close: Option<unsafe extern "C" fn(s: *mut AVFormatContext, pb: *mut AVIOContext)>, pub protocol_blacklist: *mut c_char, pub max_streams: c_int, pub skip_estimate_duration_from_pts: c_int, pub max_probe_packets: c_int,
}

Fields§

§av_class: *const AVClass§iformat: *mut AVInputFormat§oformat: *mut AVOutputFormat§priv_data: *mut c_void§pb: *mut AVIOContext§ctx_flags: c_int§nb_streams: c_uint§streams: *mut *mut AVStream§filename: [c_char; 1024]§url: *mut c_char§start_time: i64§duration: i64§bit_rate: i64§packet_size: c_uint§max_delay: c_int§flags: c_int§probesize: i64§max_analyze_duration: i64§key: *const u8§keylen: c_int§nb_programs: c_uint§programs: *mut *mut AVProgram§video_codec_id: AVCodecID§audio_codec_id: AVCodecID§subtitle_codec_id: AVCodecID§max_index_size: c_uint§max_picture_buffer: c_uint§nb_chapters: c_uint§chapters: *mut *mut AVChapter§metadata: *mut AVDictionary§start_time_realtime: i64§fps_probe_size: c_int§error_recognition: c_int§interrupt_callback: AVIOInterruptCB§debug: c_int§max_interleave_delta: i64§strict_std_compliance: c_int§event_flags: c_int§max_ts_probe: c_int§avoid_negative_ts: c_int§ts_id: c_int§audio_preload: c_int§max_chunk_duration: c_int§max_chunk_size: c_int§use_wallclock_as_timestamps: c_int§avio_flags: c_int§duration_estimation_method: AVDurationEstimationMethod§skip_initial_bytes: i64§correct_ts_overflow: c_uint§seek2any: c_int§flush_packets: c_int§probe_score: c_int§format_probesize: c_int§codec_whitelist: *mut c_char§format_whitelist: *mut c_char§internal: *mut AVFormatInternal§io_repositioned: c_int§video_codec: *mut AVCodec§audio_codec: *mut AVCodec§subtitle_codec: *mut AVCodec§data_codec: *mut AVCodec§metadata_header_padding: c_int§opaque: *mut c_void§control_message_cb: av_format_control_message§output_ts_offset: i64§dump_separator: *mut u8§data_codec_id: AVCodecID§open_cb: Option<unsafe extern "C" fn(s: *mut AVFormatContext, p: *mut *mut AVIOContext, url: *const c_char, flags: c_int, int_cb: *const AVIOInterruptCB, options: *mut *mut AVDictionary) -> c_int>§protocol_whitelist: *mut c_char§io_open: Option<unsafe extern "C" fn(s: *mut AVFormatContext, pb: *mut *mut AVIOContext, url: *const c_char, flags: c_int, options: *mut *mut AVDictionary) -> c_int>§io_close: Option<unsafe extern "C" fn(s: *mut AVFormatContext, pb: *mut AVIOContext)>§protocol_blacklist: *mut c_char§max_streams: c_int§skip_estimate_duration_from_pts: c_int§max_probe_packets: c_int

Trait Implementations§

source§

impl Clone for AVFormatContext

source§

fn clone(&self) -> AVFormatContext

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 Debug for AVFormatContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for AVFormatContext

source§

fn eq(&self, other: &AVFormatContext) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for AVFormatContext

source§

impl Eq for AVFormatContext

source§

impl StructuralPartialEq for AVFormatContext

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.