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

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

Issue 1321883002: Replace signed char with int8_t. Fix Linux ARM build after r7830e9e. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause); 52 FXCODEC_STATUS Continue_decode(IFX_Pause* pPause);
53 FX_RECT GetReplaceRect() { return m_ReplaceRect; } 53 FX_RECT GetReplaceRect() { return m_ReplaceRect; }
54 54
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 char GBAT[8]; 62 int8_t GBAT[8];
Lei Zhang 2015/08/29 06:42:47 Whoops, doesn't work for the Linux ARM bot.
63 63
64 private: 64 private:
65 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause); 65 FXCODEC_STATUS decode_Arith(IFX_Pause* pPause);
66 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage, 66 FXCODEC_STATUS decode_Arith_Template0_opt3(CJBig2_Image* pImage,
67 CJBig2_ArithDecoder* pArithDecoder, 67 CJBig2_ArithDecoder* pArithDecoder,
68 JBig2ArithCtx* gbContext, 68 JBig2ArithCtx* gbContext,
69 IFX_Pause* pPause); 69 IFX_Pause* pPause);
70 FXCODEC_STATUS decode_Arith_Template0_unopt( 70 FXCODEC_STATUS decode_Arith_Template0_unopt(
71 CJBig2_Image* pImage, 71 CJBig2_Image* pImage,
72 CJBig2_ArithDecoder* pArithDecoder, 72 CJBig2_ArithDecoder* pArithDecoder,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 CJBig2_Image* decode_Template1_opt(CJBig2_ArithDecoder* pArithDecoder, 176 CJBig2_Image* decode_Template1_opt(CJBig2_ArithDecoder* pArithDecoder,
177 JBig2ArithCtx* grContext); 177 JBig2ArithCtx* grContext);
178 178
179 FX_DWORD GRW; 179 FX_DWORD GRW;
180 FX_DWORD GRH; 180 FX_DWORD GRH;
181 FX_BOOL GRTEMPLATE; 181 FX_BOOL GRTEMPLATE;
182 CJBig2_Image* GRREFERENCE; 182 CJBig2_Image* GRREFERENCE;
183 int32_t GRREFERENCEDX; 183 int32_t GRREFERENCEDX;
184 int32_t GRREFERENCEDY; 184 int32_t GRREFERENCEDY;
185 FX_BOOL TPGRON; 185 FX_BOOL TPGRON;
186 signed char GRAT[4]; 186 int8_t GRAT[4];
187 }; 187 };
188 188
189 typedef struct { 189 typedef struct {
190 CJBig2_ArithIntDecoder *IADT, *IAFS, *IADS, *IAIT, *IARI, *IARDW, *IARDH, 190 CJBig2_ArithIntDecoder *IADT, *IAFS, *IADS, *IAIT, *IARI, *IARDW, *IARDH,
191 *IARDX, *IARDY; 191 *IARDX, *IARDY;
192 CJBig2_ArithIaidDecoder* IAID; 192 CJBig2_ArithIaidDecoder* IAID;
193 } JBig2IntDecoderState; 193 } JBig2IntDecoderState;
194 194
195 class CJBig2_TRDProc : public CJBig2_Object { 195 class CJBig2_TRDProc : public CJBig2_Object {
196 public: 196 public:
(...skipping 16 matching lines...) Expand all
213 JBig2HuffmanCode* SBSYMCODES; 213 JBig2HuffmanCode* SBSYMCODES;
214 uint8_t SBSYMCODELEN; 214 uint8_t SBSYMCODELEN;
215 215
216 CJBig2_Image** SBSYMS; 216 CJBig2_Image** SBSYMS;
217 FX_BOOL SBDEFPIXEL; 217 FX_BOOL SBDEFPIXEL;
218 218
219 JBig2ComposeOp SBCOMBOP; 219 JBig2ComposeOp SBCOMBOP;
220 FX_BOOL TRANSPOSED; 220 FX_BOOL TRANSPOSED;
221 221
222 JBig2Corner REFCORNER; 222 JBig2Corner REFCORNER;
223 signed char SBDSOFFSET; 223 int8_t SBDSOFFSET;
224 CJBig2_HuffmanTable *SBHUFFFS, *SBHUFFDS, *SBHUFFDT, *SBHUFFRDW, *SBHUFFRDH, 224 CJBig2_HuffmanTable *SBHUFFFS, *SBHUFFDS, *SBHUFFDT, *SBHUFFRDW, *SBHUFFRDH,
225 *SBHUFFRDX, *SBHUFFRDY, *SBHUFFRSIZE; 225 *SBHUFFRDX, *SBHUFFRDY, *SBHUFFRSIZE;
226 FX_BOOL SBRTEMPLATE; 226 FX_BOOL SBRTEMPLATE;
227 signed char SBRAT[4]; 227 int8_t SBRAT[4];
228 }; 228 };
229 class CJBig2_SDDProc : public CJBig2_Object { 229 class CJBig2_SDDProc : public CJBig2_Object {
230 public: 230 public:
231 CJBig2_SymbolDict* decode_Arith(CJBig2_ArithDecoder* pArithDecoder, 231 CJBig2_SymbolDict* decode_Arith(CJBig2_ArithDecoder* pArithDecoder,
232 JBig2ArithCtx* gbContext, 232 JBig2ArithCtx* gbContext,
233 JBig2ArithCtx* grContext); 233 JBig2ArithCtx* grContext);
234 234
235 CJBig2_SymbolDict* decode_Huffman(CJBig2_BitStream* pStream, 235 CJBig2_SymbolDict* decode_Huffman(CJBig2_BitStream* pStream,
236 JBig2ArithCtx* gbContext, 236 JBig2ArithCtx* gbContext,
237 JBig2ArithCtx* grContext, 237 JBig2ArithCtx* grContext,
238 IFX_Pause* pPause); 238 IFX_Pause* pPause);
239 239
240 public: 240 public:
241 FX_BOOL SDHUFF; 241 FX_BOOL SDHUFF;
242 FX_BOOL SDREFAGG; 242 FX_BOOL SDREFAGG;
243 FX_DWORD SDNUMINSYMS; 243 FX_DWORD SDNUMINSYMS;
244 CJBig2_Image** SDINSYMS; 244 CJBig2_Image** SDINSYMS;
245 FX_DWORD SDNUMNEWSYMS; 245 FX_DWORD SDNUMNEWSYMS;
246 FX_DWORD SDNUMEXSYMS; 246 FX_DWORD SDNUMEXSYMS;
247 CJBig2_HuffmanTable *SDHUFFDH, *SDHUFFDW, *SDHUFFBMSIZE, *SDHUFFAGGINST; 247 CJBig2_HuffmanTable *SDHUFFDH, *SDHUFFDW, *SDHUFFBMSIZE, *SDHUFFAGGINST;
248 uint8_t SDTEMPLATE; 248 uint8_t SDTEMPLATE;
249 signed char SDAT[8]; 249 int8_t SDAT[8];
250 FX_BOOL SDRTEMPLATE; 250 FX_BOOL SDRTEMPLATE;
251 signed char SDRAT[4]; 251 int8_t SDRAT[4];
252 }; 252 };
253 class CJBig2_HTRDProc : public CJBig2_Object { 253 class CJBig2_HTRDProc : public CJBig2_Object {
254 public: 254 public:
255 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder, 255 CJBig2_Image* decode_Arith(CJBig2_ArithDecoder* pArithDecoder,
256 JBig2ArithCtx* gbContext, 256 JBig2ArithCtx* gbContext,
257 IFX_Pause* pPause); 257 IFX_Pause* pPause);
258 258
259 CJBig2_Image* decode_MMR(CJBig2_BitStream* pStream, IFX_Pause* pPause); 259 CJBig2_Image* decode_MMR(CJBig2_BitStream* pStream, IFX_Pause* pPause);
260 260
261 public: 261 public:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 public: 297 public:
298 FX_BOOL GSMMR; 298 FX_BOOL GSMMR;
299 FX_BOOL GSUSESKIP; 299 FX_BOOL GSUSESKIP;
300 uint8_t GSBPP; 300 uint8_t GSBPP;
301 FX_DWORD GSW, GSH; 301 FX_DWORD GSW, GSH;
302 uint8_t GSTEMPLATE; 302 uint8_t GSTEMPLATE;
303 CJBig2_Image* GSKIP; 303 CJBig2_Image* GSKIP;
304 }; 304 };
305 #endif 305 #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