1 // Copyright 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
9 
10 #include "core/include/fxcrt/fx_system.h"
11 
12 class CJBig2_ArithDecoder;
13 class CJBig2_Image;
14 class IFX_Pause;
15 struct JBig2ArithCtx;
16 
17 class CJBig2_GRRDProc {
18  public:
19   CJBig2_Image* decode(CJBig2_ArithDecoder* pArithDecoder,
20                        JBig2ArithCtx* grContext);
21 
22   CJBig2_Image* decode_Template0_unopt(CJBig2_ArithDecoder* pArithDecoder,
23                                        JBig2ArithCtx* grContext);
24 
25   CJBig2_Image* decode_Template0_opt(CJBig2_ArithDecoder* pArithDecoder,
26                                      JBig2ArithCtx* grContext);
27 
28   CJBig2_Image* decode_Template1_unopt(CJBig2_ArithDecoder* pArithDecoder,
29                                        JBig2ArithCtx* grContext);
30 
31   CJBig2_Image* decode_Template1_opt(CJBig2_ArithDecoder* pArithDecoder,
32                                      JBig2ArithCtx* grContext);
33 
34   FX_DWORD GRW;
35   FX_DWORD GRH;
36   FX_BOOL GRTEMPLATE;
37   CJBig2_Image* GRREFERENCE;
38   int32_t GRREFERENCEDX;
39   int32_t GRREFERENCEDY;
40   FX_BOOL TPGRON;
41   int8_t GRAT[4];
42 };
43 
44 #endif  // CORE_SRC_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
45