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 <limits.h> | 7 #include <limits.h> |
8 | 8 |
9 #include "core/include/fxge/fx_dib.h" | 9 #include "core/include/fxge/fx_dib.h" |
10 #include "core/include/fxge/fx_ge.h" | 10 #include "core/include/fxge/fx_ge.h" |
11 #include "dib_int.h" | 11 #include "core/src/fxge/dib/dib_int.h" |
12 | 12 |
13 void CWeightTable::Calc(int dest_len, | 13 void CWeightTable::Calc(int dest_len, |
14 int dest_min, | 14 int dest_min, |
15 int dest_max, | 15 int dest_max, |
16 int src_len, | 16 int src_len, |
17 int src_min, | 17 int src_min, |
18 int src_max, | 18 int src_max, |
19 int flags) { | 19 int flags) { |
20 FX_Free(m_pWeightTables); | 20 FX_Free(m_pWeightTables); |
21 m_pWeightTables = NULL; | 21 m_pWeightTables = NULL; |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 m_bFlipX, m_ClipRect.left, result_width); | 908 m_bFlipX, m_ClipRect.left, result_width); |
909 if (m_pMaskScanline) { | 909 if (m_pMaskScanline) { |
910 m_pSource->m_pAlphaMask->DownSampleScanline( | 910 m_pSource->m_pAlphaMask->DownSampleScanline( |
911 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, | 911 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, |
912 result_width); | 912 result_width); |
913 } | 913 } |
914 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); | 914 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); |
915 } | 915 } |
916 return FALSE; | 916 return FALSE; |
917 } | 917 } |
OLD | NEW |