Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_TrdProc.h

Issue 1359233002: Split up JBig2_GeneralDecoder.cpp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_SddProc.cpp ('k') | core/src/fxcodec/jbig2/JBig2_TrdProc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 CORE_SRC_FXCODEC_JBIG2_JBIG2_TRDPROC_H_
8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_TRDPROC_H_
9
10 #include "../../../core/include/fxcrt/fx_system.h"
11
12 #include "JBig2_Image.h"
13
14 class CJBig2_ArithDecoder;
15 class CJBig2_ArithIaidDecoder;
16 class CJBig2_ArithIntDecoder;
17 class CJBig2_BitStream;
18 class CJBig2_HuffmanTable;
19 struct JBig2ArithCtx;
20 struct JBig2HuffmanCode;
21
22 struct JBig2IntDecoderState {
23 CJBig2_ArithIntDecoder* IADT;
24 CJBig2_ArithIntDecoder* IAFS;
25 CJBig2_ArithIntDecoder* IADS;
26 CJBig2_ArithIntDecoder* IAIT;
27 CJBig2_ArithIntDecoder* IARI;
28 CJBig2_ArithIntDecoder* IARDW;
29 CJBig2_ArithIntDecoder* IARDH;
30 CJBig2_ArithIntDecoder* IARDX;
31 CJBig2_ArithIntDecoder* IARDY;
32 CJBig2_ArithIaidDecoder* IAID;
33 };
34
35 enum JBig2Corner {
36 JBIG2_CORNER_BOTTOMLEFT = 0,
37 JBIG2_CORNER_TOPLEFT = 1,
38 JBIG2_CORNER_BOTTOMRIGHT = 2,
39 JBIG2_CORNER_TOPRIGHT = 3
40 };
41
42 class CJBig2_TRDProc {
43 public:
44 CJBig2_Image* decode_Huffman(CJBig2_BitStream* pStream,
45 JBig2ArithCtx* grContext);
46
47 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder,
48 JBig2ArithCtx* grContext,
49 JBig2IntDecoderState* pIDS = NULL);
50
51 public:
52 FX_BOOL SBHUFF;
53 FX_BOOL SBREFINE;
54 FX_DWORD SBW;
55 FX_DWORD SBH;
56 FX_DWORD SBNUMINSTANCES;
57 FX_DWORD SBSTRIPS;
58 FX_DWORD SBNUMSYMS;
59
60 JBig2HuffmanCode* SBSYMCODES;
61 uint8_t SBSYMCODELEN;
62
63 CJBig2_Image** SBSYMS;
64 FX_BOOL SBDEFPIXEL;
65
66 JBig2ComposeOp SBCOMBOP;
67 FX_BOOL TRANSPOSED;
68
69 JBig2Corner REFCORNER;
70 int8_t SBDSOFFSET;
71 CJBig2_HuffmanTable* SBHUFFFS;
72 CJBig2_HuffmanTable* SBHUFFDS;
73 CJBig2_HuffmanTable* SBHUFFDT;
74 CJBig2_HuffmanTable* SBHUFFRDW;
75 CJBig2_HuffmanTable* SBHUFFRDH;
76 CJBig2_HuffmanTable* SBHUFFRDX;
77 CJBig2_HuffmanTable* SBHUFFRDY;
78 CJBig2_HuffmanTable* SBHUFFRSIZE;
79 FX_BOOL SBRTEMPLATE;
80 int8_t SBRAT[4];
81 };
82
83 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_TRDPROC_H_
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_SddProc.cpp ('k') | core/src/fxcodec/jbig2/JBig2_TrdProc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698