pub struct MediaHeaderBox {
pub full_header: FullBoxHeader,
pub creation_time: u64,
pub modification_time: u64,
pub timescale: u32,
pub duration: u64,
pub language: Langauge,
pub pre_defined: u16,
}Expand description
Media header box
ISO/IEC 14496-12 - 8.4.2
Fields§
§full_header: FullBoxHeaderThe full box header.
creation_time: u64An integer that declares the creation time of the media in this track (in seconds since midnight, Jan. 1, 1904, in UTC time).
modification_time: u64An integer that declares the most recent time the media in this track was modified (in seconds since midnight, Jan. 1, 1904, in UTC time).
timescale: u32An integer that specifies the number of time units that pass in one second for this media. For example, a time coordinate system that measures time in sixtieths of a second has a time scale of 60.
duration: u64An integer that declares the duration of this media (in the scale of the timescale) and should be the largest composition timestamp plus the duration of that sample. If the duration cannot be determined then duration is set to all 1s.
language: LangaugeDeclares the language code for this media, as a packed three-character code defined in ISO 639-2.
pre_defined: u16Pre-defined 16 bits, must be set to 0.
Implementations§
Trait Implementations§
Source§impl Debug for MediaHeaderBox
impl Debug for MediaHeaderBox
Source§impl<'a> Deserialize<'a> for MediaHeaderBox
impl<'a> Deserialize<'a> for MediaHeaderBox
Source§fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> DeserializeSeed<'a, BoxHeader> for MediaHeaderBox
impl<'a> DeserializeSeed<'a, BoxHeader> for MediaHeaderBox
Source§fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl IsoBox for MediaHeaderBox
impl IsoBox for MediaHeaderBox
Source§fn add_header_size(payload_size: usize) -> usize
fn add_header_size(payload_size: usize) -> usize
Source§fn box_header(&self) -> BoxHeader
fn box_header(&self) -> BoxHeader
BoxHeader for this box.Source§fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
IsoBox::box_header to the given writer.