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