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_PDDPROC_H_ 8 #define CORE_FXCODEC_JBIG2_JBIG2_PDDPROC_H_ 9 10 #include <memory> 11 12 #include "core/fxcrt/fx_system.h" 13 14 class CJBig2_ArithDecoder; 15 class CJBig2_BitStream; 16 class CJBig2_GRDProc; 17 class CJBig2_PatternDict; 18 class JBig2ArithCtx; 19 class PauseIndicatorIface; 20 21 class CJBig2_PDDProc { 22 public: 23 std::unique_ptr<CJBig2_PatternDict> DecodeArith( 24 CJBig2_ArithDecoder* pArithDecoder, 25 JBig2ArithCtx* gbContext, 26 PauseIndicatorIface* pPause); 27 28 std::unique_ptr<CJBig2_PatternDict> DecodeMMR(CJBig2_BitStream* pStream); 29 30 bool HDMMR; 31 uint8_t HDPW; 32 uint8_t HDPH; 33 uint32_t GRAYMAX; 34 uint8_t HDTEMPLATE; 35 36 private: 37 std::unique_ptr<CJBig2_GRDProc> CreateGRDProc(); 38 }; 39 40 #endif // CORE_FXCODEC_JBIG2_JBIG2_PDDPROC_H_ 41