1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _JBIG2_ARITH_QE_H_ 8 #define _JBIG2_ARITH_QE_H_ 9 typedef struct { 10 unsigned int Qe; 11 unsigned int NMPS; 12 unsigned int NLPS; 13 unsigned int nSwitch; 14 } JBig2ArithQe; 15 const JBig2ArithQe QeTable[] = { 16 { 0x5601, 1, 1, 1 }, 17 { 0x3401, 2, 6, 0 }, 18 { 0x1801, 3, 9, 0 }, 19 { 0x0AC1, 4, 12, 0 }, 20 { 0x0521, 5, 29, 0 }, 21 { 0x0221, 38, 33, 0 }, 22 { 0x5601, 7, 6, 1 }, 23 { 0x5401, 8, 14, 0 }, 24 { 0x4801, 9, 14, 0 }, 25 { 0x3801, 10, 14, 0 }, 26 { 0x3001, 11, 17, 0 }, 27 { 0x2401, 12, 18, 0 }, 28 { 0x1C01, 13, 20, 0 }, 29 { 0x1601, 29, 21, 0 }, 30 { 0x5601, 15, 14, 1 }, 31 { 0x5401, 16, 14, 0 }, 32 { 0x5101, 17, 15, 0 }, 33 { 0x4801, 18, 16, 0 }, 34 { 0x3801, 19, 17, 0 }, 35 { 0x3401, 20, 18, 0 }, 36 { 0x3001, 21, 19, 0 }, 37 { 0x2801, 22, 19, 0 }, 38 { 0x2401, 23, 20, 0 }, 39 { 0x2201, 24, 21, 0 }, 40 { 0x1C01, 25, 22, 0 }, 41 { 0x1801, 26, 23, 0 }, 42 { 0x1601, 27, 24, 0 }, 43 { 0x1401, 28, 25, 0 }, 44 { 0x1201, 29, 26, 0 }, 45 { 0x1101, 30, 27, 0 }, 46 { 0x0AC1, 31, 28, 0 }, 47 { 0x09C1, 32, 29, 0 }, 48 { 0x08A1, 33, 30, 0 }, 49 { 0x0521, 34, 31, 0 }, 50 { 0x0441, 35, 32, 0 }, 51 { 0x02A1, 36, 33, 0 }, 52 { 0x0221, 37, 34, 0 }, 53 { 0x0141, 38, 35, 0 }, 54 { 0x0111, 39, 36, 0 }, 55 { 0x0085, 40, 37, 0 }, 56 { 0x0049, 41, 38, 0 }, 57 { 0x0025, 42, 39, 0 }, 58 { 0x0015, 43, 40, 0 }, 59 { 0x0009, 44, 41, 0 }, 60 { 0x0005, 45, 42, 0 }, 61 { 0x0001, 45, 43, 0 }, 62 { 0x5601, 46, 46, 0 } 63 }; 64 #endif 65