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

Side by Side Diff: source/row_any.cc

Issue 1372653003: avx2 I422AlphaToARGB (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: GCC AVX2 use storeABGR Created 5 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 | « include/libyuv/version.h ('k') | source/row_gcc.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 30 matching lines...) Expand all
41 ANY_SIMD(temp, temp + 64, temp + 128, temp + 192, temp + 256, \ 41 ANY_SIMD(temp, temp + 64, temp + 128, temp + 192, temp + 256, \
42 yuvconstants, MASK + 1); \ 42 yuvconstants, MASK + 1); \
43 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 256, \ 43 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 256, \
44 SS(r, DUVSHIFT) * BPP); \ 44 SS(r, DUVSHIFT) * BPP); \
45 } 45 }
46 46
47 #ifdef HAS_I422ALPHATOARGBROW_SSSE3 47 #ifdef HAS_I422ALPHATOARGBROW_SSSE3
48 ANY41C(I422AlphaToARGBRow_Any_SSSE3, I422AlphaToARGBRow_SSSE3, 1, 0, 4, 7) 48 ANY41C(I422AlphaToARGBRow_Any_SSSE3, I422AlphaToARGBRow_SSSE3, 1, 0, 4, 7)
49 ANY41C(I422AlphaToABGRRow_Any_SSSE3, I422AlphaToABGRRow_SSSE3, 1, 0, 4, 7) 49 ANY41C(I422AlphaToABGRRow_Any_SSSE3, I422AlphaToABGRRow_SSSE3, 1, 0, 4, 7)
50 #endif 50 #endif
51 #ifdef HAS_I422ALPHATOARGBROW_AVX2
52 ANY41C(I422AlphaToARGBRow_Any_AVX2, I422AlphaToARGBRow_AVX2, 1, 0, 4, 7)
53 ANY41C(I422AlphaToABGRRow_Any_AVX2, I422AlphaToABGRRow_AVX2, 1, 0, 4, 7)
54 #endif
51 #undef ANY41C 55 #undef ANY41C
52 56
53 // Any 3 planes to 1. 57 // Any 3 planes to 1.
54 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ 58 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \
55 void NAMEANY(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, \ 59 void NAMEANY(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, \
56 uint8* dst_ptr, int width) { \ 60 uint8* dst_ptr, int width) { \
57 SIMD_ALIGNED(uint8 temp[64 * 4]); \ 61 SIMD_ALIGNED(uint8 temp[64 * 4]); \
58 memset(temp, 0, 64 * 3); /* for YUY2 and msan */ \ 62 memset(temp, 0, 64 * 3); /* for YUY2 and msan */ \
59 int r = width & MASK; \ 63 int r = width & MASK; \
60 int n = width & ~MASK; \ 64 int n = width & ~MASK; \
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 #endif 792 #endif
789 #ifdef HAS_UYVYTOUVROW_NEON 793 #ifdef HAS_UYVYTOUVROW_NEON
790 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) 794 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15)
791 #endif 795 #endif
792 #undef ANY12S 796 #undef ANY12S
793 797
794 #ifdef __cplusplus 798 #ifdef __cplusplus
795 } // extern "C" 799 } // extern "C"
796 } // namespace libyuv 800 } // namespace libyuv
797 #endif 801 #endif
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | source/row_gcc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698