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

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

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp ('k') | core/fxcodec/jbig2/JBig2_HuffmanTable.cpp » ('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 CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_ 7 #ifndef CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_
8 #define CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_ 8 #define CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcrt/include/fx_system.h" 12 #include "core/fxcrt/include/fx_system.h"
13 13
14 class CJBig2_BitStream; 14 class CJBig2_BitStream;
15 struct JBig2TableLine; 15 struct JBig2TableLine;
16 16
17 class CJBig2_HuffmanTable { 17 class CJBig2_HuffmanTable {
18 public: 18 public:
19 CJBig2_HuffmanTable(const JBig2TableLine* pTable, 19 CJBig2_HuffmanTable(const JBig2TableLine* pTable,
20 FX_DWORD nLines, 20 uint32_t nLines,
21 bool bHTOOB); 21 bool bHTOOB);
22 22
23 explicit CJBig2_HuffmanTable(CJBig2_BitStream* pStream); 23 explicit CJBig2_HuffmanTable(CJBig2_BitStream* pStream);
24 24
25 ~CJBig2_HuffmanTable(); 25 ~CJBig2_HuffmanTable();
26 26
27 bool IsHTOOB() const { return HTOOB; } 27 bool IsHTOOB() const { return HTOOB; }
28 FX_DWORD Size() const { return NTEMP; } 28 uint32_t Size() const { return NTEMP; }
29 const std::vector<int>& GetCODES() const { return CODES; } 29 const std::vector<int>& GetCODES() const { return CODES; }
30 const std::vector<int>& GetPREFLEN() const { return PREFLEN; } 30 const std::vector<int>& GetPREFLEN() const { return PREFLEN; }
31 const std::vector<int>& GetRANGELEN() const { return RANGELEN; } 31 const std::vector<int>& GetRANGELEN() const { return RANGELEN; }
32 const std::vector<int>& GetRANGELOW() const { return RANGELOW; } 32 const std::vector<int>& GetRANGELOW() const { return RANGELOW; }
33 bool IsOK() const { return m_bOK; } 33 bool IsOK() const { return m_bOK; }
34 34
35 private: 35 private:
36 void ParseFromStandardTable(const JBig2TableLine* pTable); 36 void ParseFromStandardTable(const JBig2TableLine* pTable);
37 bool ParseFromCodedBuffer(CJBig2_BitStream* pStream); 37 bool ParseFromCodedBuffer(CJBig2_BitStream* pStream);
38 void InitCodes(); 38 void InitCodes();
39 void ExtendBuffers(bool increment); 39 void ExtendBuffers(bool increment);
40 40
41 bool m_bOK; 41 bool m_bOK;
42 bool HTOOB; 42 bool HTOOB;
43 FX_DWORD NTEMP; 43 uint32_t NTEMP;
44 std::vector<int> CODES; 44 std::vector<int> CODES;
45 std::vector<int> PREFLEN; 45 std::vector<int> PREFLEN;
46 std::vector<int> RANGELEN; 46 std::vector<int> RANGELEN;
47 std::vector<int> RANGELOW; 47 std::vector<int> RANGELOW;
48 }; 48 };
49 49
50 #endif // CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_ 50 #endif // CORE_FXCODEC_JBIG2_JBIG2_HUFFMANTABLE_H_
OLDNEW
« no previous file with comments | « core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp ('k') | core/fxcodec/jbig2/JBig2_HuffmanTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698