Struct matroska_demuxer::MatroskaFile[][src]

pub struct MatroskaFile<R: Read + Seek> { /* fields omitted */ }

Demuxer for Matroska files.

Implementations

impl<R: Read + Seek> MatroskaFile<R>[src]

pub fn open(file: R) -> Result<Self, DemuxError>[src]

Opens a Matroska file.

pub fn ebml_header(&self) -> &EbmlHeader[src]

Returns the EBML header.

pub fn info(&self) -> &Info[src]

Returns the segment info.

pub fn tracks(&self) -> &[TrackEntry][src]

Returns the tracks of the file.

pub fn chapters(&self) -> Option<&[EditionEntry]>[src]

Returns the chapters of the file.

pub fn tags(&self) -> Option<&[Tag]>[src]

Element containing metadata describing tracks, editions, chapters, attachments, or the segment as a whole.

pub fn next_frame(&mut self, frame: &mut Frame) -> Result<bool, DemuxError>[src]

Reads the next frame data into the given Frame.

Returns false if the end of the file is reached.

pub fn seek(&mut self, seek_timestamp: u64) -> Result<(), DemuxError>[src]

Seeks to the given timestamp. The next next_frame() will write the first frame that comes directly AFTER the given timestamp. If the timestamp is outside of the duration of the video, the next next_frame() will return None.

Seek operations will use Cues inside the file for faster seek operation. If no Cues are present, this function will do a linear search through all clusters / blocks until the first frame after the given timestamp is found.

Trait Implementations

impl<R: Clone + Read + Seek> Clone for MatroskaFile<R>[src]

impl<R: Debug + Read + Seek> Debug for MatroskaFile<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for MatroskaFile<R> where
    R: RefUnwindSafe

impl<R> Send for MatroskaFile<R> where
    R: Send

impl<R> Sync for MatroskaFile<R> where
    R: Sync

impl<R> Unpin for MatroskaFile<R> where
    R: Unpin

impl<R> UnwindSafe for MatroskaFile<R> where
    R: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.