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

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

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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_HtrdProc.h" 7 #include "core/src/fxcodec/jbig2/JBig2_HtrdProc.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "JBig2_GsidProc.h" 11 #include "core/src/fxcodec/jbig2/JBig2_GsidProc.h"
12 #include "core/include/fxcrt/fx_basic.h" 12 #include "core/include/fxcrt/fx_basic.h"
Tom Sepez 2016/02/17 21:32:27 order
dsinclair 2016/02/17 21:54:00 Done.
13 13
14 CJBig2_Image* CJBig2_HTRDProc::decode_Arith(CJBig2_ArithDecoder* pArithDecoder, 14 CJBig2_Image* CJBig2_HTRDProc::decode_Arith(CJBig2_ArithDecoder* pArithDecoder,
15 JBig2ArithCtx* gbContext, 15 JBig2ArithCtx* gbContext,
16 IFX_Pause* pPause) { 16 IFX_Pause* pPause) {
17 FX_DWORD ng, mg; 17 FX_DWORD ng, mg;
18 int32_t x, y; 18 int32_t x, y;
19 FX_DWORD HBPP; 19 FX_DWORD HBPP;
20 FX_DWORD* GI; 20 FX_DWORD* GI;
21 std::unique_ptr<CJBig2_Image> HSKIP; 21 std::unique_ptr<CJBig2_Image> HSKIP;
22 std::unique_ptr<CJBig2_Image> HTREG(new CJBig2_Image(HBW, HBH)); 22 std::unique_ptr<CJBig2_Image> HTREG(new CJBig2_Image(HBW, HBH));
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 FX_DWORD pat_index = GI[mg * HGW + ng]; 95 FX_DWORD pat_index = GI[mg * HGW + ng];
96 if (pat_index >= HNUMPATS) { 96 if (pat_index >= HNUMPATS) {
97 pat_index = HNUMPATS - 1; 97 pat_index = HNUMPATS - 1;
98 } 98 }
99 HTREG->composeFrom(x, y, HPATS[pat_index], HCOMBOP); 99 HTREG->composeFrom(x, y, HPATS[pat_index], HCOMBOP);
100 } 100 }
101 } 101 }
102 FX_Free(GI); 102 FX_Free(GI);
103 return HTREG.release(); 103 return HTREG.release();
104 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698