Struct rsmpeg::avformat::AVFormatContextInput[][src]

pub struct AVFormatContextInput { /* fields omitted */ }

Implementations

Safety

This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.

Safety

This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.

Create a AVFormatContextInput instance of a file, and find info of all streams.

Dump ffi::AVFormatContext’s info in the “FFmpeg” way.

The index and filename here is just for info printing, it really doesn’t matter.

Return the next packet of a stream. This function returns what is stored in the file, and does not validate that what is there are valid packets for the decoder. It will split what is stored in the file into packets and return one for each call. It will not omit invalid data between valid packets so as to give the decoder the maximum information possible for decoding.

Return Err(_) on error, Return Ok(None) on EOF.

Return the stream index and stream decoder if there is any “best” stream. “best” means the most likely what the user wants.

Get Iterator of all AVStreams in the ffi::AVFormatContext.

Get metadata of the ffi::AVFormatContext in crate::avutil::AVDictionary. demuxing: set by libavformat in avformat_open_input() muxing: may be set by the caller before avformat_write_header()

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.