]> git.videolan.org Git - x264.git/commitdiff
x86-64: fix trellis asm with interlacing
authorJason Garrett-Glaser <jason@x264.com>
Mon, 11 Feb 2013 00:12:34 +0000 (16:12 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Mon, 25 Feb 2013 20:14:21 +0000 (12:14 -0800)
Regression in r2145.
Assembly assumed array was [2][64] when it was actually [2][63].
Tiny (~0.1%) compression improvement.

encoder/cabac.c

index 11d5b229460ffba990f59f85f803b9de87555b48..8bd86f76522e0c3dd3eb3c48907eece787fdd9bd 100644 (file)
@@ -659,11 +659,12 @@ static const uint16_t coeff_abs_level_m1_offset[14] =
     227+0, 227+10, 227+20, 227+30, 227+39, 426, 952+0, 952+10, 952+20, 708, 982+0, 982+10, 982+20, 766
 };
 #if RDO_SKIP_BS
-extern const uint8_t x264_significant_coeff_flag_offset_8x8[2][63];
+extern const uint8_t x264_significant_coeff_flag_offset_8x8[2][64];
 extern const uint8_t x264_last_coeff_flag_offset_8x8[63];
 extern const uint8_t x264_coeff_flag_offset_chroma_422_dc[7];
 #else
-const uint8_t x264_significant_coeff_flag_offset_8x8[2][63] =
+/* Padded to [64] for easier addressing */
+const uint8_t x264_significant_coeff_flag_offset_8x8[2][64] =
 {{
     0, 1, 2, 3, 4, 5, 5, 4, 4, 3, 3, 4, 4, 4, 5, 5,
     4, 4, 4, 4, 3, 3, 6, 7, 7, 7, 8, 9,10, 9, 8, 7,