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/fpdf_render/render_int.h" | 7 #include "core/fpdfapi/fpdf_render/render_int.h" |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 if (m_Status == 4) { | 859 if (m_Status == 4) { |
860 if (m_Loader.Continue(m_LoadHandle, pPause)) { | 860 if (m_Loader.Continue(m_LoadHandle, pPause)) { |
861 return TRUE; | 861 return TRUE; |
862 } | 862 } |
863 if (StartRenderDIBSource()) { | 863 if (StartRenderDIBSource()) { |
864 return Continue(pPause); | 864 return Continue(pPause); |
865 } | 865 } |
866 } | 866 } |
867 return FALSE; | 867 return FALSE; |
868 } | 868 } |
869 ICodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( | 869 CCodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder( |
870 const uint8_t* src_buf, | 870 const uint8_t* src_buf, |
871 uint32_t src_size, | 871 uint32_t src_size, |
872 int width, | 872 int width, |
873 int height, | 873 int height, |
874 int nComps, | 874 int nComps, |
875 int bpc, | 875 int bpc, |
876 const CPDF_Dictionary* pParams); | 876 const CPDF_Dictionary* pParams); |
877 CFX_DIBitmap* CPDF_RenderStatus::LoadSMask(CPDF_Dictionary* pSMaskDict, | 877 CFX_DIBitmap* CPDF_RenderStatus::LoadSMask(CPDF_Dictionary* pSMaskDict, |
878 FX_RECT* pClipRect, | 878 FX_RECT* pClipRect, |
879 const CFX_Matrix* pMatrix) { | 879 const CFX_Matrix* pMatrix) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 } else if (pFunc) { | 998 } else if (pFunc) { |
999 int size = dest_pitch * height; | 999 int size = dest_pitch * height; |
1000 for (int i = 0; i < size; i++) { | 1000 for (int i = 0; i < size; i++) { |
1001 dest_buf[i] = transfers[src_buf[i]]; | 1001 dest_buf[i] = transfers[src_buf[i]]; |
1002 } | 1002 } |
1003 } else { | 1003 } else { |
1004 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); | 1004 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); |
1005 } | 1005 } |
1006 return pMask.release(); | 1006 return pMask.release(); |
1007 } | 1007 } |
OLD | NEW |