| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 175 } |
| 176 #if defined(HAS_SCALEROWDOWN4_NEON) | 176 #if defined(HAS_SCALEROWDOWN4_NEON) |
| 177 if (TestCpuFlag(kCpuHasNEON)) { | 177 if (TestCpuFlag(kCpuHasNEON)) { |
| 178 ScaleRowDown4 = filtering ? | 178 ScaleRowDown4 = filtering ? |
| 179 ScaleRowDown4Box_Any_NEON : ScaleRowDown4_Any_NEON; | 179 ScaleRowDown4Box_Any_NEON : ScaleRowDown4_Any_NEON; |
| 180 if (IS_ALIGNED(dst_width, 8)) { | 180 if (IS_ALIGNED(dst_width, 8)) { |
| 181 ScaleRowDown4 = filtering ? ScaleRowDown4Box_NEON : ScaleRowDown4_NEON; | 181 ScaleRowDown4 = filtering ? ScaleRowDown4Box_NEON : ScaleRowDown4_NEON; |
| 182 } | 182 } |
| 183 } | 183 } |
| 184 #endif | 184 #endif |
| 185 #if defined(HAS_SCALEROWDOWN4_SSE2) | 185 #if defined(HAS_SCALEROWDOWN4_SSSE3) |
| 186 if (TestCpuFlag(kCpuHasSSE2)) { | 186 if (TestCpuFlag(kCpuHasSSSE3)) { |
| 187 ScaleRowDown4 = filtering ? | 187 ScaleRowDown4 = filtering ? |
| 188 ScaleRowDown4Box_Any_SSE2 : ScaleRowDown4_Any_SSE2; | 188 ScaleRowDown4Box_Any_SSSE3 : ScaleRowDown4_Any_SSSE3; |
| 189 if (IS_ALIGNED(dst_width, 8)) { | 189 if (IS_ALIGNED(dst_width, 8)) { |
| 190 ScaleRowDown4 = filtering ? ScaleRowDown4Box_SSE2 : ScaleRowDown4_SSE2; | 190 ScaleRowDown4 = filtering ? ScaleRowDown4Box_SSSE3 : ScaleRowDown4_SSSE3; |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 #endif | 193 #endif |
| 194 #if defined(HAS_SCALEROWDOWN4_AVX2) | 194 #if defined(HAS_SCALEROWDOWN4_AVX2) |
| 195 if (TestCpuFlag(kCpuHasAVX2)) { | 195 if (TestCpuFlag(kCpuHasAVX2)) { |
| 196 ScaleRowDown4 = filtering ? | 196 ScaleRowDown4 = filtering ? |
| 197 ScaleRowDown4Box_Any_AVX2 : ScaleRowDown4_Any_AVX2; | 197 ScaleRowDown4Box_Any_AVX2 : ScaleRowDown4_Any_AVX2; |
| 198 if (IS_ALIGNED(dst_width, 16)) { | 198 if (IS_ALIGNED(dst_width, 16)) { |
| 199 ScaleRowDown4 = filtering ? ScaleRowDown4Box_AVX2 : ScaleRowDown4_AVX2; | 199 ScaleRowDown4 = filtering ? ScaleRowDown4Box_AVX2 : ScaleRowDown4_AVX2; |
| 200 } | 200 } |
| (...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 dst_u, dst_halfwidth, | 1680 dst_u, dst_halfwidth, |
| 1681 dst_v, dst_halfwidth, | 1681 dst_v, dst_halfwidth, |
| 1682 dst_width, aheight, | 1682 dst_width, aheight, |
| 1683 interpolate ? kFilterBox : kFilterNone); | 1683 interpolate ? kFilterBox : kFilterNone); |
| 1684 } | 1684 } |
| 1685 | 1685 |
| 1686 #ifdef __cplusplus | 1686 #ifdef __cplusplus |
| 1687 } // extern "C" | 1687 } // extern "C" |
| 1688 } // namespace libyuv | 1688 } // namespace libyuv |
| 1689 #endif | 1689 #endif |
| OLD | NEW |