| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _JBIG2_ARITH_INT_DECODER_H_ | 7 #ifndef _JBIG2_ARITH_INT_DECODER_H_ |
| 8 #define _JBIG2_ARITH_INT_DECODER_H_ | 8 #define _JBIG2_ARITH_INT_DECODER_H_ |
| 9 #include "JBig2_Module.h" | 9 #include "JBig2_Module.h" |
| 10 #include "JBig2_ArithDecoder.h" | 10 #include "JBig2_ArithDecoder.h" |
| 11 class CJBig2_ArithIntDecoder : public CJBig2_Object { | 11 class CJBig2_ArithIntDecoder { |
| 12 public: | 12 public: |
| 13 CJBig2_ArithIntDecoder(); | 13 CJBig2_ArithIntDecoder(); |
| 14 | 14 |
| 15 ~CJBig2_ArithIntDecoder(); | 15 ~CJBig2_ArithIntDecoder(); |
| 16 | 16 |
| 17 int decode(CJBig2_ArithDecoder* pArithDecoder, int* nResult); | 17 int decode(CJBig2_ArithDecoder* pArithDecoder, int* nResult); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 JBig2ArithCtx* IAx; | 20 JBig2ArithCtx* IAx; |
| 21 }; | 21 }; |
| 22 class CJBig2_ArithIaidDecoder : public CJBig2_Object { | 22 class CJBig2_ArithIaidDecoder { |
| 23 public: | 23 public: |
| 24 CJBig2_ArithIaidDecoder(unsigned char SBSYMCODELENA); | 24 CJBig2_ArithIaidDecoder(unsigned char SBSYMCODELENA); |
| 25 | 25 |
| 26 ~CJBig2_ArithIaidDecoder(); | 26 ~CJBig2_ArithIaidDecoder(); |
| 27 | 27 |
| 28 int decode(CJBig2_ArithDecoder* pArithDecoder, int* nResult); | 28 int decode(CJBig2_ArithDecoder* pArithDecoder, int* nResult); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 JBig2ArithCtx* IAID; | 31 JBig2ArithCtx* IAID; |
| 32 | 32 |
| 33 unsigned char SBSYMCODELEN; | 33 unsigned char SBSYMCODELEN; |
| 34 }; | 34 }; |
| 35 #endif | 35 #endif |
| OLD | NEW |