| 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 "../../../include/fxge/fx_dib.h" | 9 #include "core/include/fxge/fx_dib.h" |
| 10 #include "../../../include/fxge/fx_ge.h" | 10 #include "core/include/fxge/fx_ge.h" |
| 11 #include "dib_int.h" | 11 #include "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); |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 m_bFlipX, m_ClipRect.left, result_width); | 911 m_bFlipX, m_ClipRect.left, result_width); |
| 912 if (m_pMaskScanline) { | 912 if (m_pMaskScanline) { |
| 913 m_pSource->m_pAlphaMask->DownSampleScanline( | 913 m_pSource->m_pAlphaMask->DownSampleScanline( |
| 914 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, | 914 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, |
| 915 result_width); | 915 result_width); |
| 916 } | 916 } |
| 917 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); | 917 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); |
| 918 } | 918 } |
| 919 return FALSE; | 919 return FALSE; |
| 920 } | 920 } |
| OLD | NEW |