Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: source/row_any.cc

Issue 2397693002: Add MSA optimized YUY2ToI422, YUY2ToI420, UYVYToI422, UYVYToI420 functions (Closed)
Patch Set: Updates as per review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/planar_functions.cc ('k') | source/row_msa.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 #endif 435 #endif
436 #ifdef HAS_ARGB4444TOYROW_NEON 436 #ifdef HAS_ARGB4444TOYROW_NEON
437 ANY11(ARGB4444ToYRow_Any_NEON, ARGB4444ToYRow_NEON, 0, 2, 1, 7) 437 ANY11(ARGB4444ToYRow_Any_NEON, ARGB4444ToYRow_NEON, 0, 2, 1, 7)
438 #endif 438 #endif
439 #ifdef HAS_YUY2TOYROW_NEON 439 #ifdef HAS_YUY2TOYROW_NEON
440 ANY11(YUY2ToYRow_Any_NEON, YUY2ToYRow_NEON, 1, 4, 1, 15) 440 ANY11(YUY2ToYRow_Any_NEON, YUY2ToYRow_NEON, 1, 4, 1, 15)
441 #endif 441 #endif
442 #ifdef HAS_UYVYTOYROW_NEON 442 #ifdef HAS_UYVYTOYROW_NEON
443 ANY11(UYVYToYRow_Any_NEON, UYVYToYRow_NEON, 0, 2, 1, 15) 443 ANY11(UYVYToYRow_Any_NEON, UYVYToYRow_NEON, 0, 2, 1, 15)
444 #endif 444 #endif
445 #ifdef HAS_YUY2TOYROW_MSA
446 ANY11(YUY2ToYRow_Any_MSA, YUY2ToYRow_MSA, 1, 4, 1, 31)
447 #endif
448 #ifdef HAS_UYVYTOYROW_MSA
449 ANY11(UYVYToYRow_Any_MSA, UYVYToYRow_MSA, 0, 2, 1, 31)
450 #endif
445 #ifdef HAS_RGB24TOARGBROW_NEON 451 #ifdef HAS_RGB24TOARGBROW_NEON
446 ANY11(RGB24ToARGBRow_Any_NEON, RGB24ToARGBRow_NEON, 0, 3, 4, 7) 452 ANY11(RGB24ToARGBRow_Any_NEON, RGB24ToARGBRow_NEON, 0, 3, 4, 7)
447 #endif 453 #endif
448 #ifdef HAS_RAWTOARGBROW_NEON 454 #ifdef HAS_RAWTOARGBROW_NEON
449 ANY11(RAWToARGBRow_Any_NEON, RAWToARGBRow_NEON, 0, 3, 4, 7) 455 ANY11(RAWToARGBRow_Any_NEON, RAWToARGBRow_NEON, 0, 3, 4, 7)
450 #endif 456 #endif
451 #ifdef HAS_RGB565TOARGBROW_NEON 457 #ifdef HAS_RGB565TOARGBROW_NEON
452 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7) 458 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7)
453 #endif 459 #endif
454 #ifdef HAS_ARGB1555TOARGBROW_NEON 460 #ifdef HAS_ARGB1555TOARGBROW_NEON
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 #ifdef HAS_YUY2TOUV422ROW_SSE2 762 #ifdef HAS_YUY2TOUV422ROW_SSE2
757 ANY12(YUY2ToUV422Row_Any_SSE2, YUY2ToUV422Row_SSE2, 1, 4, 1, 15) 763 ANY12(YUY2ToUV422Row_Any_SSE2, YUY2ToUV422Row_SSE2, 1, 4, 1, 15)
758 ANY12(UYVYToUV422Row_Any_SSE2, UYVYToUV422Row_SSE2, 1, 4, 1, 15) 764 ANY12(UYVYToUV422Row_Any_SSE2, UYVYToUV422Row_SSE2, 1, 4, 1, 15)
759 #endif 765 #endif
760 #ifdef HAS_YUY2TOUV422ROW_NEON 766 #ifdef HAS_YUY2TOUV422ROW_NEON
761 ANY12(ARGBToUV444Row_Any_NEON, ARGBToUV444Row_NEON, 0, 4, 0, 7) 767 ANY12(ARGBToUV444Row_Any_NEON, ARGBToUV444Row_NEON, 0, 4, 0, 7)
762 ANY12(ARGBToUV411Row_Any_NEON, ARGBToUV411Row_NEON, 0, 4, 2, 31) 768 ANY12(ARGBToUV411Row_Any_NEON, ARGBToUV411Row_NEON, 0, 4, 2, 31)
763 ANY12(YUY2ToUV422Row_Any_NEON, YUY2ToUV422Row_NEON, 1, 4, 1, 15) 769 ANY12(YUY2ToUV422Row_Any_NEON, YUY2ToUV422Row_NEON, 1, 4, 1, 15)
764 ANY12(UYVYToUV422Row_Any_NEON, UYVYToUV422Row_NEON, 1, 4, 1, 15) 770 ANY12(UYVYToUV422Row_Any_NEON, UYVYToUV422Row_NEON, 1, 4, 1, 15)
765 #endif 771 #endif
772 #ifdef HAS_YUY2TOUV422ROW_MSA
773 ANY12(YUY2ToUV422Row_Any_MSA, YUY2ToUV422Row_MSA, 1, 4, 1, 31)
774 ANY12(UYVYToUV422Row_Any_MSA, UYVYToUV422Row_MSA, 1, 4, 1, 31)
775 #endif
766 #undef ANY12 776 #undef ANY12
767 777
768 // Any 1 to 2 with source stride (2 rows of source). Outputs UV planes. 778 // Any 1 to 2 with source stride (2 rows of source). Outputs UV planes.
769 // 128 byte row allows for 32 avx ARGB pixels. 779 // 128 byte row allows for 32 avx ARGB pixels.
770 #define ANY12S(NAMEANY, ANY_SIMD, UVSHIFT, BPP, MASK) \ 780 #define ANY12S(NAMEANY, ANY_SIMD, UVSHIFT, BPP, MASK) \
771 void NAMEANY(const uint8* src_ptr, int src_stride_ptr, \ 781 void NAMEANY(const uint8* src_ptr, int src_stride_ptr, \
772 uint8* dst_u, uint8* dst_v, int width) { \ 782 uint8* dst_u, uint8* dst_v, int width) { \
773 SIMD_ALIGNED(uint8 temp[128 * 4]); \ 783 SIMD_ALIGNED(uint8 temp[128 * 4]); \
774 memset(temp, 0, 128 * 2); /* for msan */ \ 784 memset(temp, 0, 128 * 2); /* for msan */ \
775 int r = width & MASK; \ 785 int r = width & MASK; \
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 #endif 851 #endif
842 #ifdef HAS_ARGB4444TOUVROW_NEON 852 #ifdef HAS_ARGB4444TOUVROW_NEON
843 ANY12S(ARGB4444ToUVRow_Any_NEON, ARGB4444ToUVRow_NEON, 0, 2, 15) 853 ANY12S(ARGB4444ToUVRow_Any_NEON, ARGB4444ToUVRow_NEON, 0, 2, 15)
844 #endif 854 #endif
845 #ifdef HAS_YUY2TOUVROW_NEON 855 #ifdef HAS_YUY2TOUVROW_NEON
846 ANY12S(YUY2ToUVRow_Any_NEON, YUY2ToUVRow_NEON, 1, 4, 15) 856 ANY12S(YUY2ToUVRow_Any_NEON, YUY2ToUVRow_NEON, 1, 4, 15)
847 #endif 857 #endif
848 #ifdef HAS_UYVYTOUVROW_NEON 858 #ifdef HAS_UYVYTOUVROW_NEON
849 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) 859 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15)
850 #endif 860 #endif
861 #ifdef HAS_YUY2TOUVROW_MSA
862 ANY12S(YUY2ToUVRow_Any_MSA, YUY2ToUVRow_MSA, 1, 4, 31)
863 #endif
864 #ifdef HAS_UYVYTOUVROW_MSA
865 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31)
866 #endif
851 #undef ANY12S 867 #undef ANY12S
852 868
853 #ifdef __cplusplus 869 #ifdef __cplusplus
854 } // extern "C" 870 } // extern "C"
855 } // namespace libyuv 871 } // namespace libyuv
856 #endif 872 #endif
OLDNEW
« no previous file with comments | « source/planar_functions.cc ('k') | source/row_msa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698