Struct AVFormatContext

#[repr(C)]
pub struct AVFormatContext {
Show 74 fields pub av_class: *const AVClass, pub iformat: *const AVInputFormat, pub oformat: *const AVOutputFormat, pub priv_data: *mut c_void, pub pb: *mut AVIOContext, pub ctx_flags: i32, pub nb_streams: u32, pub streams: *mut *mut AVStream, pub nb_stream_groups: u32, pub stream_groups: *mut *mut AVStreamGroup, pub nb_chapters: u32, pub chapters: *mut *mut AVChapter, pub url: *mut i8, pub start_time: i64, pub duration: i64, pub bit_rate: i64, pub packet_size: u32, pub max_delay: i32, pub flags: i32, pub probesize: i64, pub max_analyze_duration: i64, pub key: *const u8, pub keylen: i32, pub nb_programs: u32, pub programs: *mut *mut AVProgram, pub video_codec_id: u32, pub audio_codec_id: u32, pub subtitle_codec_id: u32, pub data_codec_id: u32, pub metadata: *mut AVDictionary, pub start_time_realtime: i64, pub fps_probe_size: i32, pub error_recognition: i32, pub interrupt_callback: AVIOInterruptCB, pub debug: i32, pub max_streams: i32, pub max_index_size: u32, pub max_picture_buffer: u32, pub max_interleave_delta: i64, pub max_ts_probe: i32, pub max_chunk_duration: i32, pub max_chunk_size: i32, pub max_probe_packets: i32, pub strict_std_compliance: i32, pub event_flags: i32, pub avoid_negative_ts: i32, pub audio_preload: i32, pub use_wallclock_as_timestamps: i32, pub skip_estimate_duration_from_pts: i32, pub avio_flags: i32, pub duration_estimation_method: u32, pub skip_initial_bytes: i64, pub correct_ts_overflow: u32, pub seek2any: i32, pub flush_packets: i32, pub probe_score: i32, pub format_probesize: i32, pub codec_whitelist: *mut i8, pub format_whitelist: *mut i8, pub protocol_whitelist: *mut i8, pub protocol_blacklist: *mut i8, pub io_repositioned: i32, pub video_codec: *const AVCodec, pub audio_codec: *const AVCodec, pub subtitle_codec: *const AVCodec, pub data_codec: *const AVCodec, pub metadata_header_padding: i32, pub opaque: *mut c_void, pub control_message_cb: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut c_void, usize) -> i32>, pub output_ts_offset: i64, pub dump_separator: *mut u8, pub io_open: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut *mut AVIOContext, *const i8, i32, *mut *mut AVDictionary) -> i32>, pub io_close2: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVIOContext) -> i32>, pub duration_probesize: i64,
}

Fields§

§av_class: *const AVClass§iformat: *const AVInputFormat§oformat: *const AVOutputFormat§priv_data: *mut c_void§pb: *mut AVIOContext§ctx_flags: i32§nb_streams: u32§streams: *mut *mut AVStream§nb_stream_groups: u32§stream_groups: *mut *mut AVStreamGroup§nb_chapters: u32§chapters: *mut *mut AVChapter§url: *mut i8§start_time: i64§duration: i64§bit_rate: i64§packet_size: u32§max_delay: i32§flags: i32§probesize: i64§max_analyze_duration: i64§key: *const u8§keylen: i32§nb_programs: u32§programs: *mut *mut AVProgram§video_codec_id: u32§audio_codec_id: u32§subtitle_codec_id: u32§data_codec_id: u32§metadata: *mut AVDictionary§start_time_realtime: i64§fps_probe_size: i32§error_recognition: i32§interrupt_callback: AVIOInterruptCB§debug: i32§max_streams: i32§max_index_size: u32§max_picture_buffer: u32§max_interleave_delta: i64§max_ts_probe: i32§max_chunk_duration: i32§max_chunk_size: i32§max_probe_packets: i32§strict_std_compliance: i32§event_flags: i32§avoid_negative_ts: i32§audio_preload: i32§use_wallclock_as_timestamps: i32§skip_estimate_duration_from_pts: i32§avio_flags: i32§duration_estimation_method: u32§skip_initial_bytes: i64§correct_ts_overflow: u32§seek2any: i32§flush_packets: i32§probe_score: i32§format_probesize: i32§codec_whitelist: *mut i8§format_whitelist: *mut i8§protocol_whitelist: *mut i8§protocol_blacklist: *mut i8§io_repositioned: i32§video_codec: *const AVCodec§audio_codec: *const AVCodec§subtitle_codec: *const AVCodec§data_codec: *const AVCodec§metadata_header_padding: i32§opaque: *mut c_void§control_message_cb: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut c_void, usize) -> i32>§output_ts_offset: i64§dump_separator: *mut u8§io_open: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut *mut AVIOContext, *const i8, i32, *mut *mut AVDictionary) -> i32>§io_close2: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVIOContext) -> i32>§duration_probesize: i64

Trait Implementations§

§

impl Clone for AVFormatContext

§

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
§

impl Debug for AVFormatContext

§

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

Formats the value using the given formatter. Read more
§

impl Copy 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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,

Source§

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>,

Source§

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>,

Source§

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more