pub struct TrackHeaderAtom {
pub version: u8,
pub flags: [u8; 3],
pub creation_time: u64,
pub modification_time: u64,
pub track_id: u32,
pub duration: u64,
pub layer: i16,
pub alternate_group: i16,
pub volume: f32,
pub matrix: Option<[i32; 9]>,
pub width: f32,
pub height: f32,
}Fields§
§version: u8Version of the tkhd atom format (0 or 1)
flags: [u8; 3]Flags for the tkhd atom (bit flags for track properties)
creation_time: u64When the track was created (seconds since Jan 1, 1904 UTC)
modification_time: u64When the track was last modified (seconds since Jan 1, 1904 UTC)
track_id: u32Unique identifier for this track within the movie
duration: u64Duration of the track in movie timescale units
layer: i16Playback layer (lower numbers are closer to viewer)
alternate_group: i16Audio balance or stereo balance (-1.0 = left, 0.0 = center, 1.0 = right)
volume: f32Audio volume level (1.0 = full volume, 0.0 = muted)
matrix: Option<[i32; 9]>3x3 transformation matrix for video display positioning/rotation
None if matrix is empty or is the identity matrix
width: f32Track width in pixels (fixed-point 16.16)
height: f32Track height in pixels (fixed-point 16.16)
Implementations§
Source§impl TrackHeaderAtom
impl TrackHeaderAtom
Sourcepub fn builder() -> TrackHeaderAtomBuilder
pub fn builder() -> TrackHeaderAtomBuilder
Create an instance of TrackHeaderAtom using the builder syntax
Trait Implementations§
Source§impl Clone for TrackHeaderAtom
impl Clone for TrackHeaderAtom
Source§fn clone(&self) -> TrackHeaderAtom
fn clone(&self) -> TrackHeaderAtom
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackHeaderAtom
impl Debug for TrackHeaderAtom
Source§impl Default for TrackHeaderAtom
impl Default for TrackHeaderAtom
Source§fn default() -> TrackHeaderAtom
fn default() -> TrackHeaderAtom
Returns the “default value” for a type. Read more
Source§impl From<TrackHeaderAtom> for AtomData
impl From<TrackHeaderAtom> for AtomData
Source§fn from(atom: TrackHeaderAtom) -> Self
fn from(atom: TrackHeaderAtom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrackHeaderAtom
impl RefUnwindSafe for TrackHeaderAtom
impl Send for TrackHeaderAtom
impl Sync for TrackHeaderAtom
impl Unpin for TrackHeaderAtom
impl UnsafeUnpin for TrackHeaderAtom
impl UnwindSafe for TrackHeaderAtom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more