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

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h

Issue 1337823003: Cleanup JBig2_GeneralDecoder.cpp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 3 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 | « no previous file | core/src/fxcodec/jbig2/JBig2_GeneralDecoder.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 _JBIG2_GENERAL_DECODER_H_ 7 #ifndef _JBIG2_GENERAL_DECODER_H_
8 #define _JBIG2_GENERAL_DECODER_H_ 8 #define _JBIG2_GENERAL_DECODER_H_
9 9
10 #include "../../../include/fxcodec/fx_codec_def.h" 10 #include "../../../include/fxcodec/fx_codec_def.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 FX_BOOL MMR; 55 FX_BOOL MMR;
56 FX_DWORD GBW; 56 FX_DWORD GBW;
57 FX_DWORD GBH; 57 FX_DWORD GBH;
58 uint8_t GBTEMPLATE; 58 uint8_t GBTEMPLATE;
59 FX_BOOL TPGDON; 59 FX_BOOL TPGDON;
60 FX_BOOL USESKIP; 60 FX_BOOL USESKIP;
61 CJBig2_Image* SKIP; 61 CJBig2_Image* SKIP;
62 int8_t GBAT[8]; 62 int8_t GBAT[8];
63 63
64 private: 64 private:
65 bool UseTemplate0Opt3() const;
66 bool UseTemplate1Opt3() const;
67 bool UseTemplate23Opt3() const;
68
65 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); 69 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause);
66 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, 70 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage,
67 CJBig2_ArithDecoder* pArithDecoder, 71 CJBig2_ArithDecoder* pArithDecoder,
68 JBig2ArithCtx* gbContext, 72 JBig2ArithCtx* gbContext,
69 IFX_Pause* pPause); 73 IFX_Pause* pPause);
70 FXCODEC_STATUS decode_Arith_Template0_unopt( 74 FXCODEC_STATUS decode_Arith_Template0_unopt(
71 CJBig2_Image* pImage, 75 CJBig2_Image* pImage,
72 CJBig2_ArithDecoder* pArithDecoder, 76 CJBig2_ArithDecoder* pArithDecoder,
73 JBig2ArithCtx* gbContext, 77 JBig2ArithCtx* gbContext,
74 IFX_Pause* pPause); 78 IFX_Pause* pPause);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 276
273 public: 277 public:
274 FX_BOOL GSMMR; 278 FX_BOOL GSMMR;
275 FX_BOOL GSUSESKIP; 279 FX_BOOL GSUSESKIP;
276 uint8_t GSBPP; 280 uint8_t GSBPP;
277 FX_DWORD GSW, GSH; 281 FX_DWORD GSW, GSH;
278 uint8_t GSTEMPLATE; 282 uint8_t GSTEMPLATE;
279 CJBig2_Image* GSKIP; 283 CJBig2_Image* GSKIP;
280 }; 284 };
281 #endif 285 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698