| 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_PAGE_CPDF_IMAGE_H_ | 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ |
| 8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ | 8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 bool IsMask() const { return m_bIsMask; } | 44 bool IsMask() const { return m_bIsMask; } |
| 45 bool IsInterpol() const { return m_bInterpolate; } | 45 bool IsInterpol() const { return m_bInterpolate; } |
| 46 | 46 |
| 47 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = nullptr, | 47 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = nullptr, |
| 48 uint32_t* pMatteColor = nullptr, | 48 uint32_t* pMatteColor = nullptr, |
| 49 bool bStdCS = false, | 49 bool bStdCS = false, |
| 50 uint32_t GroupFamily = 0, | 50 uint32_t GroupFamily = 0, |
| 51 bool bLoadMask = false) const; | 51 bool bLoadMask = false) const; |
| 52 | 52 |
| 53 void SetImage(const CFX_DIBitmap* pDIBitmap); | 53 void SetImage(const CFX_DIBitmap* pDIBitmap); |
| 54 void SetJpegImage(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile); | 54 void SetJpegImage(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile, |
| 55 bool inlineImage); |
| 55 | 56 |
| 56 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); | 57 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); |
| 57 | 58 |
| 58 bool StartLoadDIBSource(CPDF_Dictionary* pFormResource, | 59 bool StartLoadDIBSource(CPDF_Dictionary* pFormResource, |
| 59 CPDF_Dictionary* pPageResource, | 60 CPDF_Dictionary* pPageResource, |
| 60 bool bStdCS = false, | 61 bool bStdCS = false, |
| 61 uint32_t GroupFamily = 0, | 62 uint32_t GroupFamily = 0, |
| 62 bool bLoadMask = false); | 63 bool bLoadMask = false); |
| 63 bool Continue(IFX_Pause* pPause); | 64 bool Continue(IFX_Pause* pPause); |
| 64 CFX_DIBSource* DetachBitmap(); | 65 CFX_DIBSource* DetachBitmap(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 77 bool m_bIsInline = false; | 78 bool m_bIsInline = false; |
| 78 bool m_bIsMask = false; | 79 bool m_bIsMask = false; |
| 79 bool m_bInterpolate = false; | 80 bool m_bInterpolate = false; |
| 80 CPDF_Document* const m_pDocument; | 81 CPDF_Document* const m_pDocument; |
| 81 CFX_MaybeOwned<CPDF_Stream> m_pStream; | 82 CFX_MaybeOwned<CPDF_Stream> m_pStream; |
| 82 CFX_MaybeOwned<CPDF_Dictionary> m_pDict; | 83 CFX_MaybeOwned<CPDF_Dictionary> m_pDict; |
| 83 CPDF_Dictionary* m_pOC = nullptr; | 84 CPDF_Dictionary* m_pOC = nullptr; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ | 87 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ |
| OLD | NEW |