| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2015 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 uint8* dst_ptr, int dst_width) { \ | 48 uint8* dst_ptr, int dst_width) { \ |
| 49 int r = (int)((unsigned int)dst_width % (MASK + 1)); \ | 49 int r = (int)((unsigned int)dst_width % (MASK + 1)); \ |
| 50 int n = dst_width - r; \ | 50 int n = dst_width - r; \ |
| 51 if (n > 0) { \ | 51 if (n > 0) { \ |
| 52 SCALEROWDOWN_SIMD(src_ptr, src_stride, dst_ptr, n); \ | 52 SCALEROWDOWN_SIMD(src_ptr, src_stride, dst_ptr, n); \ |
| 53 } \ | 53 } \ |
| 54 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ | 54 SCALEROWDOWN_C(src_ptr + (n * FACTOR) * BPP, src_stride, \ |
| 55 dst_ptr + n * BPP, r); \ | 55 dst_ptr + n * BPP, r); \ |
| 56 } | 56 } |
| 57 | 57 |
| 58 #ifdef HAS_SCALEROWDOWN2_SSE2 | 58 #ifdef HAS_SCALEROWDOWN2_SSSE3 |
| 59 SDANY(ScaleRowDown2_Any_SSE2, ScaleRowDown2_SSE2, ScaleRowDown2_C, 2, 1, 15) | 59 SDANY(ScaleRowDown2_Any_SSSE3, ScaleRowDown2_SSSE3, ScaleRowDown2_C, 2, 1, 15) |
| 60 SDANY(ScaleRowDown2Linear_Any_SSE2, ScaleRowDown2Linear_SSE2, | 60 SDANY(ScaleRowDown2Linear_Any_SSSE3, ScaleRowDown2Linear_SSSE3, |
| 61 ScaleRowDown2Linear_C, 2, 1, 15) | 61 ScaleRowDown2Linear_C, 2, 1, 15) |
| 62 SDANY(ScaleRowDown2Box_Any_SSE2, ScaleRowDown2Box_SSE2, ScaleRowDown2Box_C, | 62 SDANY(ScaleRowDown2Box_Any_SSSE3, ScaleRowDown2Box_SSSE3, ScaleRowDown2Box_C, |
| 63 2, 1, 15) | 63 2, 1, 15) |
| 64 #endif | 64 #endif |
| 65 #ifdef HAS_SCALEROWDOWN2_AVX2 | 65 #ifdef HAS_SCALEROWDOWN2_AVX2 |
| 66 SDANY(ScaleRowDown2_Any_AVX2, ScaleRowDown2_AVX2, ScaleRowDown2_C, 2, 1, 31) | 66 SDANY(ScaleRowDown2_Any_AVX2, ScaleRowDown2_AVX2, ScaleRowDown2_C, 2, 1, 31) |
| 67 SDANY(ScaleRowDown2Linear_Any_AVX2, ScaleRowDown2Linear_AVX2, | 67 SDANY(ScaleRowDown2Linear_Any_AVX2, ScaleRowDown2Linear_AVX2, |
| 68 ScaleRowDown2Linear_C, 2, 1, 31) | 68 ScaleRowDown2Linear_C, 2, 1, 31) |
| 69 SDANY(ScaleRowDown2Box_Any_AVX2, ScaleRowDown2Box_AVX2, ScaleRowDown2Box_C, | 69 SDANY(ScaleRowDown2Box_Any_AVX2, ScaleRowDown2Box_AVX2, ScaleRowDown2Box_C, |
| 70 2, 1, 31) | 70 2, 1, 31) |
| 71 #endif | 71 #endif |
| 72 #ifdef HAS_SCALEROWDOWN2_NEON | 72 #ifdef HAS_SCALEROWDOWN2_NEON |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 #ifdef __cplusplus | 192 #ifdef __cplusplus |
| 193 } // extern "C" | 193 } // extern "C" |
| 194 } // namespace libyuv | 194 } // namespace libyuv |
| 195 #endif | 195 #endif |
| 196 | 196 |
| 197 | 197 |
| 198 | 198 |
| 199 | 199 |
| 200 | 200 |
| OLD | NEW |