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

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp

Issue 1390883004: Merge to XFA: Stop inlining CJBig2_BitStream. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 "JBig2_HuffmanDecoder.h" 7 #include "JBig2_HuffmanDecoder.h"
8
9 #include "JBig2_Define.h"
10
8 CJBig2_HuffmanDecoder::CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream) { 11 CJBig2_HuffmanDecoder::CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream) {
9 m_pStream = pStream; 12 m_pStream = pStream;
10 } 13 }
11 CJBig2_HuffmanDecoder::~CJBig2_HuffmanDecoder() {} 14 CJBig2_HuffmanDecoder::~CJBig2_HuffmanDecoder() {}
12 int CJBig2_HuffmanDecoder::decodeAValue(CJBig2_HuffmanTable* pTable, 15 int CJBig2_HuffmanDecoder::decodeAValue(CJBig2_HuffmanTable* pTable,
13 int* nResult) { 16 int* nResult) {
14 int i; 17 int i;
15 int nVal = 0; 18 int nVal = 0;
16 int nBits = 0; 19 int nBits = 0;
17 FX_DWORD nTmp; 20 FX_DWORD nTmp;
(...skipping 26 matching lines...) Expand all
44 } else { 47 } else {
45 *nResult = pTable->RANGELOW[i] + nTmp; 48 *nResult = pTable->RANGELOW[i] + nTmp;
46 return 0; 49 return 0;
47 } 50 }
48 } 51 }
49 } 52 }
50 } 53 }
51 } 54 }
52 return -2; 55 return -2;
53 } 56 }
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_BitStream.cpp ('k') | core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698