[FFmpeg-devel] [PATCH 1/3] avcodec/vvc: add shared header for vvc

Nuo Mi nuomi2021 at gmail.com
Sat Nov 21 03:45:08 EET 2020


---
 libavcodec/vvc.h | 69 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 libavcodec/vvc.h

diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h
new file mode 100644
index 0000000000..02d532730f
--- /dev/null
+++ b/libavcodec/vvc.h
@@ -0,0 +1,69 @@
+/*
+ * VVC shared code
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_VVC_H
+#define AVCODEC_VVC_H
+
+/**
+ * Table 5 – NAL unit type codes and NAL unit type classes in
+ * JVET-S2001
+ */
+enum VVCNALUnitType {
+    VVC_NAL_TRAIL       = 0,
+    VVC_NAL_STSA        = 1,
+    VVC_NAL_RADL        = 2,
+    VVC_NAL_RASL        = 3,
+    VVC_NAL_RSV_VCL_4   = 4,
+    VVC_NAL_RSV_VCL_5   = 5,
+    VVC_NAL_RSV_VCL_6   = 6,
+    VVC_NAL_IDR_W_RADL  = 7,
+    VVC_NAL_IDR_N_LP    = 8,
+    VVC_NAL_CRA_NUT     = 9,
+    VVC_NAL_GDR_NUT     = 10,
+    VVC_NAL_RSV_IRAP_11 = 11,
+    VVC_NAL_OPI         = 12,
+    VVC_NAL_DCI         = 13,
+    VVC_NAL_VPS         = 14,
+    VVC_NAL_SPS         = 15,
+    VVC_NAL_PPS         = 16,
+    VVC_NAL_PREFIX_APS  = 17,
+    VVC_NAL_SUFFIX_APS  = 18,
+    VVC_NAL_PH          = 19,
+    VVC_NAL_AUD         = 20,
+    VVC_NAL_EOS_NUT     = 21,
+    VVC_NAL_EOB_NUT     = 22,
+    VVC_NAL_PREFIX_SEI  = 23,
+    VVC_NAL_SUFFIX_SEI  = 24,
+    VVC_NAL_FD_NUT      = 25,
+    VVC_NAL_RSV_NVCL_26 = 26,
+    VVC_NAL_RSV_NVCL_27 = 27,
+    VVC_NAL_UNSPEC_28   = 28,
+    VVC_NAL_UNSPEC_29   = 29,
+    VVC_NAL_UNSPEC_30   = 30,
+    VVC_NAL_UNSPEC_31   = 31,
+};
+
+enum VVCSliceType {
+    VVC_SLICE_B = 0,
+    VVC_SLICE_P = 1,
+    VCC_SLICE_I = 2,
+};
+
+#endif /* AVCODEC_VVC_H */
-- 
2.25.1



More information about the ffmpeg-devel mailing list