| 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 } | 692 } |
| 693 #endif | 693 #endif |
| 694 #if defined(HAS_SCALEROWDOWN2_NEON) | 694 #if defined(HAS_SCALEROWDOWN2_NEON) |
| 695 if (TestCpuFlag(kCpuHasNEON)) { | 695 if (TestCpuFlag(kCpuHasNEON)) { |
| 696 ScaleRowDown2 = ScaleRowDown2Box_Any_NEON; | 696 ScaleRowDown2 = ScaleRowDown2Box_Any_NEON; |
| 697 if (IS_ALIGNED(halfwidth, 16)) { | 697 if (IS_ALIGNED(halfwidth, 16)) { |
| 698 ScaleRowDown2 = ScaleRowDown2Box_NEON; | 698 ScaleRowDown2 = ScaleRowDown2Box_NEON; |
| 699 } | 699 } |
| 700 } | 700 } |
| 701 #endif | 701 #endif |
| 702 #if defined(HAS_SCALEROWDOWN2_SSE2) | 702 #if defined(HAS_SCALEROWDOWN2_SSSE3) |
| 703 if (TestCpuFlag(kCpuHasSSE2)) { | 703 if (TestCpuFlag(kCpuHasSSSE3)) { |
| 704 ScaleRowDown2 = ScaleRowDown2Box_Any_SSE2; | 704 ScaleRowDown2 = ScaleRowDown2Box_Any_SSSE3; |
| 705 if (IS_ALIGNED(halfwidth, 16)) { | 705 if (IS_ALIGNED(halfwidth, 16)) { |
| 706 ScaleRowDown2 = ScaleRowDown2Box_SSE2; | 706 ScaleRowDown2 = ScaleRowDown2Box_SSSE3; |
| 707 } | 707 } |
| 708 } | 708 } |
| 709 #endif | 709 #endif |
| 710 #if defined(HAS_SCALEROWDOWN2_AVX2) | 710 #if defined(HAS_SCALEROWDOWN2_AVX2) |
| 711 if (TestCpuFlag(kCpuHasAVX2)) { | 711 if (TestCpuFlag(kCpuHasAVX2)) { |
| 712 ScaleRowDown2 = ScaleRowDown2Box_Any_AVX2; | 712 ScaleRowDown2 = ScaleRowDown2Box_Any_AVX2; |
| 713 if (IS_ALIGNED(halfwidth, 32)) { | 713 if (IS_ALIGNED(halfwidth, 32)) { |
| 714 ScaleRowDown2 = ScaleRowDown2Box_AVX2; | 714 ScaleRowDown2 = ScaleRowDown2Box_AVX2; |
| 715 } | 715 } |
| 716 } | 716 } |
| (...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2625 } | 2625 } |
| 2626 free_aligned_buffer_64(rows); | 2626 free_aligned_buffer_64(rows); |
| 2627 } | 2627 } |
| 2628 return 0; | 2628 return 0; |
| 2629 } | 2629 } |
| 2630 | 2630 |
| 2631 #ifdef __cplusplus | 2631 #ifdef __cplusplus |
| 2632 } // extern "C" | 2632 } // extern "C" |
| 2633 } // namespace libyuv | 2633 } // namespace libyuv |
| 2634 #endif | 2634 #endif |
| OLD | NEW |