From a9d7826a63f44379ef37e2a5147105c400370cd5 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Tue, 16 Nov 2010 21:23:12 +0100 Subject: [PATCH] Use enums instead of magic numbers in x264_mb_partition_pixel_table --- common/macroblock.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/macroblock.h b/common/macroblock.h index aa41ab69..b22b9b98 100644 --- a/common/macroblock.h +++ b/common/macroblock.h @@ -170,7 +170,11 @@ static const uint8_t x264_mb_partition_count_table[17] = }; static const uint8_t x264_mb_partition_pixel_table[17] = { - 6, 4, 5, 3, 6, 4, 5, 3, 6, 4, 5, 3, 3, 3, 1, 2, 0 + PIXEL_4x4, PIXEL_8x4, PIXEL_4x8, PIXEL_8x8, /* D_L0_* */ + PIXEL_4x4, PIXEL_8x4, PIXEL_4x8, PIXEL_8x8, /* D_L1_* */ + PIXEL_4x4, PIXEL_8x4, PIXEL_4x8, PIXEL_8x8, /* D_BI_* */ + PIXEL_8x8, /* D_DIRECT_8x8 */ + PIXEL_8x8, PIXEL_16x8, PIXEL_8x16, PIXEL_16x16, /* 8x8 .. 16x16 */ }; /* zigzags are transposed with respect to the tables in the standard */ -- 2.47.3