scuffle_h265/enums/parallelism_type.rs
1use nutype_enum::nutype_enum;
2
3nutype_enum! {
4 /// Indicates the type of parallelism that is used to meet the restrictions imposed
5 /// by [`min_spatial_segmentation_idc`](crate::HEVCDecoderConfigurationRecord::min_spatial_segmentation_idc) when the value of
6 /// [`min_spatial_segmentation_idc`](crate::HEVCDecoderConfigurationRecord::min_spatial_segmentation_idc) is greater than 0.
7 ///
8 /// ISO/IEC 14496-15 - 8.3.2.1.3
9 pub enum ParallelismType(u8) {
10 /// The stream supports mixed types of parallel decoding or the parallelism type is unknown.
11 MixedOrUnknown = 0,
12 /// The stream supports slice based parallel decoding.
13 Slice = 1,
14 /// The stream supports tile based parallel decoding.
15 Tile = 2,
16 /// The stream supports entropy coding sync based parallel decoding.
17 EntropyCodingSync = 3,
18 }
19}