summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-05-11 10:28:32 +0800
committerJun Zhao <jun.zhao@intel.com>2018-05-16 20:24:48 +0800
commitb7cd2ab22e217e7125a0bb4c3b30bcbe1bd7bd9d (patch)
treeb4d93c382d99436fbacb7542684aadb6d570f1d9 /libavcodec/h264.h
parent7582a907e40ef1012e40a9b17aead05a6777b0ca (diff)
lavc/h2645_parse: add h264_nal_unit_name for h264 NAL type.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 650580bf3a..7a1fb6d687 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -26,8 +26,12 @@
#define QP_MAX_NUM (51 + 6*6) // The maximum supported qp
-/* NAL unit types */
+/*
+ * Table 7-1 – NAL unit type codes, syntax element categories, and NAL unit type classes in
+ * T-REC-H.264-201704
+ */
enum {
+ H264_NAL_UNSPECIFIED = 0,
H264_NAL_SLICE = 1,
H264_NAL_DPA = 2,
H264_NAL_DPB = 3,
@@ -41,7 +45,24 @@ enum {
H264_NAL_END_STREAM = 11,
H264_NAL_FILLER_DATA = 12,
H264_NAL_SPS_EXT = 13,
+ H264_NAL_PREFIX = 14,
+ H264_NAL_SUB_SPS = 15,
+ H264_NAL_DPS = 16,
+ H264_NAL_RESERVED17 = 17,
+ H264_NAL_RESERVED18 = 18,
H264_NAL_AUXILIARY_SLICE = 19,
+ H264_NAL_EXTEN_SLICE = 20,
+ H264_NAL_DEPTH_EXTEN_SLICE = 21,
+ H264_NAL_RESERVED22 = 22,
+ H264_NAL_RESERVED23 = 23,
+ H264_NAL_UNSPECIFIED24 = 24,
+ H264_NAL_UNSPECIFIED25 = 25,
+ H264_NAL_UNSPECIFIED26 = 26,
+ H264_NAL_UNSPECIFIED27 = 27,
+ H264_NAL_UNSPECIFIED28 = 28,
+ H264_NAL_UNSPECIFIED29 = 29,
+ H264_NAL_UNSPECIFIED30 = 30,
+ H264_NAL_UNSPECIFIED31 = 31,
};