Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_HuffmanTable.h

Issue 1328643002: Remove dead JBig2 code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp ('k') | core/src/fxcodec/jbig2/JBig2_Image.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_HUFFMAN_TABLE_H_ 7 #ifndef _JBIG2_HUFFMAN_TABLE_H_
8 #define _JBIG2_HUFFMAN_TABLE_H_ 8 #define _JBIG2_HUFFMAN_TABLE_H_
9 #include "JBig2_Module.h" 9 #include "JBig2_Module.h"
10 #include "JBig2_HuffmanTable_Standard.h" 10 #include "JBig2_HuffmanTable_Standard.h"
11 #include "JBig2_BitStream.h" 11 #include "JBig2_BitStream.h"
12 class CJBig2_HuffmanTable : public CJBig2_Object { 12 class CJBig2_HuffmanTable : public CJBig2_Object {
13 public: 13 public:
14 CJBig2_HuffmanTable(const JBig2TableLine* pTable, int nLines, FX_BOOL bHTOOB); 14 CJBig2_HuffmanTable(const JBig2TableLine* pTable, int nLines, FX_BOOL bHTOOB);
15 15
16 CJBig2_HuffmanTable(CJBig2_BitStream* pStream); 16 CJBig2_HuffmanTable(CJBig2_BitStream* pStream);
17 17
18 ~CJBig2_HuffmanTable(); 18 ~CJBig2_HuffmanTable();
19 19
20 void init();
21
22 int parseFromStandardTable(const JBig2TableLine* pTable, 20 int parseFromStandardTable(const JBig2TableLine* pTable,
23 int nLines, 21 int nLines,
24 FX_BOOL bHTOOB); 22 FX_BOOL bHTOOB);
25 23
26 int parseFromCodedBuffer(CJBig2_BitStream* pStream); 24 int parseFromCodedBuffer(CJBig2_BitStream* pStream);
27 25
28 FX_BOOL isOK() { return m_bOK; } 26 FX_BOOL isOK() { return m_bOK; }
29 27
30 private: 28 private:
29 void init();
30
31 FX_BOOL HTOOB; 31 FX_BOOL HTOOB;
32 int NTEMP; 32 int NTEMP;
33 int* CODES; 33 int* CODES;
34 int* PREFLEN; 34 int* PREFLEN;
35 int* RANGELEN; 35 int* RANGELEN;
36 int* RANGELOW; 36 int* RANGELOW;
37 FX_BOOL m_bOK; 37 FX_BOOL m_bOK;
38 friend class CJBig2_HuffmanDecoder; 38 friend class CJBig2_HuffmanDecoder;
39 }; 39 };
40 #endif 40 #endif
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp ('k') | core/src/fxcodec/jbig2/JBig2_Image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698