pub struct TrackFragmentHeaderBox {
pub version: u8,
pub flags: TfFlags,
pub track_id: u32,
pub base_data_offset: Option<u64>,
pub sample_description_index: Option<u32>,
pub default_sample_duration: Option<u32>,
pub default_sample_size: Option<u32>,
pub default_sample_flags: Option<SampleFlags>,
}Expand description
Track fragment header box
ISO/IEC 14496-12 - 8.8.7
Fields§
§version: u8The version of the box.
flags: TfFlagsThe flags of the box.
track_id: u32Identifies the track; this shall be the track_ID of a track in the MovieBox.
base_data_offset: Option<u64>The base offset to use when calculating data offsets.
Present if the BaseDataOffsetPresent flag is set.
sample_description_index: Option<u32>Indicates the index of the sample entry that describes, by default, the samples in the track fragments.
Present if the SampleDescriptionIndexPresent flag is set.
default_sample_duration: Option<u32>Indicates the default duration of the samples in the track fragments.
Present if the DefaultSampleDurationPresent flag is set.
default_sample_size: Option<u32>Indicates the default size of the samples in the track fragments.
Present if the DefaultSampleSizePresent flag is set.
default_sample_flags: Option<SampleFlags>Indicate the default flags values for the samples in the track fragments.
Present if the DefaultSampleFlagsPresent flag is set.
Implementations§
Trait Implementations§
Source§impl Debug for TrackFragmentHeaderBox
impl Debug for TrackFragmentHeaderBox
Source§impl<'a> Deserialize<'a> for TrackFragmentHeaderBox
impl<'a> Deserialize<'a> for TrackFragmentHeaderBox
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 TrackFragmentHeaderBox
impl<'a> DeserializeSeed<'a, BoxHeader> for TrackFragmentHeaderBox
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 TrackFragmentHeaderBox
impl IsoBox for TrackFragmentHeaderBox
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.