History

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.

Andreas Rheinhardt committed 2 years ago

Commit 4cdd6841 parent dd1e8041 file · +4 −4Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpegutils.h+4−4
@@ -45,8 +45,8 @@ · 44 unmodified lines
4545 #define MB_TYPE_8x8 (1 << 6)
4646 #define MB_TYPE_INTERLACED (1 << 7)
4747 #define MB_TYPE_DIRECT2 (1 << 8) // FIXME
48−#define MB_TYPE_GMC (1 << 10)
49−#define MB_TYPE_SKIP (1 << 11)
48+#define MB_TYPE_CBP (1 << 10)
49+#define MB_TYPE_QUANT (1 << 11)
5050 #define MB_TYPE_P0L0 (1 << 12)
5151 #define MB_TYPE_P1L0 (1 << 13)
5252 #define MB_TYPE_P0L1 (1 << 14)
@@ -54,8 +54,8 @@ · 1 unmodified line
5454 #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
5555 #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
5656 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
57−#define MB_TYPE_QUANT (1 << 16)
58−#define MB_TYPE_CBP (1 << 17)
57+#define MB_TYPE_GMC (1 << 16)
58+#define MB_TYPE_SKIP (1 << 17)
5959 #define MB_TYPE_ACPRED (1 << 18)
6060
6161 #define MB_TYPE_INTRA MB_TYPE_INTRA4x4 // default mb_type if there is just one type

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t