Struct ffav_sys::AVFormatContext[][src]

#[repr(C)]
pub struct AVFormatContext {
Show 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,
}

Fields

av_class: *const AVClassiformat: *mut AVInputFormatoformat: *mut AVOutputFormatpriv_data: *mut c_voidpb: *mut AVIOContextctx_flags: c_intnb_streams: c_uintstreams: *mut *mut AVStreamfilename: [c_char; 1024]url: *mut c_charstart_time: i64duration: i64bit_rate: i64packet_size: c_uintmax_delay: c_intflags: c_intprobesize: i64max_analyze_duration: i64key: *const u8keylen: c_intnb_programs: c_uintprograms: *mut *mut AVProgramvideo_codec_id: AVCodecIDaudio_codec_id: AVCodecIDsubtitle_codec_id: AVCodecIDmax_index_size: c_uintmax_picture_buffer: c_uintnb_chapters: c_uintchapters: *mut *mut AVChaptermetadata: *mut AVDictionarystart_time_realtime: i64fps_probe_size: c_interror_recognition: c_intinterrupt_callback: AVIOInterruptCBdebug: c_intmax_interleave_delta: i64strict_std_compliance: c_intevent_flags: c_intmax_ts_probe: c_intavoid_negative_ts: c_intts_id: c_intaudio_preload: c_intmax_chunk_duration: c_intmax_chunk_size: c_intuse_wallclock_as_timestamps: c_intavio_flags: c_intduration_estimation_method: AVDurationEstimationMethodskip_initial_bytes: i64correct_ts_overflow: c_uintseek2any: c_intflush_packets: c_intprobe_score: c_intformat_probesize: c_intcodec_whitelist: *mut c_charformat_whitelist: *mut c_charinternal: *mut AVFormatInternalio_repositioned: c_intvideo_codec: *mut AVCodecaudio_codec: *mut AVCodecsubtitle_codec: *mut AVCodecdata_codec: *mut AVCodecmetadata_header_padding: c_intopaque: *mut c_voidcontrol_message_cb: av_format_control_messageoutput_ts_offset: i64dump_separator: *mut u8data_codec_id: AVCodecIDopen_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_chario_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_charmax_streams: c_intskip_estimate_duration_from_pts: c_int

Implementations

impl AVFormatContext[src]

pub fn pb(&self) -> Option<&AVIOContext>[src]

Returns the reference of the I/O context.

pub fn pb_mut(&self) -> Option<&mut AVIOContext>[src]

Returns the mutable reference of the I/O context.

pub fn nb_streams(&self) -> usize[src]

Number of elements in AVFormatContext.streams.

pub fn streams(&self) -> &[&AVStream][src]

A list of all streams in the file.

pub fn streams_mut(&self) -> &[&mut AVStream][src]

A list of all streams in the file.

pub fn nb_programs(&self) -> usize[src]

Number of elements in AVFormatContext.programs.

pub fn programs(&self) -> &[&AVProgram][src]

A list of all programs in the file.

pub fn programs_mut(&self) -> &[&mut AVProgram][src]

A list of all programs in the file.

pub fn nb_chapters(&self) -> usize[src]

Number of elements in AVFormatContext.chapters.

pub fn chapters(&self) -> &[&AVChapter][src]

A list of all chapters in the file.

pub fn chapters_mut(&self) -> &[&mut AVChapter][src]

A list of all chapters in the file.

Trait Implementations

impl Clone for AVFormatContext[src]

fn clone(&self) -> AVFormatContext[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for AVFormatContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.