OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FX_DWORD* pMatteColor = NULL, |
56 FX_BOOL bStdCS = FALSE, | 56 FX_BOOL bStdCS = FALSE, |
57 FX_DWORD GroupFamily = 0, | 57 FX_DWORD 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, | 61 void SetImage(const CFX_DIBitmap* pDIBitmap, int32_t iCompress); |
62 int32_t iCompress, | |
63 IFX_FileWrite* pFileWrite = NULL, | |
64 IFX_FileRead* pFileRead = NULL, | |
65 const CFX_DIBitmap* pMask = NULL); | |
66 void SetJpegImage(uint8_t* pImageData, FX_DWORD size); | 62 void SetJpegImage(uint8_t* pImageData, FX_DWORD size); |
67 void SetJpegImage(IFX_FileRead* pFile); | 63 void SetJpegImage(IFX_FileRead* pFile); |
68 | 64 |
69 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); | 65 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); |
70 | 66 |
71 FX_BOOL StartLoadDIBSource(CPDF_Dictionary* pFormResource, | 67 FX_BOOL StartLoadDIBSource(CPDF_Dictionary* pFormResource, |
72 CPDF_Dictionary* pPageResource, | 68 CPDF_Dictionary* pPageResource, |
73 FX_BOOL bStdCS = FALSE, | 69 FX_BOOL bStdCS = FALSE, |
74 FX_DWORD GroupFamily = 0, | 70 FX_DWORD GroupFamily = 0, |
75 FX_BOOL bLoadMask = FALSE); | 71 FX_BOOL bLoadMask = FALSE); |
(...skipping 13 matching lines...) Expand all Loading... |
89 CPDF_Dictionary* m_pInlineDict; | 85 CPDF_Dictionary* m_pInlineDict; |
90 int32_t m_Height; | 86 int32_t m_Height; |
91 int32_t m_Width; | 87 int32_t m_Width; |
92 FX_BOOL m_bIsMask; | 88 FX_BOOL m_bIsMask; |
93 FX_BOOL m_bInterpolate; | 89 FX_BOOL m_bInterpolate; |
94 CPDF_Document* m_pDocument; | 90 CPDF_Document* m_pDocument; |
95 CPDF_Dictionary* m_pOC; | 91 CPDF_Dictionary* m_pOC; |
96 }; | 92 }; |
97 | 93 |
98 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_ | 94 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_IMAGE_H_ |
OLD | NEW |