pub struct SampleGroupDescription {
pub grouping_type: [u8; 4],
pub default_sample_description_index: Option<u32>,
pub entries: Vec<Vec<u8>>,
}Expand description
One sgpd (SampleGroupDescriptionBox) to emit on a track.
Pairs with an sbgp of the same grouping_type. The per-group
entry payload is grouping-type-specific and opaque to the container —
callers supply entries as already-serialised Vec<u8>s.
default_sample_description_index (if Some(_)) requests the
version-2 layout: the box header carries a
default_sample_description_index to apply to samples not mapped
by any sbgp of this type, and entries are emitted back-to-back
without per-entry length prefixes (all entries must share a common
non-zero length).
Fields§
§grouping_type: [u8; 4]Four-byte grouping type matching the paired sbgp.
default_sample_description_index: Option<u32>default_sample_description_index (version 2). Some(0) means
“no group of this type” per §8.9.3 (the default value).
entries: Vec<Vec<u8>>Per-group entry payloads, grouping-type-specific and opaque.
Empty is a legal “zero-entry” sgpd.
Trait Implementations§
Source§impl Clone for SampleGroupDescription
impl Clone for SampleGroupDescription
Source§fn clone(&self) -> SampleGroupDescription
fn clone(&self) -> SampleGroupDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more