summaryrefslogtreecommitdiff
path: root/libavcodec/rv34data.h
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-12-07 05:47:24 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-12-07 05:47:24 +0000
commitda71cdadc25d5c852b4efdddb719c3a7c637e8ed (patch)
tree4021bcce3c13408e25e336eba03d99e4ed93925a /libavcodec/rv34data.h
parent89f41c3de71eb0cadeeb60c656fa379d5b4915c3 (diff)
Replace table with its H.263 counterpart
Originally committed as revision 11181 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34data.h')
-rw-r--r--libavcodec/rv34data.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libavcodec/rv34data.h b/libavcodec/rv34data.h
index 75ba37bb48..25256e23dd 100644
--- a/libavcodec/rv34data.h
+++ b/libavcodec/rv34data.h
@@ -123,13 +123,15 @@ static const uint8_t rv34_quant_to_vlc_set[2][31] = {
/**
* table for obtaining the quantizer difference
- * @todo Replace it with modified_quant_tab from h263data.h.
+ * @todo Use with modified_quant_tab from h263data.h.
*/
-static const int8_t rv34_dquant_tab[] = {
- 0, 0, 2, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1,
- -1, 1, -1, 1, -1, 1, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2,
- -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -3, 3, -3, 3, -3, 3,
- -3, 3, -3, 3, -3, 3, -3, 3, -3, 3, -3, 2, -3, 1, -3, -5
+static const uint8_t rv34_dquant_tab[2][32]={
+// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
+{
+ 0, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,17,18,18,19,20,21,22,23,24,25,26,27,28
+},{
+ 0, 2, 3, 4, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,31,31,26
+}
};
/**