]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv34data.h
Consistency: make the output buffer the first argument of functions
[ffmpeg] / libavcodec / rv34data.h
index d044b2aa379d932431bf3bb8a97df7ea40df71c2..25256e23dd486d0effda88377901701cf52db6a9 100644 (file)
@@ -37,7 +37,7 @@ static const uint8_t rv34_count_ones[16] = {
 };
 
 /**
- * Values used to reconstruct coded block pattern.
+ * values used to reconstruct coded block pattern
  */
 static const uint8_t rv34_cbp_code[16] = {
     0x00, 0x20, 0x10, 0x30, 0x02, 0x22, 0x12, 0x32,
@@ -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
+}
 };
 
 /**