| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 } | 652 } |
| 653 #endif | 653 #endif |
| 654 #if defined(HAS_ARGBMIRRORROW_AVX2) | 654 #if defined(HAS_ARGBMIRRORROW_AVX2) |
| 655 if (TestCpuFlag(kCpuHasAVX2)) { | 655 if (TestCpuFlag(kCpuHasAVX2)) { |
| 656 ARGBMirrorRow = ARGBMirrorRow_Any_AVX2; | 656 ARGBMirrorRow = ARGBMirrorRow_Any_AVX2; |
| 657 if (IS_ALIGNED(width, 8)) { | 657 if (IS_ALIGNED(width, 8)) { |
| 658 ARGBMirrorRow = ARGBMirrorRow_AVX2; | 658 ARGBMirrorRow = ARGBMirrorRow_AVX2; |
| 659 } | 659 } |
| 660 } | 660 } |
| 661 #endif | 661 #endif |
| 662 #if defined(HAS_ARGBMIRRORROW_MSA) |
| 663 if (TestCpuFlag(kCpuHasMSA)) { |
| 664 ARGBMirrorRow = ARGBMirrorRow_Any_MSA; |
| 665 if (IS_ALIGNED(width, 16)) { |
| 666 ARGBMirrorRow = ARGBMirrorRow_MSA; |
| 667 } |
| 668 } |
| 669 #endif |
| 662 | 670 |
| 663 // Mirror plane | 671 // Mirror plane |
| 664 for (y = 0; y < height; ++y) { | 672 for (y = 0; y < height; ++y) { |
| 665 ARGBMirrorRow(src_argb, dst_argb, width); | 673 ARGBMirrorRow(src_argb, dst_argb, width); |
| 666 src_argb += src_stride_argb; | 674 src_argb += src_stride_argb; |
| 667 dst_argb += dst_stride_argb; | 675 dst_argb += dst_stride_argb; |
| 668 } | 676 } |
| 669 return 0; | 677 return 0; |
| 670 } | 678 } |
| 671 | 679 |
| (...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2810 } | 2818 } |
| 2811 free_aligned_buffer_64(rows); | 2819 free_aligned_buffer_64(rows); |
| 2812 } | 2820 } |
| 2813 return 0; | 2821 return 0; |
| 2814 } | 2822 } |
| 2815 | 2823 |
| 2816 #ifdef __cplusplus | 2824 #ifdef __cplusplus |
| 2817 } // extern "C" | 2825 } // extern "C" |
| 2818 } // namespace libyuv | 2826 } // namespace libyuv |
| 2819 #endif | 2827 #endif |
| OLD | NEW |