h263+rv20: use modified dquant and chroma quant
[nihav.git] / src / codecs / h263 / data.rs
index 38fa6ca9000cde50763979e2da10f129df1c3d49..b5d3cb1d1037a4e65d6cc01448022a57a15d6e33 100644 (file)
@@ -96,6 +96,21 @@ pub const H263_CBPC_B: &[(u8, u8)] = &[
 
 pub const H263_DQUANT_TAB: &[i8] = &[-1, -2, 1, 2];
 
+pub const H263_MODIFIED_QUANT: [[u8; 32]; 2] = [
+  [
+     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
+  ]
+];
+
+pub const H263_CHROMA_QUANT: [u8; 32] = [
+     0,  1,  2,  3,  4,  5,  6,  6,  7,  8,  9,  9, 10, 10, 11, 11,
+    12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15
+];
+
 pub struct H263ShortCodeReader { tab: &'static [(u8, u8)] }
 
 impl H263ShortCodeReader {