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/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 17 matching lines...) Expand all Loading... |
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 FX_BOOL MMR; |
38 FX_DWORD GBW; | 38 uint32_t GBW; |
39 FX_DWORD GBH; | 39 uint32_t GBH; |
40 uint8_t GBTEMPLATE; | 40 uint8_t GBTEMPLATE; |
41 FX_BOOL TPGDON; | 41 FX_BOOL TPGDON; |
42 FX_BOOL USESKIP; | 42 FX_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; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 CJBig2_Image* decode_Arith_Template2_unopt(CJBig2_ArithDecoder* pArithDecoder, | 103 CJBig2_Image* decode_Arith_Template2_unopt(CJBig2_ArithDecoder* pArithDecoder, |
104 JBig2ArithCtx* gbContext); | 104 JBig2ArithCtx* gbContext); |
105 | 105 |
106 CJBig2_Image* decode_Arith_Template3_opt3(CJBig2_ArithDecoder* pArithDecoder, | 106 CJBig2_Image* decode_Arith_Template3_opt3(CJBig2_ArithDecoder* pArithDecoder, |
107 JBig2ArithCtx* gbContext); | 107 JBig2ArithCtx* gbContext); |
108 | 108 |
109 CJBig2_Image* decode_Arith_Template3_unopt(CJBig2_ArithDecoder* pArithDecoder, | 109 CJBig2_Image* decode_Arith_Template3_unopt(CJBig2_ArithDecoder* pArithDecoder, |
110 JBig2ArithCtx* gbContext); | 110 JBig2ArithCtx* gbContext); |
111 | 111 |
112 FX_DWORD m_loopIndex; | 112 uint32_t m_loopIndex; |
113 uint8_t* m_pLine; | 113 uint8_t* m_pLine; |
114 IFX_Pause* m_pPause; | 114 IFX_Pause* m_pPause; |
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 FX_BOOL LTP; | 120 FX_BOOL 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 |