Struct matroska_demuxer::TrackEntry[][src]

pub struct TrackEntry { /* fields omitted */ }

Describes a track.

Implementations

impl TrackEntry[src]

pub fn track_number(&self) -> NonZeroU64[src]

The track number as used in the block header.

pub fn track_uid(&self) -> NonZeroU64[src]

A unique ID to identify the track.

pub fn track_type(&self) -> TrackType[src]

The type of the track.

pub fn flag_enabled(&self) -> bool[src]

Indicates if a track is usable. It is possible to turn a not usable track into a usable track using chapter codecs or control tracks.

pub fn flag_default(&self) -> bool[src]

Set if that track (audio, video or subs) should be eligible for automatic selection by the player.

pub fn flag_forced(&self) -> bool[src]

Applies only to subtitles. Set if that track should be eligible for automatic selection by the player if it matches the user’s language preference, even if the user’s preferences would normally not enable subtitles with the selected audio track.

pub fn flag_lacing(&self) -> bool[src]

Indicates if the track may contain blocks using lacing.

pub fn default_duration(&self) -> Option<NonZeroU64>[src]

Number of nanoseconds (not scaled via TimestampScale) per frame (one Element put into a (Simple)Block).

pub fn name(&self) -> Option<&str>[src]

A human-readable track name.

pub fn language(&self) -> Option<&str>[src]

Specifies the language of the track.

pub fn codec_id(&self) -> &str[src]

An ID corresponding to the codec.

pub fn codec_private(&self) -> Option<&[u8]>[src]

Private data only known to the codec.

pub fn codec_name(&self) -> Option<&str>[src]

A human-readable string specifying the codec.

pub fn codec_delay(&self) -> Option<u64>[src]

CodecDelay is ehe codec-built-in delay in nanoseconds. This value must be subtracted from each block timestamp in order to get the actual timestamp.

pub fn seek_pre_roll(&self) -> Option<u64>[src]

After a discontinuity, SeekPreRoll is the duration in nanoseconds of the data the decoder must decode before the decoded data is valid.

pub fn video(&self) -> Option<&Video>[src]

Video settings.

pub fn audio(&self) -> Option<&Audio>[src]

Audio settings.

pub fn content_encodings(&self) -> Option<&[ContentEncoding]>[src]

Settings for several content encoding mechanisms like compression or encryption.

Trait Implementations

impl Clone for TrackEntry[src]

impl Debug for TrackEntry[src]

Auto Trait Implementations

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.