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

Side by Side Diff: core/fxcodec/jbig2/JBig2_HtrdProc.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
« no previous file with comments | « core/fxcodec/jbig2/JBig2_HtrdProc.h ('k') | core/fxcodec/jbig2/JBig2_HuffmanTable.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 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 "core/fxcodec/jbig2/JBig2_HtrdProc.h" 7 #include "core/fxcodec/jbig2/JBig2_HtrdProc.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "core/fxcodec/jbig2/JBig2_GsidProc.h" 11 #include "core/fxcodec/jbig2/JBig2_GsidProc.h"
12 #include "core/fxcrt/include/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
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 uint32_t ng, mg; 17 uint32_t ng, mg;
18 int32_t x, y; 18 int32_t x, y;
19 uint32_t HBPP; 19 uint32_t HBPP;
20 uint32_t* GI; 20 uint32_t* 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 uint32_t pat_index = GI[mg * HGW + ng]; 95 uint32_t 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
« no previous file with comments | « core/fxcodec/jbig2/JBig2_HtrdProc.h ('k') | core/fxcodec/jbig2/JBig2_HuffmanTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698