vp56: move DCT coeffs base and probabilities to common
[nihav.git] / nihav-duck / src / codecs / vpcommon.rs
index 0392a383b5248a4647e3b734b43534668e07c4f2..3caf56997f6d96aed2f7361e909fd191fde4f9c4 100644 (file)
@@ -70,6 +70,16 @@ impl VPShuffler {
     }
 }
 
+pub const VP56_COEF_BASE: [i16; 6] = [ 5, 7, 11, 19, 35, 67 ];
+pub const VP56_COEF_ADD_PROBS: [[u8; 12]; 6] = [
+    [ 159, 128,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0 ],
+    [ 165, 145, 128,   0,   0,   0,   0,   0,   0,   0,   0,   0 ],
+    [ 173, 148, 140, 128,   0,   0,   0,   0,   0,   0,   0,   0 ],
+    [ 176, 155, 140, 135, 128,   0,   0,   0,   0,   0,   0,   0 ],
+    [ 180, 157, 141, 134, 130, 128,   0,   0,   0,   0,   0,   0 ],
+    [ 254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 128 ],
+];
+
 #[allow(dead_code)]
 pub struct BoolCoder<'a> {
     pub src:    &'a [u8],