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_HTRDPROC_H_ 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ 9 10 #include "core/include/fxcrt/fx_system.h" 11 12 #include "JBig2_Image.h" 13 14 class CJBig2_ArithDecoder; 15 class CJBig2_BitStream; 16 class IFX_Pause; 17 struct JBig2ArithCtx; 18 19 class CJBig2_HTRDProc { 20 public: 21 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder, 22 JBig2ArithCtx* gbContext, 23 IFX_Pause* pPause); 24 25 CJBig2_Image* decode_MMR(CJBig2_BitStream* pStream, IFX_Pause* pPause); 26 27 public: 28 FX_DWORD HBW; 29 FX_DWORD HBH; 30 FX_BOOL HMMR; 31 uint8_t HTEMPLATE; 32 FX_DWORD HNUMPATS; 33 CJBig2_Image** HPATS; 34 FX_BOOL HDEFPIXEL; 35 JBig2ComposeOp HCOMBOP; 36 FX_BOOL HENABLESKIP; 37 FX_DWORD HGW; 38 FX_DWORD HGH; 39 int32_t HGX; 40 int32_t HGY; 41 FX_WORD HRX; 42 FX_WORD HRY; 43 uint8_t HPW; 44 uint8_t HPH; 45 }; 46 47 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_ 48