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

Side by Side Diff: source/row_any.cc

Issue 2421843002: Add MSA optimized ARGB4444ToI420 and ARGB4444ToARGB functions (Closed)
Patch Set: 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
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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 #endif 422 #endif
423 #ifdef HAS_RGB565TOYROW_NEON 423 #ifdef HAS_RGB565TOYROW_NEON
424 ANY11(RGB565ToYRow_Any_NEON, RGB565ToYRow_NEON, 0, 2, 1, 7) 424 ANY11(RGB565ToYRow_Any_NEON, RGB565ToYRow_NEON, 0, 2, 1, 7)
425 #endif 425 #endif
426 #ifdef HAS_ARGB1555TOYROW_NEON 426 #ifdef HAS_ARGB1555TOYROW_NEON
427 ANY11(ARGB1555ToYRow_Any_NEON, ARGB1555ToYRow_NEON, 0, 2, 1, 7) 427 ANY11(ARGB1555ToYRow_Any_NEON, ARGB1555ToYRow_NEON, 0, 2, 1, 7)
428 #endif 428 #endif
429 #ifdef HAS_ARGB4444TOYROW_NEON 429 #ifdef HAS_ARGB4444TOYROW_NEON
430 ANY11(ARGB4444ToYRow_Any_NEON, ARGB4444ToYRow_NEON, 0, 2, 1, 7) 430 ANY11(ARGB4444ToYRow_Any_NEON, ARGB4444ToYRow_NEON, 0, 2, 1, 7)
431 #endif 431 #endif
432 #ifdef HAS_ARGB4444TOYROW_MSA
433 ANY11(ARGB4444ToYRow_Any_MSA, ARGB4444ToYRow_MSA, 0, 2, 1, 15)
434 #endif
432 #ifdef HAS_YUY2TOYROW_NEON 435 #ifdef HAS_YUY2TOYROW_NEON
433 ANY11(YUY2ToYRow_Any_NEON, YUY2ToYRow_NEON, 1, 4, 1, 15) 436 ANY11(YUY2ToYRow_Any_NEON, YUY2ToYRow_NEON, 1, 4, 1, 15)
434 #endif 437 #endif
435 #ifdef HAS_UYVYTOYROW_NEON 438 #ifdef HAS_UYVYTOYROW_NEON
436 ANY11(UYVYToYRow_Any_NEON, UYVYToYRow_NEON, 1, 4, 1, 15) 439 ANY11(UYVYToYRow_Any_NEON, UYVYToYRow_NEON, 1, 4, 1, 15)
437 #endif 440 #endif
438 #ifdef HAS_YUY2TOYROW_MSA 441 #ifdef HAS_YUY2TOYROW_MSA
439 ANY11(YUY2ToYRow_Any_MSA, YUY2ToYRow_MSA, 1, 4, 1, 31) 442 ANY11(YUY2ToYRow_Any_MSA, YUY2ToYRow_MSA, 1, 4, 1, 31)
440 #endif 443 #endif
441 #ifdef HAS_UYVYTOYROW_MSA 444 #ifdef HAS_UYVYTOYROW_MSA
442 ANY11(UYVYToYRow_Any_MSA, UYVYToYRow_MSA, 1, 4, 1, 31) 445 ANY11(UYVYToYRow_Any_MSA, UYVYToYRow_MSA, 1, 4, 1, 31)
443 #endif 446 #endif
444 #ifdef HAS_RGB24TOARGBROW_NEON 447 #ifdef HAS_RGB24TOARGBROW_NEON
445 ANY11(RGB24ToARGBRow_Any_NEON, RGB24ToARGBRow_NEON, 0, 3, 4, 7) 448 ANY11(RGB24ToARGBRow_Any_NEON, RGB24ToARGBRow_NEON, 0, 3, 4, 7)
446 #endif 449 #endif
447 #ifdef HAS_RAWTOARGBROW_NEON 450 #ifdef HAS_RAWTOARGBROW_NEON
448 ANY11(RAWToARGBRow_Any_NEON, RAWToARGBRow_NEON, 0, 3, 4, 7) 451 ANY11(RAWToARGBRow_Any_NEON, RAWToARGBRow_NEON, 0, 3, 4, 7)
449 #endif 452 #endif
450 #ifdef HAS_RGB565TOARGBROW_NEON 453 #ifdef HAS_RGB565TOARGBROW_NEON
451 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7) 454 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7)
452 #endif 455 #endif
453 #ifdef HAS_ARGB1555TOARGBROW_NEON 456 #ifdef HAS_ARGB1555TOARGBROW_NEON
454 ANY11(ARGB1555ToARGBRow_Any_NEON, ARGB1555ToARGBRow_NEON, 0, 2, 4, 7) 457 ANY11(ARGB1555ToARGBRow_Any_NEON, ARGB1555ToARGBRow_NEON, 0, 2, 4, 7)
455 #endif 458 #endif
456 #ifdef HAS_ARGB4444TOARGBROW_NEON 459 #ifdef HAS_ARGB4444TOARGBROW_NEON
457 ANY11(ARGB4444ToARGBRow_Any_NEON, ARGB4444ToARGBRow_NEON, 0, 2, 4, 7) 460 ANY11(ARGB4444ToARGBRow_Any_NEON, ARGB4444ToARGBRow_NEON, 0, 2, 4, 7)
458 #endif 461 #endif
462 #ifdef HAS_ARGB4444TOARGBROW_MSA
463 ANY11(ARGB4444ToARGBRow_Any_MSA, ARGB4444ToARGBRow_MSA, 0, 2, 4, 15)
464 #endif
459 #ifdef HAS_ARGBATTENUATEROW_SSSE3 465 #ifdef HAS_ARGBATTENUATEROW_SSSE3
460 ANY11(ARGBAttenuateRow_Any_SSSE3, ARGBAttenuateRow_SSSE3, 0, 4, 4, 3) 466 ANY11(ARGBAttenuateRow_Any_SSSE3, ARGBAttenuateRow_SSSE3, 0, 4, 4, 3)
461 #endif 467 #endif
462 #ifdef HAS_ARGBUNATTENUATEROW_SSE2 468 #ifdef HAS_ARGBUNATTENUATEROW_SSE2
463 ANY11(ARGBUnattenuateRow_Any_SSE2, ARGBUnattenuateRow_SSE2, 0, 4, 4, 3) 469 ANY11(ARGBUnattenuateRow_Any_SSE2, ARGBUnattenuateRow_SSE2, 0, 4, 4, 3)
464 #endif 470 #endif
465 #ifdef HAS_ARGBATTENUATEROW_AVX2 471 #ifdef HAS_ARGBATTENUATEROW_AVX2
466 ANY11(ARGBAttenuateRow_Any_AVX2, ARGBAttenuateRow_AVX2, 0, 4, 4, 7) 472 ANY11(ARGBAttenuateRow_Any_AVX2, ARGBAttenuateRow_AVX2, 0, 4, 4, 7)
467 #endif 473 #endif
468 #ifdef HAS_ARGBUNATTENUATEROW_AVX2 474 #ifdef HAS_ARGBUNATTENUATEROW_AVX2
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 #endif 840 #endif
835 #ifdef HAS_UYVYTOUVROW_NEON 841 #ifdef HAS_UYVYTOUVROW_NEON
836 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) 842 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15)
837 #endif 843 #endif
838 #ifdef HAS_YUY2TOUVROW_MSA 844 #ifdef HAS_YUY2TOUVROW_MSA
839 ANY12S(YUY2ToUVRow_Any_MSA, YUY2ToUVRow_MSA, 1, 4, 31) 845 ANY12S(YUY2ToUVRow_Any_MSA, YUY2ToUVRow_MSA, 1, 4, 31)
840 #endif 846 #endif
841 #ifdef HAS_UYVYTOUVROW_MSA 847 #ifdef HAS_UYVYTOUVROW_MSA
842 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31) 848 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31)
843 #endif 849 #endif
850 #ifdef HAS_ARGB4444TOUVROW_MSA
851 ANY12S(ARGB4444ToUVRow_Any_MSA, ARGB4444ToUVRow_MSA, 0, 2, 31)
852 #endif
844 #undef ANY12S 853 #undef ANY12S
845 854
846 #ifdef __cplusplus 855 #ifdef __cplusplus
847 } // extern "C" 856 } // extern "C"
848 } // namespace libyuv 857 } // namespace libyuv
849 #endif 858 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698