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

Side by Side Diff: core/fpdfapi/fpdf_page/include/cpdf_image.h

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_
9 9
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 CPDF_Document* GetDocument() const { return m_pDocument; } 45 CPDF_Document* GetDocument() const { return m_pDocument; }
46 46
47 int32_t GetPixelHeight() const { return m_Height; } 47 int32_t GetPixelHeight() const { return m_Height; }
48 int32_t GetPixelWidth() const { return m_Width; } 48 int32_t GetPixelWidth() const { return m_Width; }
49 49
50 FX_BOOL IsInline() { return m_bInline; } 50 FX_BOOL IsInline() { return m_bInline; }
51 FX_BOOL IsMask() const { return m_bIsMask; } 51 FX_BOOL IsMask() const { return m_bIsMask; }
52 FX_BOOL IsInterpol() const { return m_bInterpolate; } 52 FX_BOOL IsInterpol() const { return m_bInterpolate; }
53 53
54 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = NULL, 54 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = NULL,
55 FX_DWORD* pMatteColor = NULL, 55 uint32_t* pMatteColor = NULL,
56 FX_BOOL bStdCS = FALSE, 56 FX_BOOL bStdCS = FALSE,
57 FX_DWORD GroupFamily = 0, 57 uint32_t GroupFamily = 0,
58 FX_BOOL bLoadMask = FALSE) const; 58 FX_BOOL bLoadMask = FALSE) const;
59 59
60 void SetInlineDict(CPDF_Dictionary* pDict) { m_pInlineDict = pDict; } 60 void SetInlineDict(CPDF_Dictionary* pDict) { m_pInlineDict = pDict; }
61 void SetImage(const CFX_DIBitmap* pDIBitmap, int32_t iCompress); 61 void SetImage(const CFX_DIBitmap* pDIBitmap, int32_t iCompress);
62 void SetJpegImage(uint8_t* pImageData, FX_DWORD size); 62 void SetJpegImage(uint8_t* pImageData, uint32_t size);
63 void SetJpegImage(IFX_FileRead* pFile); 63 void SetJpegImage(IFX_FileRead* pFile);
64 64
65 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); 65 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap);
66 66
67 FX_BOOL StartLoadDIBSource(CPDF_Dictionary* pFormResource, 67 FX_BOOL StartLoadDIBSource(CPDF_Dictionary* pFormResource,
68 CPDF_Dictionary* pPageResource, 68 CPDF_Dictionary* pPageResource,
69 FX_BOOL bStdCS = FALSE, 69 FX_BOOL bStdCS = FALSE,
70 FX_DWORD GroupFamily = 0, 70 uint32_t GroupFamily = 0,
71 FX_BOOL bLoadMask = FALSE); 71 FX_BOOL bLoadMask = FALSE);
72 FX_BOOL Continue(IFX_Pause* pPause); 72 FX_BOOL Continue(IFX_Pause* pPause);
73 CFX_DIBSource* DetachBitmap(); 73 CFX_DIBSource* DetachBitmap();
74 CFX_DIBSource* DetachMask(); 74 CFX_DIBSource* DetachMask();
75 75
76 CFX_DIBSource* m_pDIBSource; 76 CFX_DIBSource* m_pDIBSource;
77 CFX_DIBSource* m_pMask; 77 CFX_DIBSource* m_pMask;
78 FX_DWORD m_MatteColor; 78 uint32_t m_MatteColor;
79 79
80 private: 80 private:
81 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); 81 CPDF_Dictionary* InitJPEG(uint8_t* pData, uint32_t size);
82 82
83 CPDF_Stream* m_pStream; 83 CPDF_Stream* m_pStream;
84 FX_BOOL m_bInline; 84 FX_BOOL m_bInline;
85 CPDF_Dictionary* m_pInlineDict; 85 CPDF_Dictionary* m_pInlineDict;
86 int32_t m_Height; 86 int32_t m_Height;
87 int32_t m_Width; 87 int32_t m_Width;
88 FX_BOOL m_bIsMask; 88 FX_BOOL m_bIsMask;
89 FX_BOOL m_bInterpolate; 89 FX_BOOL m_bInterpolate;
90 CPDF_Document* m_pDocument; 90 CPDF_Document* m_pDocument;
91 CPDF_Dictionary* m_pOC; 91 CPDF_Dictionary* m_pOC;
92 }; 92 };
93 93
94 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_ 94 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_colorspace.h ('k') | core/fpdfapi/fpdf_page/include/cpdf_textobject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698