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

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

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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 #ifndef _JBIG2_IMAGE_H_ 7 #ifndef _JBIG2_IMAGE_H_
8 #define _JBIG2_IMAGE_H_ 8 #define _JBIG2_IMAGE_H_
9 #include "JBig2_Define.h" 9 #include "JBig2_Define.h"
10 #include "JBig2_Module.h" 10 #include "JBig2_Module.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 22
23 CJBig2_Image(int32_t w, int32_t h); 23 CJBig2_Image(int32_t w, int32_t h);
24 24
25 CJBig2_Image(int32_t w, int32_t h, int32_t stride, uint8_t*pBuf); 25 CJBig2_Image(int32_t w, int32_t h, int32_t stride, uint8_t*pBuf);
26 26
27 CJBig2_Image(CJBig2_Image &im); 27 CJBig2_Image(CJBig2_Image &im);
28 28
29 ~CJBig2_Image(); 29 ~CJBig2_Image();
30 30
31 FX_BOOL getPixel(int32_t x, int32_t y); 31 bool getPixel(int32_t x, int32_t y);
32 32
33 int32_t setPixel(int32_t x, int32_t y, FX_BOOL v); 33 int32_t setPixel(int32_t x, int32_t y, bool v);
34 34
35 void copyLine(int32_t hTo, int32_t hFrom); 35 void copyLine(int32_t hTo, int32_t hFrom);
36 36
37 void fill(FX_BOOL v); 37 void fill(bool v);
38 38
39 FX_BOOL composeTo(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp o p); 39 bool composeTo(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op);
40 FX_BOOL composeTo(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp o p, const FX_RECT* pSrcRect); 40 bool composeTo(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op, const FX_RECT* pSrcRect);
41 41
42 FX_BOOL composeTo_unopt(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2Compo seOp op); 42 bool composeTo_unopt(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeO p op);
43 43
44 FX_BOOL composeTo_opt(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2Compose Op op); 44 bool composeTo_opt(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op);
45 45
46 FX_BOOL composeTo_opt2(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2Compos eOp op); 46 bool composeTo_opt2(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op);
47 FX_BOOL composeTo_opt2(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2Compos eOp op, const FX_RECT* pSrcRect); 47 bool composeTo_opt2(CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op, const FX_RECT* pSrcRect);
48 48
49 FX_BOOL composeFrom(int32_t x, int32_t y, CJBig2_Image *pSrc, JBig2ComposeOp op); 49 bool composeFrom(int32_t x, int32_t y, CJBig2_Image *pSrc, JBig2ComposeOp op );
50 FX_BOOL composeFrom(int32_t x, int32_t y, CJBig2_Image *pSrc, JBig2ComposeOp op, const FX_RECT* pSrcRect); 50 bool composeFrom(int32_t x, int32_t y, CJBig2_Image *pSrc, JBig2ComposeOp op , const FX_RECT* pSrcRect);
51 CJBig2_Image *subImage_unopt(int32_t x, int32_t y, int32_t w, int32_t h); 51 CJBig2_Image *subImage_unopt(int32_t x, int32_t y, int32_t w, int32_t h);
52 52
53 CJBig2_Image *subImage(int32_t x, int32_t y, int32_t w, int32_t h); 53 CJBig2_Image *subImage(int32_t x, int32_t y, int32_t w, int32_t h);
54 54
55 void expand(int32_t h, FX_BOOL v); 55 void expand(int32_t h, bool v);
56 public: 56 public:
57 57
58 int32_t m_nWidth; 58 int32_t m_nWidth;
59 59
60 int32_t m_nHeight; 60 int32_t m_nHeight;
61 61
62 int32_t m_nStride; 62 int32_t m_nStride;
63 63
64 uint8_t *m_pData; 64 uint8_t *m_pData;
65 65
66 FX_BOOL m_bNeedFree; 66 bool m_bNeedFree;
67 }; 67 };
68 #endif 68 #endif
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h ('k') | core/src/fxcodec/jbig2/JBig2_Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698