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