aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp8data.h
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-08-03 23:21:47 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-08-03 23:21:47 +0000
commitb0d58795138c738c45c5b738418765939021b49f (patch)
tree791ef04d7aef9a1427c95d9d8198ef622e0f4f5d /libavcodec/vp8data.h
parent2eef529195ae7f83c9356ce55e9357f32f52f65d (diff)
downloadffmpeg-b0d58795138c738c45c5b738418765939021b49f.tar.gz
VP8: slightly faster DCT coefficient probability update
Originally committed as revision 24687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8data.h')
-rw-r--r--libavcodec/vp8data.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/vp8data.h b/libavcodec/vp8data.h
index ce64262758..775472e8e8 100644
--- a/libavcodec/vp8data.h
+++ b/libavcodec/vp8data.h
@@ -293,6 +293,20 @@ static const uint8_t vp8_coeff_band[16] =
0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7
};
+/* Inverse of vp8_coeff_band: mappings of bands to coefficient indexes.
+ * Each list is -1-terminated. */
+static const int8_t vp8_coeff_band_indexes[8][10] =
+{
+ {0, -1},
+ {1, -1},
+ {2, -1},
+ {3, -1},
+ {5, -1},
+ {6, -1},
+ {4, 7, 8, 9, 10, 11, 12, 13, 14, -1},
+ {15, -1}
+};
+
static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 };
static const uint8_t vp8_dct_cat2_prob[] = { 165, 145, 0 };
static const uint8_t vp8_dct_cat3_prob[] = { 173, 148, 140, 0 };