46 void set(
int unit_type,
int layer_id=0,
int temporal_id=0) {
57 #define NAL_UNIT_TRAIL_N 0
58 #define NAL_UNIT_TRAIL_R 1
59 #define NAL_UNIT_TSA_N 2
60 #define NAL_UNIT_TSA_R 3
61 #define NAL_UNIT_STSA_N 4
62 #define NAL_UNIT_STSA_R 5
63 #define NAL_UNIT_RADL_N 6
64 #define NAL_UNIT_RADL_R 7
65 #define NAL_UNIT_RASL_N 8
66 #define NAL_UNIT_RASL_R 9
67 #define NAL_UNIT_RESERVED_VCL_N10 10
68 #define NAL_UNIT_RESERVED_VCL_N12 12
69 #define NAL_UNIT_RESERVED_VCL_N14 14
70 #define NAL_UNIT_RESERVED_VCL_R11 11
71 #define NAL_UNIT_RESERVED_VCL_R13 13
72 #define NAL_UNIT_RESERVED_VCL_R15 15
73 #define NAL_UNIT_BLA_W_LP 16
74 #define NAL_UNIT_BLA_W_RADL 17
75 #define NAL_UNIT_BLA_N_LP 18
76 #define NAL_UNIT_IDR_W_RADL 19
77 #define NAL_UNIT_IDR_N_LP 20
78 #define NAL_UNIT_CRA_NUT 21
79 #define NAL_UNIT_RESERVED_IRAP_VCL22 22
80 #define NAL_UNIT_RESERVED_IRAP_VCL23 23
81 #define NAL_UNIT_RESERVED_VCL24 24
82 #define NAL_UNIT_RESERVED_VCL25 25
83 #define NAL_UNIT_RESERVED_VCL26 26
84 #define NAL_UNIT_RESERVED_VCL27 27
85 #define NAL_UNIT_RESERVED_VCL28 28
86 #define NAL_UNIT_RESERVED_VCL29 29
87 #define NAL_UNIT_RESERVED_VCL30 30
88 #define NAL_UNIT_RESERVED_VCL31 31
89 #define NAL_UNIT_VPS_NUT 32
90 #define NAL_UNIT_SPS_NUT 33
91 #define NAL_UNIT_PPS_NUT 34
92 #define NAL_UNIT_AUD_NUT 35
93 #define NAL_UNIT_EOS_NUT 36
94 #define NAL_UNIT_EOB_NUT 37
95 #define NAL_UNIT_FD_NUT 38
96 #define NAL_UNIT_PREFIX_SEI_NUT 39
97 #define NAL_UNIT_SUFFIX_SEI_NUT 40
98 #define NAL_UNIT_RESERVED_NVCL41 41
99 #define NAL_UNIT_RESERVED_NVCL42 42
100 #define NAL_UNIT_RESERVED_NVCL43 43
101 #define NAL_UNIT_RESERVED_NVCL44 44
102 #define NAL_UNIT_RESERVED_NVCL45 45
103 #define NAL_UNIT_RESERVED_NVCL46 46
104 #define NAL_UNIT_RESERVED_NVCL47 47
106 #define NAL_UNIT_UNDEFINED 255
126 return nal_unit_type >= 16 && nal_unit_type <= 23;
bool isCRA(uint8_t unit_type)
#define NAL_UNIT_IDR_N_LP
Definition: nal.h:77
bool isRapPic(uint8_t nal_unit_type)
Definition: nal.h:125
bool isRASL(uint8_t unit_type)
#define NAL_UNIT_IDR_W_RADL
Definition: nal.h:76
bool isIDR(uint8_t unit_type)
bool isRADL(uint8_t unit_type)
bool isSublayerNonReference(uint8_t unit_type)
bool isReferenceNALU(uint8_t unit_type)
bool isBLA(uint8_t unit_type)
bool isRAP(uint8_t unit_type)
bool isIdrPic(uint8_t nal_unit_type)
Definition: nal.h:120
const char * get_NAL_name(uint8_t unit_type)
bool isIRAP(uint8_t unit_type)
Definition: bitstream.h:39