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

Side by Side Diff: source/row_any.cc

Issue 1995293002: Add ARGBExtractAlpha function (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Use packuswb xmm0, xmm0 instead Created 4 years, 7 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_common.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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 #endif 459 #endif
460 #ifdef HAS_ARGBATTENUATEROW_AVX2 460 #ifdef HAS_ARGBATTENUATEROW_AVX2
461 ANY11(ARGBAttenuateRow_Any_AVX2, ARGBAttenuateRow_AVX2, 0, 4, 4, 7) 461 ANY11(ARGBAttenuateRow_Any_AVX2, ARGBAttenuateRow_AVX2, 0, 4, 4, 7)
462 #endif 462 #endif
463 #ifdef HAS_ARGBUNATTENUATEROW_AVX2 463 #ifdef HAS_ARGBUNATTENUATEROW_AVX2
464 ANY11(ARGBUnattenuateRow_Any_AVX2, ARGBUnattenuateRow_AVX2, 0, 4, 4, 7) 464 ANY11(ARGBUnattenuateRow_Any_AVX2, ARGBUnattenuateRow_AVX2, 0, 4, 4, 7)
465 #endif 465 #endif
466 #ifdef HAS_ARGBATTENUATEROW_NEON 466 #ifdef HAS_ARGBATTENUATEROW_NEON
467 ANY11(ARGBAttenuateRow_Any_NEON, ARGBAttenuateRow_NEON, 0, 4, 4, 7) 467 ANY11(ARGBAttenuateRow_Any_NEON, ARGBAttenuateRow_NEON, 0, 4, 4, 7)
468 #endif 468 #endif
469 #ifdef HAS_ARGBEXTRACTALPHAROW_SSE2
470 ANY11(ARGBExtractAlphaRow_Any_SSE2, ARGBExtractAlphaRow_SSE2, 0, 4, 1, 7)
471 #endif
472 #ifdef HAS_ARGBEXTRACTALPHAROW_NEON
473 ANY11(ARGBExtractAlphaRow_Any_NEON, ARGBExtractAlphaRow_NEON, 0, 4, 1, 7)
474 #endif
469 #undef ANY11 475 #undef ANY11
470 476
471 // Any 1 to 1 blended. Destination is read, modify, write. 477 // Any 1 to 1 blended. Destination is read, modify, write.
472 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ 478 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \
473 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \ 479 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \
474 SIMD_ALIGNED(uint8 temp[128 * 2]); \ 480 SIMD_ALIGNED(uint8 temp[128 * 2]); \
475 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \ 481 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \
476 int r = width & MASK; \ 482 int r = width & MASK; \
477 int n = width & ~MASK; \ 483 int n = width & ~MASK; \
478 if (n > 0) { \ 484 if (n > 0) { \
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 #endif 815 #endif
810 #ifdef HAS_UYVYTOUVROW_NEON 816 #ifdef HAS_UYVYTOUVROW_NEON
811 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) 817 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15)
812 #endif 818 #endif
813 #undef ANY12S 819 #undef ANY12S
814 820
815 #ifdef __cplusplus 821 #ifdef __cplusplus
816 } // extern "C" 822 } // extern "C"
817 } // namespace libyuv 823 } // namespace libyuv
818 #endif 824 #endif
OLDNEW
« no previous file with comments | « source/planar_functions.cc ('k') | source/row_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698