• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_
8 #define CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_
9 
10 #include "core/fxcodec/jbig2/JBig2_BitStream.h"
11 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h"
12 #include "core/fxcrt/unowned_ptr.h"
13 
14 class CJBig2_HuffmanDecoder {
15  public:
16   explicit CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream);
17 
18   ~CJBig2_HuffmanDecoder();
19 
20   int decodeAValue(CJBig2_HuffmanTable* pTable, int* nResult);
21 
22  private:
23   UnownedPtr<CJBig2_BitStream> const m_pStream;
24 };
25 
26 #endif  // CORE_FXCODEC_JBIG2_JBIG2_HUFFMANDECODER_H_
27