| 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/fxge/dib/dib_int.h" | 7 #include "core/fxge/dib/dib_int.h" |
| 8 | 8 |
| 9 #include "core/fxge/include/fx_dib.h" | 9 #include "core/fxge/fx_dib.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 uint8_t bilinear_interpol(const uint8_t* buf, | 13 uint8_t bilinear_interpol(const uint8_t* buf, |
| 14 int row_offset_l, | 14 int row_offset_l, |
| 15 int row_offset_r, | 15 int row_offset_r, |
| 16 int src_col_l, | 16 int src_col_l, |
| 17 int src_col_r, | 17 int src_col_r, |
| 18 int res_x, | 18 int res_x, |
| 19 int res_y, | 19 int res_y, |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 } | 946 } |
| 947 } | 947 } |
| 948 } | 948 } |
| 949 m_Storer.Replace(std::move(pTransformed)); | 949 m_Storer.Replace(std::move(pTransformed)); |
| 950 return FALSE; | 950 return FALSE; |
| 951 } | 951 } |
| 952 | 952 |
| 953 std::unique_ptr<CFX_DIBitmap> CFX_ImageTransformer::DetachBitmap() { | 953 std::unique_ptr<CFX_DIBitmap> CFX_ImageTransformer::DetachBitmap() { |
| 954 return m_Storer.Detach(); | 954 return m_Storer.Detach(); |
| 955 } | 955 } |
| OLD | NEW |