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
14class CJBig2_ArithDecoder;
15class CJBig2_BitStream;
16class CJBig2_PatternDict;
17class IFX_PauseIndicator;
18struct JBig2ArithCtx;
19
20class CJBig2_PDDProc {
21 public:
22  std::unique_ptr<CJBig2_PatternDict> decode_Arith(
23      CJBig2_ArithDecoder* pArithDecoder,
24      JBig2ArithCtx* gbContext,
25      IFX_PauseIndicator* pPause);
26
27  std::unique_ptr<CJBig2_PatternDict> decode_MMR(CJBig2_BitStream* pStream);
28
29 public:
30  bool HDMMR;
31  uint8_t HDPW;
32  uint8_t HDPH;
33  uint32_t GRAYMAX;
34  uint8_t HDTEMPLATE;
35};
36
37#endif  // CORE_FXCODEC_JBIG2_JBIG2_PDDPROC_H_
38