| OLD | NEW |
| 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 CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 CFX_DIBSource* TranslateImage(const CFX_DIBSource* pSrc, | 95 CFX_DIBSource* TranslateImage(const CFX_DIBSource* pSrc, |
| 96 FX_BOOL bAutoDropSrc); | 96 FX_BOOL bAutoDropSrc); |
| 97 | 97 |
| 98 CPDF_Document* const m_pPDFDoc; | 98 CPDF_Document* const m_pPDFDoc; |
| 99 FX_BOOL m_bIdentity; | 99 FX_BOOL m_bIdentity; |
| 100 uint8_t m_Samples[256 * 3]; | 100 uint8_t m_Samples[256 * 3]; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 class CPDF_DocRenderData { | 103 class CPDF_DocRenderData { |
| 104 public: | 104 public: |
| 105 CPDF_DocRenderData(CPDF_Document* pPDFDoc = nullptr); | 105 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); |
| 106 ~CPDF_DocRenderData(); | 106 ~CPDF_DocRenderData(); |
| 107 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); | 107 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); |
| 108 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); | 108 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); |
| 109 CFX_FontCache* GetFontCache() { return m_pFontCache; } | 109 CFX_FontCache* GetFontCache() { return m_pFontCache; } |
| 110 void Clear(FX_BOOL bRelease = FALSE); | 110 void Clear(FX_BOOL bRelease = FALSE); |
| 111 void ReleaseCachedType3(CPDF_Type3Font* pFont); | 111 void ReleaseCachedType3(CPDF_Type3Font* pFont); |
| 112 void ReleaseTransferFunc(CPDF_Object* pObj); | 112 void ReleaseTransferFunc(CPDF_Object* pObj); |
| 113 | 113 |
| 114 private: | 114 private: |
| 115 using CPDF_Type3CacheMap = | 115 using CPDF_Type3CacheMap = |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 CFX_DIBSource* m_pBitmap; | 307 CFX_DIBSource* m_pBitmap; |
| 308 CFX_DIBSource* m_pMask; | 308 CFX_DIBSource* m_pMask; |
| 309 uint32_t m_MatteColor; | 309 uint32_t m_MatteColor; |
| 310 FX_BOOL m_bCached; | 310 FX_BOOL m_bCached; |
| 311 | 311 |
| 312 protected: | 312 protected: |
| 313 int32_t m_nDownsampleWidth; | 313 int32_t m_nDownsampleWidth; |
| 314 int32_t m_nDownsampleHeight; | 314 int32_t m_nDownsampleHeight; |
| 315 }; | 315 }; |
| 316 |
| 316 class CPDF_ImageLoaderHandle { | 317 class CPDF_ImageLoaderHandle { |
| 317 public: | 318 public: |
| 318 CPDF_ImageLoaderHandle(); | 319 CPDF_ImageLoaderHandle(); |
| 319 ~CPDF_ImageLoaderHandle(); | 320 ~CPDF_ImageLoaderHandle(); |
| 320 | 321 |
| 321 FX_BOOL Start(CPDF_ImageLoader* pImageLoader, | 322 FX_BOOL Start(CPDF_ImageLoader* pImageLoader, |
| 322 const CPDF_ImageObject* pImage, | 323 const CPDF_ImageObject* pImage, |
| 323 CPDF_PageRenderCache* pCache, | 324 CPDF_PageRenderCache* pCache, |
| 324 FX_BOOL bStdCS = FALSE, | 325 FX_BOOL bStdCS = FALSE, |
| 325 uint32_t GroupFamily = 0, | 326 uint32_t GroupFamily = 0, |
| 326 FX_BOOL bLoadMask = FALSE, | 327 FX_BOOL bLoadMask = FALSE, |
| 327 CPDF_RenderStatus* pRenderStatus = nullptr, | 328 CPDF_RenderStatus* pRenderStatus = nullptr, |
| 328 int32_t nDownsampleWidth = 0, | 329 int32_t nDownsampleWidth = 0, |
| 329 int32_t nDownsampleHeight = 0); | 330 int32_t nDownsampleHeight = 0); |
| 330 FX_BOOL Continue(IFX_Pause* pPause); | 331 FX_BOOL Continue(IFX_Pause* pPause); |
| 331 | 332 |
| 332 protected: | 333 protected: |
| 334 void HandleFailure(); |
| 335 |
| 333 CPDF_ImageLoader* m_pImageLoader; | 336 CPDF_ImageLoader* m_pImageLoader; |
| 334 CPDF_PageRenderCache* m_pCache; | 337 CPDF_PageRenderCache* m_pCache; |
| 335 CPDF_ImageObject* m_pImage; | 338 CPDF_ImageObject* m_pImage; |
| 336 int32_t m_nDownsampleWidth; | 339 int32_t m_nDownsampleWidth; |
| 337 int32_t m_nDownsampleHeight; | 340 int32_t m_nDownsampleHeight; |
| 338 }; | 341 }; |
| 339 | 342 |
| 340 class CPDF_ImageRenderer { | 343 class CPDF_ImageRenderer { |
| 341 public: | 344 public: |
| 342 CPDF_ImageRenderer(); | 345 CPDF_ImageRenderer(); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 const uint8_t* src_buf, | 628 const uint8_t* src_buf, |
| 626 int pixels, | 629 int pixels, |
| 627 int Bpp) const override; | 630 int Bpp) const override; |
| 628 | 631 |
| 629 const uint8_t* m_RampR; | 632 const uint8_t* m_RampR; |
| 630 const uint8_t* m_RampG; | 633 const uint8_t* m_RampG; |
| 631 const uint8_t* m_RampB; | 634 const uint8_t* m_RampB; |
| 632 }; | 635 }; |
| 633 | 636 |
| 634 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 637 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |