[FFmpeg-cvslog] avcodec/mpegutils: Remap MB_TYPE_{GMC,SKIP,CBP,QUANT}

Andreas Rheinhardt git at videolan.org
Thu Jun 20 19:59:27 EEST 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Jun  2 18:36:49 2024 +0200| [4cdd684e86136c42719632cbdcc7647d0f60f87f] | committer: Andreas Rheinhardt

avcodec/mpegutils: Remap MB_TYPE_{GMC,SKIP,CBP,QUANT}

Do this to make MB_TYPE_{CBP,QUANT} fit into an int16_t,
so that can be used in a VLC symbol table.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4cdd684e86136c42719632cbdcc7647d0f60f87f
---

 libavcodec/mpegutils.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/mpegutils.h b/libavcodec/mpegutils.h
index 0cca4f0a2f..8597ca18b8 100644
--- a/libavcodec/mpegutils.h
+++ b/libavcodec/mpegutils.h
@@ -45,8 +45,8 @@
 #define MB_TYPE_8x8        (1 <<  6)
 #define MB_TYPE_INTERLACED (1 <<  7)
 #define MB_TYPE_DIRECT2    (1 <<  8) // FIXME
-#define MB_TYPE_GMC        (1 << 10)
-#define MB_TYPE_SKIP       (1 << 11)
+#define MB_TYPE_CBP        (1 << 10)
+#define MB_TYPE_QUANT      (1 << 11)
 #define MB_TYPE_P0L0       (1 << 12)
 #define MB_TYPE_P1L0       (1 << 13)
 #define MB_TYPE_P0L1       (1 << 14)
@@ -54,8 +54,8 @@
 #define MB_TYPE_L0         (MB_TYPE_P0L0 | MB_TYPE_P1L0)
 #define MB_TYPE_L1         (MB_TYPE_P0L1 | MB_TYPE_P1L1)
 #define MB_TYPE_L0L1       (MB_TYPE_L0   | MB_TYPE_L1)
-#define MB_TYPE_QUANT      (1 << 16)
-#define MB_TYPE_CBP        (1 << 17)
+#define MB_TYPE_GMC        (1 << 16)
+#define MB_TYPE_SKIP       (1 << 17)
 #define MB_TYPE_ACPRED     (1 << 18)
 
 #define MB_TYPE_INTRA    MB_TYPE_INTRA4x4 // default mb_type if there is just one type



More information about the ffmpeg-cvslog mailing list