OLD | NEW |
1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 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 CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ | 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ |
8 #define CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ | 8 #define CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ |
9 | 9 |
10 #include "core/fxcodec/jbig2/JBig2_Image.h" | 10 #include "core/fxcodec/jbig2/JBig2_Image.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 | 12 |
13 class CJBig2_ArithDecoder; | 13 class CJBig2_ArithDecoder; |
14 class CJBig2_BitStream; | 14 class CJBig2_BitStream; |
15 class IFX_Pause; | 15 class IFX_Pause; |
16 struct JBig2ArithCtx; | 16 struct JBig2ArithCtx; |
17 | 17 |
18 class CJBig2_HTRDProc { | 18 class CJBig2_HTRDProc { |
19 public: | 19 public: |
20 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder, | 20 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder, |
21 JBig2ArithCtx* gbContext, | 21 JBig2ArithCtx* gbContext, |
22 IFX_Pause* pPause); | 22 IFX_Pause* pPause); |
23 | 23 |
24 CJBig2_Image* decode_MMR(CJBig2_BitStream* pStream, IFX_Pause* pPause); | 24 CJBig2_Image* decode_MMR(CJBig2_BitStream* pStream, IFX_Pause* pPause); |
25 | 25 |
26 public: | 26 public: |
27 FX_DWORD HBW; | 27 uint32_t HBW; |
28 FX_DWORD HBH; | 28 uint32_t HBH; |
29 FX_BOOL HMMR; | 29 FX_BOOL HMMR; |
30 uint8_t HTEMPLATE; | 30 uint8_t HTEMPLATE; |
31 FX_DWORD HNUMPATS; | 31 uint32_t HNUMPATS; |
32 CJBig2_Image** HPATS; | 32 CJBig2_Image** HPATS; |
33 FX_BOOL HDEFPIXEL; | 33 FX_BOOL HDEFPIXEL; |
34 JBig2ComposeOp HCOMBOP; | 34 JBig2ComposeOp HCOMBOP; |
35 FX_BOOL HENABLESKIP; | 35 FX_BOOL HENABLESKIP; |
36 FX_DWORD HGW; | 36 uint32_t HGW; |
37 FX_DWORD HGH; | 37 uint32_t HGH; |
38 int32_t HGX; | 38 int32_t HGX; |
39 int32_t HGY; | 39 int32_t HGY; |
40 uint16_t HRX; | 40 uint16_t HRX; |
41 uint16_t HRY; | 41 uint16_t HRY; |
42 uint8_t HPW; | 42 uint8_t HPW; |
43 uint8_t HPH; | 43 uint8_t HPH; |
44 }; | 44 }; |
45 | 45 |
46 #endif // CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ | 46 #endif // CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ |
OLD | NEW |