1// Copyright 2014 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 _JBIG2_ARITH_INT_DECODER_H_ 8#define _JBIG2_ARITH_INT_DECODER_H_ 9#include "JBig2_Module.h" 10#include "JBig2_ArithDecoder.h" 11class CJBig2_ArithIntDecoder : public CJBig2_Object 12{ 13public: 14 15 CJBig2_ArithIntDecoder(); 16 17 ~CJBig2_ArithIntDecoder(); 18 19 int decode(CJBig2_ArithDecoder *pArithDecoder, int *nResult); 20private: 21 22 JBig2ArithCtx *IAx; 23}; 24class CJBig2_ArithIaidDecoder : public CJBig2_Object 25{ 26public: 27 28 CJBig2_ArithIaidDecoder(unsigned char SBSYMCODELENA); 29 30 ~CJBig2_ArithIaidDecoder(); 31 32 int decode(CJBig2_ArithDecoder *pArithDecoder, int *nResult); 33private: 34 35 JBig2ArithCtx *IAID; 36 37 unsigned char SBSYMCODELEN; 38}; 39#endif 40