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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 JBig2ArithCtx* gbContext, | 56 JBig2ArithCtx* gbContext, |
57 IFX_Pause* pPause = NULL); | 57 IFX_Pause* pPause = NULL); |
58 FXCODEC_STATUS Start_decode_Arith_V1(CJBig2_Image** pImage, | 58 FXCODEC_STATUS Start_decode_Arith_V1(CJBig2_Image** pImage, |
59 CJBig2_ArithDecoder* pArithDecoder, | 59 CJBig2_ArithDecoder* pArithDecoder, |
60 JBig2ArithCtx* gbContext, | 60 JBig2ArithCtx* gbContext, |
61 IFX_Pause* pPause = NULL); | 61 IFX_Pause* pPause = NULL); |
62 FXCODEC_STATUS Start_decode_MMR(CJBig2_Image** pImage, | 62 FXCODEC_STATUS Start_decode_MMR(CJBig2_Image** pImage, |
63 CJBig2_BitStream* pStream, | 63 CJBig2_BitStream* pStream, |
64 IFX_Pause* pPause = NULL); | 64 IFX_Pause* pPause = NULL); |
65 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause); | 65 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause); |
66 FX_RECT GetReplaceRect() { return m_ReplaceRect; }; | 66 FX_RECT GetReplaceRect() { return m_ReplaceRect; } |
67 | 67 |
68 private: | 68 private: |
69 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); | 69 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); |
70 FXCODEC_STATUS decode_Arith_V2(IFX_Pause* pPause); | 70 FXCODEC_STATUS decode_Arith_V2(IFX_Pause* pPause); |
71 FXCODEC_STATUS decode_Arith_V1(IFX_Pause* pPause); | 71 FXCODEC_STATUS decode_Arith_V1(IFX_Pause* pPause); |
72 FXCODEC_STATUS decode_MMR(); | 72 FXCODEC_STATUS decode_MMR(); |
73 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, | 73 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, |
74 CJBig2_ArithDecoder* pArithDecoder, | 74 CJBig2_ArithDecoder* pArithDecoder, |
75 JBig2ArithCtx* gbContext, | 75 JBig2ArithCtx* gbContext, |
76 IFX_Pause* pPause); | 76 IFX_Pause* pPause); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 public: | 316 public: |
317 FX_BOOL GSMMR; | 317 FX_BOOL GSMMR; |
318 FX_BOOL GSUSESKIP; | 318 FX_BOOL GSUSESKIP; |
319 uint8_t GSBPP; | 319 uint8_t GSBPP; |
320 FX_DWORD GSW, GSH; | 320 FX_DWORD GSW, GSH; |
321 uint8_t GSTEMPLATE; | 321 uint8_t GSTEMPLATE; |
322 CJBig2_Image* GSKIP; | 322 CJBig2_Image* GSKIP; |
323 }; | 323 }; |
324 #endif | 324 #endif |
OLD | NEW |