pub struct MediaHeaderAtom {
pub version: u8,
pub flags: [u8; 3],
pub creation_time: u64,
pub modification_time: u64,
pub timescale: u32,
pub duration: u64,
pub language: LanguageCode,
pub pre_defined: u16,
}Fields§
§version: u8Version of the mdhd atom format (0 or 1)
flags: [u8; 3]Flags for the mdhd atom (usually all zeros)
creation_time: u64Creation time (seconds since midnight, Jan. 1, 1904, UTC)
modification_time: u64Modification time (seconds since midnight, Jan. 1, 1904, UTC)
timescale: u32Media timescale (number of time units per second)
duration: u64Duration of media (in timescale units)
language: LanguageCodeLanguage code (ISO 639-2/T language code)
pre_defined: u16Pre-defined value (should be 0)
Implementations§
Source§impl MediaHeaderAtom
impl MediaHeaderAtom
Sourcepub fn builder() -> MediaHeaderAtomBuilder
pub fn builder() -> MediaHeaderAtomBuilder
Create an instance of MediaHeaderAtom using the builder syntax
Trait Implementations§
Source§impl Clone for MediaHeaderAtom
impl Clone for MediaHeaderAtom
Source§fn clone(&self) -> MediaHeaderAtom
fn clone(&self) -> MediaHeaderAtom
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 MediaHeaderAtom
impl Debug for MediaHeaderAtom
Source§impl Default for MediaHeaderAtom
impl Default for MediaHeaderAtom
Source§fn default() -> MediaHeaderAtom
fn default() -> MediaHeaderAtom
Returns the “default value” for a type. Read more
Source§impl From<MediaHeaderAtom> for AtomData
impl From<MediaHeaderAtom> for AtomData
Source§fn from(atom: MediaHeaderAtom) -> Self
fn from(atom: MediaHeaderAtom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MediaHeaderAtom
impl RefUnwindSafe for MediaHeaderAtom
impl Send for MediaHeaderAtom
impl Sync for MediaHeaderAtom
impl Unpin for MediaHeaderAtom
impl UnsafeUnpin for MediaHeaderAtom
impl UnwindSafe for MediaHeaderAtom
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