X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fcodecs%2Fh263%2Fdata.rs;h=b5d3cb1d1037a4e65d6cc01448022a57a15d6e33;hb=43c8b55e9b586d6814b0588516eadf9bd12c9685;hp=38fa6ca9000cde50763979e2da10f129df1c3d49;hpb=271cfde573f2fa33fe6b82ce89de24a429a509c5;p=nihav.git diff --git a/src/codecs/h263/data.rs b/src/codecs/h263/data.rs index 38fa6ca..b5d3cb1 100644 --- a/src/codecs/h263/data.rs +++ b/src/codecs/h263/data.rs @@ -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 {