Struct matroska_demuxer::MatroskaFile [−][src]
Demuxer for Matroska files.
Implementations
impl<R: Read + Seek> MatroskaFile<R>
[src]
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: Clone + Read + Seek> Clone for MatroskaFile<R>
[src]fn clone(&self) -> MatroskaFile<R>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for MatroskaFile<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for MatroskaFile<R> where
R: RefUnwindSafe,
impl<R> Send for MatroskaFile<R> where
R: Send,
impl<R> Send for MatroskaFile<R> where
R: Send,
impl<R> Sync for MatroskaFile<R> where
R: Sync,
impl<R> Sync for MatroskaFile<R> where
R: Sync,
impl<R> Unpin for MatroskaFile<R> where
R: Unpin,
impl<R> Unpin for MatroskaFile<R> where
R: Unpin,
impl<R> UnwindSafe for MatroskaFile<R> where
R: UnwindSafe,
impl<R> UnwindSafe for MatroskaFile<R> where
R: UnwindSafe,