pub struct TrackInfo {
pub id: TrackId,
pub kind: TrackKind,
pub timescale: u32,
pub duration: Option<i64>,
pub language: Option<String>,
pub title: Option<String>,
pub default: bool,
pub enabled: bool,
pub video: Option<VideoTrack>,
pub audio: Option<AudioTrack>,
}Expand description
One track of a container.
Fields§
§id: TrackIdThe track’s number.
kind: TrackKindWhat it carries.
timescale: u32Units per second of its timestamps.
duration: Option<i64>Presentation duration in timescale units, after edits, when known.
language: Option<String>ISO 639-2 language, when tagged and not und.
title: Option<String>The track’s name, when tagged.
default: boolFlagged as a default track (tkhd enabled for MP4, FlagDefault for Matroska).
enabled: boolFlagged enabled (MP4 tkhd, Matroska FlagEnabled).
video: Option<VideoTrack>Picture facts of a video track.
audio: Option<AudioTrack>Sound facts of an audio track.
Trait Implementations§
impl StructuralPartialEq for TrackInfo
Auto Trait Implementations§
impl !Freeze for TrackInfo
impl Forget for TrackInfo
impl Move for TrackInfo
impl RefUnwindSafe for TrackInfo
impl Send for TrackInfo
impl Sync for TrackInfo
impl Unpin for TrackInfo
impl UnsafeUnpin for TrackInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
impl UnwindSafe for TrackInfowhere
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more