pub struct CompactSampleToGroupPattern {
pub sample_count: u32,
pub indices: Vec<u32>,
}Expand description
One pattern of a CompactSampleToGroup (csgp, §8.9.5): a run of
indices.len() per-sample sample_group_description_index values
(the pattern), replicated across sample_count consecutive groups
of that length. The pattern therefore covers sample_count * indices.len() samples in total.
pattern_length is implicit from indices.len() (the builder writes
it), matching the read side which reconstructs it the same way.
Fields§
§sample_count: u32sample_count[i] — number of consecutive groups (each
indices.len() samples long) that replay this pattern.
indices: Vec<u32>sample_group_description_index[i][1..=pattern_length] — one
index per sample of the pattern. 0 means “member of no group of
this type”; in a traf the index’s most-significant bit (for the
chosen field width) distinguishes a fragment-local description
(set) from a global one (clear). The raw value is written
verbatim — the builder does not synthesise the fragment-local bit.
Trait Implementations§
Source§impl Clone for CompactSampleToGroupPattern
impl Clone for CompactSampleToGroupPattern
Source§fn clone(&self) -> CompactSampleToGroupPattern
fn clone(&self) -> CompactSampleToGroupPattern
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more