Struct matroska_demuxer::TrackEntry [−][src]
pub struct TrackEntry { /* fields omitted */ }
Describes a track.
Implementations
impl TrackEntry
[src]
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 Clone for TrackEntry
[src]fn clone(&self) -> TrackEntry
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for TrackEntry
impl RefUnwindSafe for TrackEntry
impl Send for TrackEntry
impl Send for TrackEntry
impl Sync for TrackEntry
impl Sync for TrackEntry
impl Unpin for TrackEntry
impl Unpin for TrackEntry
impl UnwindSafe for TrackEntry
impl UnwindSafe for TrackEntry