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 CORE_SRC_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ | 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ |
8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ | 8 #define CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ |
9 | 9 |
10 #include "core/src/fxcodec/jbig2/JBig2_BitStream.h" | 10 #include "core/fxcodec/jbig2/JBig2_BitStream.h" |
11 #include "core/src/fxcodec/jbig2/JBig2_HuffmanTable.h" | 11 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h" |
12 class CJBig2_HuffmanDecoder { | 12 class CJBig2_HuffmanDecoder { |
13 public: | 13 public: |
14 explicit CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream); | 14 explicit CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream); |
15 | 15 |
16 ~CJBig2_HuffmanDecoder(); | 16 ~CJBig2_HuffmanDecoder(); |
17 | 17 |
18 int decodeAValue(CJBig2_HuffmanTable* pTable, int* nResult); | 18 int decodeAValue(CJBig2_HuffmanTable* pTable, int* nResult); |
19 | 19 |
20 private: | 20 private: |
21 CJBig2_BitStream* const m_pStream; | 21 CJBig2_BitStream* const m_pStream; |
22 }; | 22 }; |
23 | 23 |
24 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ | 24 #endif // CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_ |
OLD | NEW |