#[repr(transparent)]pub struct NALUnitType(pub u8);
Expand description
NAL (Network Abstraction Layer) unit types as defined by ISO/IEC 14496-10:2022 (Table 7-1).
§Decoder Behavior:
- Some NAL units may be ignored depending on the decoder.
- Decoders using Annex A must ignore unit types 14, 15, and 20.
- Types 0 and 24-31 are application-specific and do not affect decoding.
- Reserved values should be ignored.
§IDR (Instantaneous Decoder Refresh) Pictures:
- If
nal_unit_type
is 5, the picture must not contain types 1-4. IdrPicFlag
is 1 ifnal_unit_type == 5
, otherwise 0.
Tuple Fields§
§0: u8
Implementations§
Source§impl NALUnitType
impl NALUnitType
Sourcepub const Unspecified1: Self
pub const Unspecified1: Self
Unspecified (not used in decoding)
Sourcepub const NonIDRSliceLayerWithoutPartitioning: Self
pub const NonIDRSliceLayerWithoutPartitioning: Self
Regular video slice (non-IDR picture)
Sourcepub const SliceDataPartitionALayer: Self
pub const SliceDataPartitionALayer: Self
Coded slice data partition A
Sourcepub const SliceDataPartitionBLayer: Self
pub const SliceDataPartitionBLayer: Self
Coded slice data partition B
Sourcepub const SliceDataPartitionCLayer: Self
pub const SliceDataPartitionCLayer: Self
Coded slice data partition C
Sourcepub const IDRSliceLayerWithoutPartitioning: Self
pub const IDRSliceLayerWithoutPartitioning: Self
IDR picture (used to refresh the video stream)
Sourcepub const AccessUnitDelimiter: Self
pub const AccessUnitDelimiter: Self
Marks the start of a new access unit (frame boundary)
Sourcepub const EndOfStream: Self
pub const EndOfStream: Self
End of video stream
Sourcepub const FillerData: Self
pub const FillerData: Self
Extra filler data (can be ignored)
Sourcepub const SPSExtension: Self
pub const SPSExtension: Self
Extension to SPS (used for advanced encoding features)
Sourcepub const PrefixNalUnit: Self
pub const PrefixNalUnit: Self
Prefix NAL unit (ignored by Annex A decoders)
Sourcepub const DepthParameterSet: Self
pub const DepthParameterSet: Self
Depth parameter set (used for 3D video)
Sourcepub const AuxCodedPictureSliceLayerWithoutPartitioning: Self
pub const AuxCodedPictureSliceLayerWithoutPartitioning: Self
Auxiliary coded slice (may be ignored by some decoders)
Sourcepub const SliceLayerExtension: Self
pub const SliceLayerExtension: Self
Additional slice data for extended coding (ignored by Annex A decoders)
Sourcepub const SliceLayerExtension2: Self
pub const SliceLayerExtension2: Self
Slice extension for depth/3D-AVC video (ignored by some decoders)
Sourcepub const Unspecified2: Self
pub const Unspecified2: Self
Unspecified (application-defined use)
Trait Implementations§
Source§impl Clone for NALUnitType
impl Clone for NALUnitType
Source§fn clone(&self) -> NALUnitType
fn clone(&self) -> NALUnitType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more