| 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 #include "core/fpdfapi/render/render_int.h" | 7 #include "core/fpdfapi/render/render_int.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 m_pRenderStatus = pStatus; | 371 m_pRenderStatus = pStatus; |
| 372 m_bStdCS = bStdCS; | 372 m_bStdCS = bStdCS; |
| 373 m_pImageObject = pObj->AsImage(); | 373 m_pImageObject = pObj->AsImage(); |
| 374 m_BlendType = blendType; | 374 m_BlendType = blendType; |
| 375 m_pObj2Device = pObj2Device; | 375 m_pObj2Device = pObj2Device; |
| 376 CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC(); | 376 CPDF_Dictionary* pOC = m_pImageObject->GetImage()->GetOC(); |
| 377 if (pOC && m_pRenderStatus->m_Options.m_pOCContext && | 377 if (pOC && m_pRenderStatus->m_Options.m_pOCContext && |
| 378 !m_pRenderStatus->m_Options.m_pOCContext->CheckOCGVisible(pOC)) { | 378 !m_pRenderStatus->m_Options.m_pOCContext->CheckOCGVisible(pOC)) { |
| 379 return false; | 379 return false; |
| 380 } | 380 } |
| 381 m_ImageMatrix = m_pImageObject->m_Matrix; | 381 m_ImageMatrix = m_pImageObject->matrix(); |
| 382 m_ImageMatrix.Concat(*pObj2Device); | 382 m_ImageMatrix.Concat(*pObj2Device); |
| 383 if (StartLoadDIBSource()) { | 383 if (StartLoadDIBSource()) |
| 384 return true; | 384 return true; |
| 385 } | |
| 386 return StartRenderDIBSource(); | 385 return StartRenderDIBSource(); |
| 387 } | 386 } |
| 388 | 387 |
| 389 bool CPDF_ImageRenderer::Start(CPDF_RenderStatus* pStatus, | 388 bool CPDF_ImageRenderer::Start(CPDF_RenderStatus* pStatus, |
| 390 const CFX_DIBSource* pDIBSource, | 389 const CFX_DIBSource* pDIBSource, |
| 391 FX_ARGB bitmap_argb, | 390 FX_ARGB bitmap_argb, |
| 392 int bitmap_alpha, | 391 int bitmap_alpha, |
| 393 const CFX_Matrix* pImage2Device, | 392 const CFX_Matrix* pImage2Device, |
| 394 uint32_t flags, | 393 uint32_t flags, |
| 395 bool bStdCS, | 394 bool bStdCS, |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 } | 802 } |
| 804 | 803 |
| 805 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( | 804 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( |
| 806 const uint8_t* src_buf, | 805 const uint8_t* src_buf, |
| 807 uint32_t src_size, | 806 uint32_t src_size, |
| 808 int width, | 807 int width, |
| 809 int height, | 808 int height, |
| 810 int nComps, | 809 int nComps, |
| 811 int bpc, | 810 int bpc, |
| 812 const CPDF_Dictionary* pParams); | 811 const CPDF_Dictionary* pParams); |
| OLD | NEW |