Home | History | Annotate | Download | only in jbig2
      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_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
      8 #define CORE_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
      9 
     10 #include "core/fxcrt/fx_system.h"
     11 
     12 class CJBig2_ArithDecoder;
     13 class CJBig2_Image;
     14 struct JBig2ArithCtx;
     15 
     16 class CJBig2_GRRDProc {
     17  public:
     18   CJBig2_Image* decode(CJBig2_ArithDecoder* pArithDecoder,
     19                        JBig2ArithCtx* grContext);
     20 
     21   CJBig2_Image* decode_Template0_unopt(CJBig2_ArithDecoder* pArithDecoder,
     22                                        JBig2ArithCtx* grContext);
     23 
     24   CJBig2_Image* decode_Template0_opt(CJBig2_ArithDecoder* pArithDecoder,
     25                                      JBig2ArithCtx* grContext);
     26 
     27   CJBig2_Image* decode_Template1_unopt(CJBig2_ArithDecoder* pArithDecoder,
     28                                        JBig2ArithCtx* grContext);
     29 
     30   CJBig2_Image* decode_Template1_opt(CJBig2_ArithDecoder* pArithDecoder,
     31                                      JBig2ArithCtx* grContext);
     32 
     33   uint32_t GRW;
     34   uint32_t GRH;
     35   bool GRTEMPLATE;
     36   CJBig2_Image* GRREFERENCE;
     37   int32_t GRREFERENCEDX;
     38   int32_t GRREFERENCEDY;
     39   bool TPGRON;
     40   int8_t GRAT[4];
     41 };
     42 
     43 #endif  // CORE_FXCODEC_JBIG2_JBIG2_GRRDPROC_H_
     44