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_GENERAL_DECODER_H_ | 7 #ifndef _JBIG2_GENERAL_DECODER_H_ |
8 #define _JBIG2_GENERAL_DECODER_H_ | 8 #define _JBIG2_GENERAL_DECODER_H_ |
9 | 9 |
10 #include "../../../include/fxcodec/fx_codec_def.h" | 10 #include "../../../include/fxcodec/fx_codec_def.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 FX_BOOL MMR; | 55 FX_BOOL MMR; |
56 FX_DWORD GBW; | 56 FX_DWORD GBW; |
57 FX_DWORD GBH; | 57 FX_DWORD GBH; |
58 uint8_t GBTEMPLATE; | 58 uint8_t GBTEMPLATE; |
59 FX_BOOL TPGDON; | 59 FX_BOOL TPGDON; |
60 FX_BOOL USESKIP; | 60 FX_BOOL USESKIP; |
61 CJBig2_Image* SKIP; | 61 CJBig2_Image* SKIP; |
62 int8_t GBAT[8]; | 62 int8_t GBAT[8]; |
63 | 63 |
64 private: | 64 private: |
| 65 bool UseTemplate0Opt3() const; |
| 66 bool UseTemplate1Opt3() const; |
| 67 bool UseTemplate23Opt3() const; |
| 68 |
65 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); | 69 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); |
66 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, | 70 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, |
67 CJBig2_ArithDecoder* pArithDecoder, | 71 CJBig2_ArithDecoder* pArithDecoder, |
68 JBig2ArithCtx* gbContext, | 72 JBig2ArithCtx* gbContext, |
69 IFX_Pause* pPause); | 73 IFX_Pause* pPause); |
70 FXCODEC_STATUS decode_Arith_Template0_unopt( | 74 FXCODEC_STATUS decode_Arith_Template0_unopt( |
71 CJBig2_Image* pImage, | 75 CJBig2_Image* pImage, |
72 CJBig2_ArithDecoder* pArithDecoder, | 76 CJBig2_ArithDecoder* pArithDecoder, |
73 JBig2ArithCtx* gbContext, | 77 JBig2ArithCtx* gbContext, |
74 IFX_Pause* pPause); | 78 IFX_Pause* pPause); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 276 |
273 public: | 277 public: |
274 FX_BOOL GSMMR; | 278 FX_BOOL GSMMR; |
275 FX_BOOL GSUSESKIP; | 279 FX_BOOL GSUSESKIP; |
276 uint8_t GSBPP; | 280 uint8_t GSBPP; |
277 FX_DWORD GSW, GSH; | 281 FX_DWORD GSW, GSH; |
278 uint8_t GSTEMPLATE; | 282 uint8_t GSTEMPLATE; |
279 CJBig2_Image* GSKIP; | 283 CJBig2_Image* GSKIP; |
280 }; | 284 }; |
281 #endif | 285 #endif |
OLD | NEW |