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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 m_bFlipX, m_ClipRect.left, result_width); | 914 m_bFlipX, m_ClipRect.left, result_width); |
914 if (m_pMaskScanline) { | 915 if (m_pMaskScanline) { |
915 m_pSource->m_pAlphaMask->DownSampleScanline( | 916 m_pSource->m_pAlphaMask->DownSampleScanline( |
916 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, | 917 src_y, m_pMaskScanline, 1, m_DestWidth, m_bFlipX, m_ClipRect.left, |
917 result_width); | 918 result_width); |
918 } | 919 } |
919 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); | 920 m_pDest->ComposeScanline(dest_y, m_pScanline, m_pMaskScanline); |
920 } | 921 } |
921 return FALSE; | 922 return FALSE; |
922 } | 923 } |
OLD | NEW |