pub struct IVFReader<R: Read> { /* private fields */ }
Expand description

IVFReader is used to read IVF files and return frame payloads

Implementations

new returns a new IVF reader and IVF file header with an io.Reader input

reset_reader resets the internal stream of IVFReader. This is useful for live streams, where the end of the file might be read without the data being finished.

parse_next_frame reads from stream and returns IVF frame payload, header, and an error if there is incomplete frame data. Returns all nil values when no more frames are available.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.