| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 : m_pBitmap(nullptr), | 286 : m_pBitmap(nullptr), |
| 287 m_pMask(nullptr), | 287 m_pMask(nullptr), |
| 288 m_MatteColor(0), | 288 m_MatteColor(0), |
| 289 m_bCached(FALSE), | 289 m_bCached(FALSE), |
| 290 m_nDownsampleWidth(0), | 290 m_nDownsampleWidth(0), |
| 291 m_nDownsampleHeight(0) {} | 291 m_nDownsampleHeight(0) {} |
| 292 ~CPDF_ImageLoader(); | 292 ~CPDF_ImageLoader(); |
| 293 | 293 |
| 294 FX_BOOL Start(const CPDF_ImageObject* pImage, | 294 FX_BOOL Start(const CPDF_ImageObject* pImage, |
| 295 CPDF_PageRenderCache* pCache, | 295 CPDF_PageRenderCache* pCache, |
| 296 CPDF_ImageLoaderHandle*& LoadHandle, | 296 std::unique_ptr<CPDF_ImageLoaderHandle>* pLoadHandle, |
| 297 FX_BOOL bStdCS = FALSE, | 297 FX_BOOL bStdCS = FALSE, |
| 298 uint32_t GroupFamily = 0, | 298 uint32_t GroupFamily = 0, |
| 299 FX_BOOL bLoadMask = FALSE, | 299 FX_BOOL bLoadMask = FALSE, |
| 300 CPDF_RenderStatus* pRenderStatus = nullptr, | 300 CPDF_RenderStatus* pRenderStatus = nullptr, |
| 301 int32_t nDownsampleWidth = 0, | 301 int32_t nDownsampleWidth = 0, |
| 302 int32_t nDownsampleHeight = 0); | 302 int32_t nDownsampleHeight = 0); |
| 303 FX_BOOL Continue(CPDF_ImageLoaderHandle* LoadHandle, IFX_Pause* pPause); | 303 FX_BOOL Continue(CPDF_ImageLoaderHandle* LoadHandle, IFX_Pause* pPause); |
| 304 | 304 |
| 305 CFX_DIBSource* m_pBitmap; | 305 CFX_DIBSource* m_pBitmap; |
| 306 CFX_DIBSource* m_pMask; | 306 CFX_DIBSource* m_pMask; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 FX_BOOL DrawMaskedImage(); | 366 FX_BOOL DrawMaskedImage(); |
| 367 FX_BOOL DrawPatternImage(const CFX_Matrix* pObj2Device); | 367 FX_BOOL DrawPatternImage(const CFX_Matrix* pObj2Device); |
| 368 | 368 |
| 369 CPDF_RenderStatus* m_pRenderStatus; | 369 CPDF_RenderStatus* m_pRenderStatus; |
| 370 const CPDF_ImageObject* m_pImageObject; | 370 const CPDF_ImageObject* m_pImageObject; |
| 371 int m_Status; | 371 int m_Status; |
| 372 const CFX_Matrix* m_pObj2Device; | 372 const CFX_Matrix* m_pObj2Device; |
| 373 CFX_Matrix m_ImageMatrix; | 373 CFX_Matrix m_ImageMatrix; |
| 374 CPDF_ImageLoader m_Loader; | 374 CPDF_ImageLoader m_Loader; |
| 375 const CFX_DIBSource* m_pDIBSource; | 375 const CFX_DIBSource* m_pDIBSource; |
| 376 CFX_DIBitmap* m_pClone; | 376 std::unique_ptr<CFX_DIBitmap> m_pClone; |
| 377 int m_BitmapAlpha; | 377 int m_BitmapAlpha; |
| 378 FX_BOOL m_bPatternColor; | 378 FX_BOOL m_bPatternColor; |
| 379 CPDF_Pattern* m_pPattern; | 379 CPDF_Pattern* m_pPattern; |
| 380 FX_ARGB m_FillArgb; | 380 FX_ARGB m_FillArgb; |
| 381 uint32_t m_Flags; | 381 uint32_t m_Flags; |
| 382 CFX_ImageTransformer* m_pTransformer; | 382 std::unique_ptr<CFX_ImageTransformer> m_pTransformer; |
| 383 void* m_DeviceHandle; | 383 void* m_DeviceHandle; |
| 384 CPDF_ImageLoaderHandle* m_LoadHandle; | 384 std::unique_ptr<CPDF_ImageLoaderHandle> m_LoadHandle; |
| 385 FX_BOOL m_bStdCS; | 385 FX_BOOL m_bStdCS; |
| 386 int m_BlendType; | 386 int m_BlendType; |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 class CPDF_ScaledRenderBuffer { | 389 class CPDF_ScaledRenderBuffer { |
| 390 public: | 390 public: |
| 391 CPDF_ScaledRenderBuffer(); | 391 CPDF_ScaledRenderBuffer(); |
| 392 ~CPDF_ScaledRenderBuffer(); | 392 ~CPDF_ScaledRenderBuffer(); |
| 393 | 393 |
| 394 FX_BOOL Initialize(CPDF_RenderContext* pContext, | 394 FX_BOOL Initialize(CPDF_RenderContext* pContext, |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 const uint8_t* src_buf, | 623 const uint8_t* src_buf, |
| 624 int pixels, | 624 int pixels, |
| 625 int Bpp) const override; | 625 int Bpp) const override; |
| 626 | 626 |
| 627 const uint8_t* m_RampR; | 627 const uint8_t* m_RampR; |
| 628 const uint8_t* m_RampG; | 628 const uint8_t* m_RampG; |
| 629 const uint8_t* m_RampB; | 629 const uint8_t* m_RampB; |
| 630 }; | 630 }; |
| 631 | 631 |
| 632 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 632 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |