pub enum LevelAssignmentBoxLevelAssignmentType {
Type0 {
grouping_type: [u8; 4],
},
Type1 {
grouping_type: [u8; 4],
grouping_type_parameter: u32,
},
Type2,
Type3,
Type4 {
sub_track_id: u32,
},
Other(u8),
}Expand description
Type of level assignment in a LevelAssignmentBox.
Variants§
Type0
Type 0: sample groups are used to specify levels, i.e., samples mapped to different sample group description indexes of a particular sample grouping lie in different levels within the identified track; other tracks are not affected and shall have all their data in precisely one level;
Fields
grouping_type: [u8; 4]Specifies the sample grouping used to
map sample group description entries in the SampleGroupDescriptionBox to levels. Level n
contains the samples that are mapped to the SampleGroupDescriptionEntry
having index n in grouping_type the SampleGroupDescriptionBox having the same values of
grouping_type and grouping_type_parameter, if present, as those provided in this box.
Type1
Type 1: as for Type0 except assignment is by a parameterized sample group;
Fields
grouping_type: [u8; 4]Specifies the sample grouping used to
map sample group description entries in the SampleGroupDescriptionBox to levels. Level n
contains the samples that are mapped to the SampleGroupDescriptionEntry
having index n in grouping_type the SampleGroupDescriptionBox having the same values of
grouping_type and grouping_type_parameter, if present, as those provided in this box.
grouping_type_parameter: u32Specifies the sample grouping used to
map sample group description entries in the SampleGroupDescriptionBox to levels. Level n
contains the samples that are mapped to the SampleGroupDescriptionEntry
having index n in grouping_type the SampleGroupDescriptionBox having the same values of
grouping_type and grouping_type_parameter, if present, as those provided in this box.
Type2
Type 2: level assignment is by track (see the SubsegmentIndexBox
for the difference in processing of these levels)
Type3
Type 3: level assignment is by track (see the SubsegmentIndexBox
for the difference in processing of these levels)
Type4
Type 4: the respective level contains the samples for a sub-track. The sub-tracks are specified through
the SubTrackBox;
other tracks are not affected and shall have all their data in precisely one level;
Fields
Other(u8)
Other assignment type.
Implementations§
Source§impl LevelAssignmentBoxLevelAssignmentType
impl LevelAssignmentBoxLevelAssignmentType
Sourcepub fn assignment_type(&self) -> u8
pub fn assignment_type(&self) -> u8
Returns the assignment type as a u8.
Trait Implementations§
Source§impl PartialEq for LevelAssignmentBoxLevelAssignmentType
impl PartialEq for LevelAssignmentBoxLevelAssignmentType
Source§fn eq(&self, other: &LevelAssignmentBoxLevelAssignmentType) -> bool
fn eq(&self, other: &LevelAssignmentBoxLevelAssignmentType) -> bool
self and other values to be equal, and is used by ==.