pub struct MovieHeaderBox {
pub full_header: FullBoxHeader,
pub creation_time: u64,
pub modification_time: u64,
pub timescale: u32,
pub duration: u64,
pub rate: FixedI32<U16>,
pub volume: FixedI16<U8>,
pub reserved1: u16,
pub reserved2: u64,
pub matrix: [i32; 9],
pub pre_defined: [u32; 6],
pub next_track_id: u32,
}Expand description
Movie header box
ISO/IEC 14496-12 - 8.2.2
Fields§
§full_header: FullBoxHeaderThe full box header.
creation_time: u64An integer that declares the creation time of the presentation (in seconds since midnight, Jan. 1, 1904, in UTC time).
modification_time: u64An integer that declares the most recent time the presentation was modified (in seconds since midnight, Jan. 1, 1904, in UTC time).
timescale: u32An integer that specifies the time-scale for the entire presentation; this is the number of time units that pass in one second. 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 length of the presentation (in the indicated timescale). This property is derived from the presentation’s tracks: the value of this field corresponds to the duration of the longest track in the presentation. If the duration cannot be determined then duration is set to all 1s.
rate: FixedI32<U16>Indicates the preferred rate to play the presentation; 1.0 is normal forward playback.
volume: FixedI16<U8>Indicates the preferred playback volume. 1.0 is full volume.
reserved1: u16Reserved 16 bits, must be set to 0.
reserved2: u64Reserved 64 bits, must be set to 0.
matrix: [i32; 9]Provides a transformation matrix for the video; (u,v,w) are restricted here to (0,0,1), hex values
(0,0,0x40000000).
pre_defined: [u32; 6]Reserved 6 * 32 bits, must be set to 0.
next_track_id: u32Non-zero integer that indicates a value to use for the track_ID of the next track to
be added to this presentation. Zero is not a valid track_ID value. The value of next_track_ID shall
be larger than the largest track_ID in use. If this value is equal to all 1s (u32::MAX), and a new
media track is to be added, then a search must be made in the file for an unused value of track_ID.
Implementations§
Trait Implementations§
Source§impl Debug for MovieHeaderBox
impl Debug for MovieHeaderBox
Source§impl<'a> Deserialize<'a> for MovieHeaderBox
impl<'a> Deserialize<'a> for MovieHeaderBox
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 MovieHeaderBox
impl<'a> DeserializeSeed<'a, BoxHeader> for MovieHeaderBox
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 MovieHeaderBox
impl IsoBox for MovieHeaderBox
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.