| 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 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2557 } | 2557 } |
| 2558 #endif | 2558 #endif |
| 2559 #if defined(HAS_ARGBTOYJROW_NEON) | 2559 #if defined(HAS_ARGBTOYJROW_NEON) |
| 2560 if (TestCpuFlag(kCpuHasNEON)) { | 2560 if (TestCpuFlag(kCpuHasNEON)) { |
| 2561 ARGBToYJRow = ARGBToYJRow_Any_NEON; | 2561 ARGBToYJRow = ARGBToYJRow_Any_NEON; |
| 2562 if (IS_ALIGNED(width, 8)) { | 2562 if (IS_ALIGNED(width, 8)) { |
| 2563 ARGBToYJRow = ARGBToYJRow_NEON; | 2563 ARGBToYJRow = ARGBToYJRow_NEON; |
| 2564 } | 2564 } |
| 2565 } | 2565 } |
| 2566 #endif | 2566 #endif |
| 2567 #if defined(HAS_ARGBTOYJROW_MSA) |
| 2568 if (TestCpuFlag(kCpuHasMSA)) { |
| 2569 ARGBToYJRow = ARGBToYJRow_Any_MSA; |
| 2570 if (IS_ALIGNED(width, 16)) { |
| 2571 ARGBToYJRow = ARGBToYJRow_MSA; |
| 2572 } |
| 2573 } |
| 2574 #endif |
| 2567 | 2575 |
| 2568 #if defined(HAS_SOBELYROW_SSE2) | 2576 #if defined(HAS_SOBELYROW_SSE2) |
| 2569 if (TestCpuFlag(kCpuHasSSE2)) { | 2577 if (TestCpuFlag(kCpuHasSSE2)) { |
| 2570 SobelYRow = SobelYRow_SSE2; | 2578 SobelYRow = SobelYRow_SSE2; |
| 2571 } | 2579 } |
| 2572 #endif | 2580 #endif |
| 2573 #if defined(HAS_SOBELYROW_NEON) | 2581 #if defined(HAS_SOBELYROW_NEON) |
| 2574 if (TestCpuFlag(kCpuHasNEON)) { | 2582 if (TestCpuFlag(kCpuHasNEON)) { |
| 2575 SobelYRow = SobelYRow_NEON; | 2583 SobelYRow = SobelYRow_NEON; |
| 2576 } | 2584 } |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 } | 3272 } |
| 3265 free_aligned_buffer_64(rows); | 3273 free_aligned_buffer_64(rows); |
| 3266 } | 3274 } |
| 3267 return 0; | 3275 return 0; |
| 3268 } | 3276 } |
| 3269 | 3277 |
| 3270 #ifdef __cplusplus | 3278 #ifdef __cplusplus |
| 3271 } // extern "C" | 3279 } // extern "C" |
| 3272 } // namespace libyuv | 3280 } // namespace libyuv |
| 3273 #endif | 3281 #endif |
| OLD | NEW |