OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 #endif | 636 #endif |
637 #ifdef HAS_ARGBMIRRORROW_AVX2 | 637 #ifdef HAS_ARGBMIRRORROW_AVX2 |
638 ANY11M(ARGBMirrorRow_Any_AVX2, ARGBMirrorRow_AVX2, 4, 7) | 638 ANY11M(ARGBMirrorRow_Any_AVX2, ARGBMirrorRow_AVX2, 4, 7) |
639 #endif | 639 #endif |
640 #ifdef HAS_ARGBMIRRORROW_SSE2 | 640 #ifdef HAS_ARGBMIRRORROW_SSE2 |
641 ANY11M(ARGBMirrorRow_Any_SSE2, ARGBMirrorRow_SSE2, 4, 3) | 641 ANY11M(ARGBMirrorRow_Any_SSE2, ARGBMirrorRow_SSE2, 4, 3) |
642 #endif | 642 #endif |
643 #ifdef HAS_ARGBMIRRORROW_NEON | 643 #ifdef HAS_ARGBMIRRORROW_NEON |
644 ANY11M(ARGBMirrorRow_Any_NEON, ARGBMirrorRow_NEON, 4, 3) | 644 ANY11M(ARGBMirrorRow_Any_NEON, ARGBMirrorRow_NEON, 4, 3) |
645 #endif | 645 #endif |
| 646 #ifdef HAS_ARGBMIRRORROW_MSA |
| 647 ANY11M(ARGBMirrorRow_Any_MSA, ARGBMirrorRow_MSA, 4, 15) |
| 648 #endif |
646 #undef ANY11M | 649 #undef ANY11M |
647 | 650 |
648 // Any 1 plane. (memset) | 651 // Any 1 plane. (memset) |
649 #define ANY1(NAMEANY, ANY_SIMD, T, BPP, MASK) \ | 652 #define ANY1(NAMEANY, ANY_SIMD, T, BPP, MASK) \ |
650 void NAMEANY(uint8* dst_ptr, T v32, int width) { \ | 653 void NAMEANY(uint8* dst_ptr, T v32, int width) { \ |
651 SIMD_ALIGNED(uint8 temp[64]); \ | 654 SIMD_ALIGNED(uint8 temp[64]); \ |
652 int r = width & MASK; \ | 655 int r = width & MASK; \ |
653 int n = width & ~MASK; \ | 656 int n = width & ~MASK; \ |
654 if (n > 0) { \ | 657 if (n > 0) { \ |
655 ANY_SIMD(dst_ptr, v32, n); \ | 658 ANY_SIMD(dst_ptr, v32, n); \ |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 #endif | 821 #endif |
819 #ifdef HAS_UYVYTOUVROW_NEON | 822 #ifdef HAS_UYVYTOUVROW_NEON |
820 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) | 823 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) |
821 #endif | 824 #endif |
822 #undef ANY12S | 825 #undef ANY12S |
823 | 826 |
824 #ifdef __cplusplus | 827 #ifdef __cplusplus |
825 } // extern "C" | 828 } // extern "C" |
826 } // namespace libyuv | 829 } // namespace libyuv |
827 #endif | 830 #endif |
OLD | NEW |