[FFmpeg-devel] [PATCH 2/2] vvc.h: Enable 16-bit support for VVC_MAX_POINTS_IN_QP_TABLE

Nuo Mi nuomi2021 at gmail.com
Wed Jul 5 14:40:28 EEST 2023


---
 libavcodec/vvc.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h
index 099d2fc2ad..7cf26d5e8c 100644
--- a/libavcodec/vvc.h
+++ b/libavcodec/vvc.h
@@ -102,9 +102,10 @@ enum {
     VVC_MAX_REF_ENTRIES = VVC_MAX_DPB_SIZE + 13,
 
     //7.4.3.3 sps_num_points_in_qp_table_minus1[i] in range [0, 36 − sps_qp_table_start_minus26[i]],
-    //sps_qp_table_start_minus26[i] in range [sps_qp_table_start_minus26[i] −26 − QpBdOffset, 36]
-    //for 10 bitsQpBdOffset is 12, so sps_num_points_in_qp_table_minus1[i] in range [0, 74]
-    VVC_MAX_POINTS_IN_QP_TABLE = 75,
+    //and sps_qp_table_start_minus26[i] in range [−26 − QpBdOffset, 36].
+    //so sps_num_points_in_qp_table_minus1[i] should in range [0, 62 + QpBdOffset]
+    //since 16 bits QpBdOffset is 48, sps_num_points_in_qp_table_minus1[i] should range [0, 110]
+    VVC_MAX_POINTS_IN_QP_TABLE = 111,
 
     // 7.4.6.1: hrd_cpb_cnt_minus1 is in [0, 31].
     VVC_MAX_CPB_CNT = 32,
-- 
2.25.1



More information about the ffmpeg-devel mailing list