| 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 "core/fpdfapi/parser/cpdf_stream.h" | 10 #include "core/fpdfapi/parser/cpdf_stream.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class IFX_SeekableWriteStream; | 26 class IFX_SeekableWriteStream; |
| 27 | 27 |
| 28 class CPDF_Image { | 28 class CPDF_Image { |
| 29 public: | 29 public: |
| 30 explicit CPDF_Image(CPDF_Document* pDoc); | 30 explicit CPDF_Image(CPDF_Document* pDoc); |
| 31 CPDF_Image(CPDF_Document* pDoc, std::unique_ptr<CPDF_Stream> pStream); | 31 CPDF_Image(CPDF_Document* pDoc, std::unique_ptr<CPDF_Stream> pStream); |
| 32 CPDF_Image(CPDF_Document* pDoc, uint32_t dwStreamObjNum); | 32 CPDF_Image(CPDF_Document* pDoc, uint32_t dwStreamObjNum); |
| 33 ~CPDF_Image(); | 33 ~CPDF_Image(); |
| 34 | 34 |
| 35 CPDF_Image* Clone(); | 35 CPDF_Image* Clone(); |
| 36 void ConvertStreamToIndirectObject(); |
| 36 | 37 |
| 37 CPDF_Dictionary* GetInlineDict() const { return m_pDict; } | 38 CPDF_Dictionary* GetInlineDict() const { return m_pDict; } |
| 38 CPDF_Stream* GetStream() const { return m_pStream; } | 39 CPDF_Stream* GetStream() const { return m_pStream; } |
| 39 CPDF_Dictionary* GetDict() const { | 40 CPDF_Dictionary* GetDict() const { |
| 40 return m_pStream ? m_pStream->GetDict() : nullptr; | 41 return m_pStream ? m_pStream->GetDict() : nullptr; |
| 41 } | 42 } |
| 42 CPDF_Dictionary* GetOC() const { return m_pOC; } | 43 CPDF_Dictionary* GetOC() const { return m_pOC; } |
| 43 CPDF_Document* GetDocument() const { return m_pDocument; } | 44 CPDF_Document* GetDocument() const { return m_pDocument; } |
| 44 | 45 |
| 45 int32_t GetPixelHeight() const { return m_Height; } | 46 int32_t GetPixelHeight() const { return m_Height; } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool m_bInterpolate = false; | 84 bool m_bInterpolate = false; |
| 84 CPDF_Document* const m_pDocument; | 85 CPDF_Document* const m_pDocument; |
| 85 CPDF_Stream* m_pStream = nullptr; | 86 CPDF_Stream* m_pStream = nullptr; |
| 86 CPDF_Dictionary* m_pDict = nullptr; | 87 CPDF_Dictionary* m_pDict = nullptr; |
| 87 std::unique_ptr<CPDF_Stream> m_pOwnedStream; | 88 std::unique_ptr<CPDF_Stream> m_pOwnedStream; |
| 88 std::unique_ptr<CPDF_Dictionary> m_pOwnedDict; | 89 std::unique_ptr<CPDF_Dictionary> m_pOwnedDict; |
| 89 CPDF_Dictionary* m_pOC = nullptr; | 90 CPDF_Dictionary* m_pOC = nullptr; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ | 93 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ |
| OLD | NEW |