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

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

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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
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 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h" 7 #include "core/fxcodec/jbig2/JBig2_HuffmanTable.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcodec/jbig2/JBig2_BitStream.h" 12 #include "core/fxcodec/jbig2/JBig2_BitStream.h"
13 #include "core/fxcodec/jbig2/JBig2_Define.h" 13 #include "core/fxcodec/jbig2/JBig2_Define.h"
14 #include "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h" 14 #include "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h"
15 #include "core/fxcrt/include/fx_memory.h" 15 #include "core/fxcrt/fx_memory.h"
16 16
17 CJBig2_HuffmanTable::CJBig2_HuffmanTable(const JBig2TableLine* pTable, 17 CJBig2_HuffmanTable::CJBig2_HuffmanTable(const JBig2TableLine* pTable,
18 uint32_t nLines, 18 uint32_t nLines,
19 bool bHTOOB) 19 bool bHTOOB)
20 : m_bOK(true), HTOOB(bHTOOB), NTEMP(nLines) { 20 : m_bOK(true), HTOOB(bHTOOB), NTEMP(nLines) {
21 ParseFromStandardTable(pTable); 21 ParseFromStandardTable(pTable);
22 } 22 }
23 23
24 CJBig2_HuffmanTable::CJBig2_HuffmanTable(CJBig2_BitStream* pStream) 24 CJBig2_HuffmanTable::CJBig2_HuffmanTable(CJBig2_BitStream* pStream)
25 : HTOOB(false), NTEMP(0) { 25 : HTOOB(false), NTEMP(0) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 size_t size = PREFLEN.size(); 127 size_t size = PREFLEN.size();
128 if (NTEMP < size) 128 if (NTEMP < size)
129 return; 129 return;
130 130
131 size += 16; 131 size += 16;
132 ASSERT(NTEMP < size); 132 ASSERT(NTEMP < size);
133 PREFLEN.resize(size); 133 PREFLEN.resize(size);
134 RANGELEN.resize(size); 134 RANGELEN.resize(size);
135 RANGELOW.resize(size); 135 RANGELOW.resize(size);
136 } 136 }
OLDNEW
« no previous file with comments | « core/fxcodec/jbig2/JBig2_HuffmanTable.h ('k') | core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698