pub struct AvcVideoDescriptor<'buf> { /* private fields */ }Expand description
Descriptor holding copies of properties from the AVC metadata such as AVC ‘profile’ and ‘level’.
Implementations§
Source§impl<'buf> AvcVideoDescriptor<'buf>
impl<'buf> AvcVideoDescriptor<'buf>
Sourcepub const TAG: u8 = 40u8
pub const TAG: u8 = 40u8
The descriptor tag value which identifies the descriptor as a AvcVideoDescriptor.
Sourcepub fn new(
tag: u8,
buf: &'buf [u8],
) -> Result<AvcVideoDescriptor<'buf>, DescriptorError>
pub fn new( tag: u8, buf: &'buf [u8], ) -> Result<AvcVideoDescriptor<'buf>, DescriptorError>
Construct a AvcVideoDescriptor instance that will parse the data from the given
slice.
Sourcepub fn profile_idc(&self) -> u8
pub fn profile_idc(&self) -> u8
The AVC profile used in this stream will be equal to, or lower than, this value
Sourcepub fn constraint_set0_flag(&self) -> bool
pub fn constraint_set0_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn constraint_set1_flag(&self) -> bool
pub fn constraint_set1_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn constraint_set2_flag(&self) -> bool
pub fn constraint_set2_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn constraint_set3_flag(&self) -> bool
pub fn constraint_set3_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn constraint_set4_flag(&self) -> bool
pub fn constraint_set4_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn constraint_set5_flag(&self) -> bool
pub fn constraint_set5_flag(&self) -> bool
Value of the same flag from this AVC stream’s Sequence Parameter Set
Sourcepub fn avc_compatible_flags(&self) -> u8
pub fn avc_compatible_flags(&self) -> u8
Value of the same flags from this AVC stream’s Sequence Parameter Set
Sourcepub fn level_idc(&self) -> u8
pub fn level_idc(&self) -> u8
The AVC level used in this stream will be equal to, or lower than, this value
Sourcepub fn avc_still_present(&self) -> bool
pub fn avc_still_present(&self) -> bool
Stream may include AVC still pictures
Sourcepub fn avc_24_hour_picture_flag(&self) -> bool
pub fn avc_24_hour_picture_flag(&self) -> bool
Stream may contain AVC 24-hour pictures
Sourcepub fn frame_packing_sei_not_present_flag(&self) -> bool
pub fn frame_packing_sei_not_present_flag(&self) -> bool
If false, frame packing arrangement or stereo video information SEI message should be present