Struct matroska_demuxer::TrackEntry
source · pub struct TrackEntry { /* private fields */ }
Expand description
Describes a track.
Implementations§
source§impl TrackEntry
impl TrackEntry
sourcepub fn track_number(&self) -> NonZeroU64
pub fn track_number(&self) -> NonZeroU64
The track number as used in the block header.
sourcepub fn track_uid(&self) -> NonZeroU64
pub fn track_uid(&self) -> NonZeroU64
A unique ID to identify the track.
sourcepub fn track_type(&self) -> TrackType
pub fn track_type(&self) -> TrackType
The type of the track.
sourcepub fn flag_enabled(&self) -> bool
pub fn flag_enabled(&self) -> bool
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.
sourcepub fn flag_default(&self) -> bool
pub fn flag_default(&self) -> bool
Set if that track (audio, video or subs) should be eligible for automatic selection by the player.
sourcepub fn flag_forced(&self) -> bool
pub fn flag_forced(&self) -> bool
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.
sourcepub fn flag_lacing(&self) -> bool
pub fn flag_lacing(&self) -> bool
Indicates if the track may contain blocks using lacing.
sourcepub fn default_duration(&self) -> Option<NonZeroU64>
pub fn default_duration(&self) -> Option<NonZeroU64>
Number of nanoseconds (not scaled via TimestampScale) per frame (one Element put into a (Simple)Block).
sourcepub fn codec_private(&self) -> Option<&[u8]>
pub fn codec_private(&self) -> Option<&[u8]>
Private data only known to the codec.
sourcepub fn codec_name(&self) -> Option<&str>
pub fn codec_name(&self) -> Option<&str>
A human-readable string specifying the codec.
sourcepub fn codec_delay(&self) -> Option<u64>
pub fn codec_delay(&self) -> Option<u64>
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.
sourcepub fn seek_pre_roll(&self) -> Option<u64>
pub fn seek_pre_roll(&self) -> Option<u64>
After a discontinuity, SeekPreRoll is the duration in nanoseconds of the data the decoder must decode before the decoded data is valid.
sourcepub fn content_encodings(&self) -> Option<&[ContentEncoding]>
pub fn content_encodings(&self) -> Option<&[ContentEncoding]>
Settings for several content encoding mechanisms like compression or encryption.
Trait Implementations§
source§impl Clone for TrackEntry
impl Clone for TrackEntry
source§fn clone(&self) -> TrackEntry
fn clone(&self) -> TrackEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more