History

avcodec/mpegutils: Move H.264-only macros to h264dec.h

Andreas Rheinhardt committed 2 years ago

Commit f161d941 parent f5d5b802 files · +8 −8Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/h264dec.h +8 −0
  2. libavcodec/mpegutils.h +0 −8
libavcodec/h264dec.h+8−0
@@ -93,6 +93,14 @@ · 92 unmodified lines
9393
9494 #define IS_REF0(a) ((a) & MB_TYPE_REF0)
9595 #define IS_8x8DCT(a) ((a) & MB_TYPE_8x8DCT)
96+#define IS_SUB_8X8(a) ((a) & MB_TYPE_16x16) // note reused
97+#define IS_SUB_8X4(a) ((a) & MB_TYPE_16x8) // note reused
98+#define IS_SUB_4X8(a) ((a) & MB_TYPE_8x16) // note reused
99+#define IS_SUB_4X4(a) ((a) & MB_TYPE_8x8) // note reused
100+#define IS_DIR(a, part, list) ((a) & (MB_TYPE_P0L0 << ((part) + 2 * (list))))
101+
102+// does this mb use listX, note does not work if subMBs
103+#define USES_LIST(a, list) ((a) & ((MB_TYPE_P0L0 | MB_TYPE_P1L0) << (2 * (list))))
96104
97105 /**
98106 * Memory management control operation.
libavcodec/mpegutils.h+0−8
@@ -82,16 +82,8 @@ · 81 unmodified lines
8282 #define IS_16X8(a) ((a) & MB_TYPE_16x8)
8383 #define IS_8X16(a) ((a) & MB_TYPE_8x16)
8484 #define IS_8X8(a) ((a) & MB_TYPE_8x8)
85−#define IS_SUB_8X8(a) ((a) & MB_TYPE_16x16) // note reused
86−#define IS_SUB_8X4(a) ((a) & MB_TYPE_16x8) // note reused
87−#define IS_SUB_4X8(a) ((a) & MB_TYPE_8x16) // note reused
88−#define IS_SUB_4X4(a) ((a) & MB_TYPE_8x8) // note reused
8985 #define IS_ACPRED(a) ((a) & MB_TYPE_ACPRED)
9086 #define IS_QUANT(a) ((a) & MB_TYPE_QUANT)
91−#define IS_DIR(a, part, list) ((a) & (MB_TYPE_P0L0 << ((part) + 2 * (list))))
92−
93−// does this mb use listX, note does not work if subMBs
94−#define USES_LIST(a, list) ((a) & ((MB_TYPE_P0L0 | MB_TYPE_P1L0) << (2 * (list))))
9587
9688 #define HAS_CBP(a) ((a) & MB_TYPE_CBP)
9789 #define HAS_FORWARD_MV(a) ((a) & MB_TYPE_FORWARD_MV)

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