pub struct CompactSampleToGroupBox {
pub version: u8,
pub flags: CompactSampleToGroupBoxFlags,
pub grouping_type: [u8; 4],
pub grouping_type_parameter: Option<u32>,
pub pattern_count: u32,
pub patterns: Vec<CompactSampleToGroupBoxPattern>,
pub sample_group_description_index: Vec<Vec<CompactSampleToGroupBoxSampleGroupDescriptionIndex>>,
}Expand description
Compact sample to group box
ISO/IEC 14496-12 - 8.9.5
Fields§
§version: u8The version of the box.
flags: CompactSampleToGroupBoxFlagsThe flags of the box.
grouping_type: [u8; 4]An integer that identifies the type (i.e. criterion used to form the sample groups) of the
sample grouping and links it to its sample group description table with the same value for grouping
type. At most one occurrence of either the ‘csgp’ or ‘sbgp’ with
the same value for grouping_type (and, if used, grouping_type_parameter) shall exist for a track.
grouping_type_parameter: Option<u32>An indication of the sub-type of the grouping.
pattern_count: u32Indicates the length of the associated pattern in the pattern array that follows it. The sum of the included sample_count values indicates the number of mapped samples.
patterns: Vec<CompactSampleToGroupBoxPattern>pattern_length and sample_count
sample_group_description_index: Vec<Vec<CompactSampleToGroupBoxSampleGroupDescriptionIndex>>sample_group_description_index[j][k]
See CompactSampleToGroupBoxSampleGroupDescriptionIndex::value for details.
Trait Implementations§
Source§impl Debug for CompactSampleToGroupBox
impl Debug for CompactSampleToGroupBox
Source§impl<'a> Deserialize<'a> for CompactSampleToGroupBox
impl<'a> Deserialize<'a> for CompactSampleToGroupBox
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 CompactSampleToGroupBox
impl<'a> DeserializeSeed<'a, BoxHeader> for CompactSampleToGroupBox
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 CompactSampleToGroupBox
impl IsoBox for CompactSampleToGroupBox
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.