OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _JBIG2_HUFFMAN_TABLE_STANDARD_H_ | 7 #ifndef _JBIG2_HUFFMAN_TABLE_STANDARD_H_ |
8 #define _JBIG2_HUFFMAN_TABLE_STANDARD_H_ | 8 #define _JBIG2_HUFFMAN_TABLE_STANDARD_H_ |
9 typedef struct { | 9 |
| 10 #include "../../../../core/include/fxcrt/fx_system.h" |
| 11 |
| 12 struct JBig2TableLine { |
10 int PREFLEN; | 13 int PREFLEN; |
11 int RANDELEN; | 14 int RANDELEN; |
12 int RANGELOW; | 15 int RANGELOW; |
13 } JBig2TableLine; | 16 }; |
| 17 |
14 const FX_BOOL HuffmanTable_HTOOB_B1 = FALSE; | 18 const FX_BOOL HuffmanTable_HTOOB_B1 = FALSE; |
15 const JBig2TableLine HuffmanTable_B1[] = {{1, 4, 0}, | 19 const JBig2TableLine HuffmanTable_B1[] = {{1, 4, 0}, |
16 {2, 8, 16}, | 20 {2, 8, 16}, |
17 {3, 16, 272}, | 21 {3, 16, 272}, |
18 {0, 32, -1}, | 22 {0, 32, -1}, |
19 {3, 32, 65808}}; | 23 {3, 32, 65808}}; |
20 const FX_BOOL HuffmanTable_HTOOB_B2 = TRUE; | 24 const FX_BOOL HuffmanTable_HTOOB_B2 = TRUE; |
21 const JBig2TableLine HuffmanTable_B2[] = {{1, 0, 0}, {2, 0, 1}, {3, 0, 2}, | 25 const JBig2TableLine HuffmanTable_B2[] = {{1, 0, 0}, {2, 0, 1}, {3, 0, 2}, |
22 {4, 3, 3}, {5, 6, 11}, {0, 32, -1}, | 26 {4, 3, 3}, {5, 6, 11}, {0, 32, -1}, |
23 {6, 32, 75}, {6, 0, 0}}; | 27 {6, 32, 75}, {6, 0, 0}}; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const FX_BOOL HuffmanTable_HTOOB_B14 = FALSE; | 88 const FX_BOOL HuffmanTable_HTOOB_B14 = FALSE; |
85 const JBig2TableLine HuffmanTable_B14[] = {{3, 0, -2}, {3, 0, -1}, {1, 0, 0}, | 89 const JBig2TableLine HuffmanTable_B14[] = {{3, 0, -2}, {3, 0, -1}, {1, 0, 0}, |
86 {3, 0, 1}, {3, 0, 2}, {0, 32, -3}, | 90 {3, 0, 1}, {3, 0, 2}, {0, 32, -3}, |
87 {0, 32, 3}}; | 91 {0, 32, 3}}; |
88 const FX_BOOL HuffmanTable_HTOOB_B15 = FALSE; | 92 const FX_BOOL HuffmanTable_HTOOB_B15 = FALSE; |
89 const JBig2TableLine HuffmanTable_B15[] = { | 93 const JBig2TableLine HuffmanTable_B15[] = { |
90 {7, 4, -24}, {6, 2, -8}, {5, 1, -4}, {4, 0, -2}, {3, 0, -1}, | 94 {7, 4, -24}, {6, 2, -8}, {5, 1, -4}, {4, 0, -2}, {3, 0, -1}, |
91 {1, 0, 0}, {3, 0, 1}, {4, 0, 2}, {5, 1, 3}, {6, 2, 5}, | 95 {1, 0, 0}, {3, 0, 1}, {4, 0, 2}, {5, 1, 3}, {6, 2, 5}, |
92 {7, 4, 9}, {7, 32, -25}, {7, 32, 25}}; | 96 {7, 4, 9}, {7, 32, -25}, {7, 32, 25}}; |
93 #endif | 97 #endif |
OLD | NEW |