Struct libav_ng::low_level::AVFormatContext

source ·
#[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: i32, pub nb_streams: u32, pub streams: *mut *mut AVStream, pub filename: [i8; 1024], 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 max_index_size: u32, pub max_picture_buffer: u32, pub nb_chapters: u32, pub chapters: *mut *mut AVChapter, 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_interleave_delta: i64, pub strict_std_compliance: i32, pub event_flags: i32, pub max_ts_probe: i32, pub avoid_negative_ts: i32, pub ts_id: i32, pub audio_preload: i32, pub max_chunk_duration: i32, pub max_chunk_size: i32, pub use_wallclock_as_timestamps: 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 internal: *mut AVFormatInternal, pub io_repositioned: i32, pub video_codec: *mut AVCodec, pub audio_codec: *mut AVCodec, pub subtitle_codec: *mut AVCodec, pub data_codec: *mut 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 data_codec_id: u32, pub open_cb: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut *mut AVIOContext, _: *const i8, _: i32, _: *const AVIOInterruptCB, _: *mut *mut AVDictionary) -> i32>, pub protocol_whitelist: *mut i8, pub io_open: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut *mut AVIOContext, _: *const i8, _: i32, _: *mut *mut AVDictionary) -> i32>, pub io_close: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut AVIOContext)>, pub protocol_blacklist: *mut i8, pub max_streams: i32, pub skip_estimate_duration_from_pts: i32, pub max_probe_packets: i32,
}

Fields§

§av_class: *const AVClass§iformat: *mut AVInputFormat§oformat: *mut AVOutputFormat§priv_data: *mut c_void§pb: *mut AVIOContext§ctx_flags: i32§nb_streams: u32§streams: *mut *mut AVStream§filename: [i8; 1024]§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§max_index_size: u32§max_picture_buffer: u32§nb_chapters: u32§chapters: *mut *mut AVChapter§metadata: *mut AVDictionary§start_time_realtime: i64§fps_probe_size: i32§error_recognition: i32§interrupt_callback: AVIOInterruptCB§debug: i32§max_interleave_delta: i64§strict_std_compliance: i32§event_flags: i32§max_ts_probe: i32§avoid_negative_ts: i32§ts_id: i32§audio_preload: i32§max_chunk_duration: i32§max_chunk_size: i32§use_wallclock_as_timestamps: 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§internal: *mut AVFormatInternal§io_repositioned: i32§video_codec: *mut AVCodec§audio_codec: *mut AVCodec§subtitle_codec: *mut AVCodec§data_codec: *mut 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§data_codec_id: u32§open_cb: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut *mut AVIOContext, _: *const i8, _: i32, _: *const AVIOInterruptCB, _: *mut *mut AVDictionary) -> i32>§protocol_whitelist: *mut i8§io_open: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut *mut AVIOContext, _: *const i8, _: i32, _: *mut *mut AVDictionary) -> i32>§io_close: Option<unsafe extern "C" fn(_: *mut AVFormatContext, _: *mut AVIOContext)>§protocol_blacklist: *mut i8§max_streams: i32§skip_estimate_duration_from_pts: i32§max_probe_packets: i32

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<(), Error>

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

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§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.