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_GRDPROC_H_ | 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_GRDPROC_H_ |
8 #define CORE_FXCODEC_JBIG2_JBIG2_GRDPROC_H_ | 8 #define CORE_FXCODEC_JBIG2_JBIG2_GRDPROC_H_ |
9 | 9 |
10 #include "core/fxcodec/fx_codec_def.h" | 10 #include "core/fxcodec/fx_codec_def.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 FXCODEC_STATUS Start_decode_Arith(CJBig2_Image** pImage, | 27 FXCODEC_STATUS Start_decode_Arith(CJBig2_Image** pImage, |
28 CJBig2_ArithDecoder* pArithDecoder, | 28 CJBig2_ArithDecoder* pArithDecoder, |
29 JBig2ArithCtx* gbContext, | 29 JBig2ArithCtx* gbContext, |
30 IFX_Pause* pPause); | 30 IFX_Pause* pPause); |
31 FXCODEC_STATUS Start_decode_MMR(CJBig2_Image** pImage, | 31 FXCODEC_STATUS Start_decode_MMR(CJBig2_Image** pImage, |
32 CJBig2_BitStream* pStream, | 32 CJBig2_BitStream* pStream, |
33 IFX_Pause* pPause); | 33 IFX_Pause* pPause); |
34 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause); | 34 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause); |
35 FX_RECT GetReplaceRect() const { return m_ReplaceRect; } | 35 FX_RECT GetReplaceRect() const { return m_ReplaceRect; } |
36 | 36 |
37 FX_BOOL MMR; | 37 bool MMR; |
38 uint32_t GBW; | 38 uint32_t GBW; |
39 uint32_t GBH; | 39 uint32_t GBH; |
40 uint8_t GBTEMPLATE; | 40 uint8_t GBTEMPLATE; |
41 FX_BOOL TPGDON; | 41 bool TPGDON; |
42 FX_BOOL USESKIP; | 42 bool USESKIP; |
43 CJBig2_Image* SKIP; | 43 CJBig2_Image* SKIP; |
44 int8_t GBAT[8]; | 44 int8_t GBAT[8]; |
45 | 45 |
46 private: | 46 private: |
47 bool UseTemplate0Opt3() const; | 47 bool UseTemplate0Opt3() const; |
48 bool UseTemplate1Opt3() const; | 48 bool UseTemplate1Opt3() const; |
49 bool UseTemplate23Opt3() const; | 49 bool UseTemplate23Opt3() const; |
50 | 50 |
51 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); | 51 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); |
52 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, | 52 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 FXCODEC_STATUS m_ProssiveStatus; | 115 FXCODEC_STATUS m_ProssiveStatus; |
116 CJBig2_Image** m_pImage; | 116 CJBig2_Image** m_pImage; |
117 CJBig2_ArithDecoder* m_pArithDecoder; | 117 CJBig2_ArithDecoder* m_pArithDecoder; |
118 JBig2ArithCtx* m_gbContext; | 118 JBig2ArithCtx* m_gbContext; |
119 uint16_t m_DecodeType; | 119 uint16_t m_DecodeType; |
120 int m_LTP; | 120 int m_LTP; |
121 FX_RECT m_ReplaceRect; | 121 FX_RECT m_ReplaceRect; |
122 }; | 122 }; |
123 | 123 |
124 #endif // CORE_FXCODEC_JBIG2_JBIG2_GRDPROC_H_ | 124 #endif // CORE_FXCODEC_JBIG2_JBIG2_GRDPROC_H_ |
OLD | NEW |