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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 #endif | 467 #endif |
468 #ifdef HAS_ARGBUNATTENUATEROW_AVX2 | 468 #ifdef HAS_ARGBUNATTENUATEROW_AVX2 |
469 ANY11(ARGBUnattenuateRow_Any_AVX2, ARGBUnattenuateRow_AVX2, 0, 4, 4, 7) | 469 ANY11(ARGBUnattenuateRow_Any_AVX2, ARGBUnattenuateRow_AVX2, 0, 4, 4, 7) |
470 #endif | 470 #endif |
471 #ifdef HAS_ARGBATTENUATEROW_NEON | 471 #ifdef HAS_ARGBATTENUATEROW_NEON |
472 ANY11(ARGBAttenuateRow_Any_NEON, ARGBAttenuateRow_NEON, 0, 4, 4, 7) | 472 ANY11(ARGBAttenuateRow_Any_NEON, ARGBAttenuateRow_NEON, 0, 4, 4, 7) |
473 #endif | 473 #endif |
474 #ifdef HAS_ARGBEXTRACTALPHAROW_SSE2 | 474 #ifdef HAS_ARGBEXTRACTALPHAROW_SSE2 |
475 ANY11(ARGBExtractAlphaRow_Any_SSE2, ARGBExtractAlphaRow_SSE2, 0, 4, 1, 7) | 475 ANY11(ARGBExtractAlphaRow_Any_SSE2, ARGBExtractAlphaRow_SSE2, 0, 4, 1, 7) |
476 #endif | 476 #endif |
| 477 #ifdef HAS_ARGBEXTRACTALPHAROW_AVX2 |
| 478 ANY11(ARGBExtractAlphaRow_Any_AVX2, ARGBExtractAlphaRow_AVX2, 0, 4, 1, 32) |
| 479 #endif |
477 #ifdef HAS_ARGBEXTRACTALPHAROW_NEON | 480 #ifdef HAS_ARGBEXTRACTALPHAROW_NEON |
478 ANY11(ARGBExtractAlphaRow_Any_NEON, ARGBExtractAlphaRow_NEON, 0, 4, 1, 15) | 481 ANY11(ARGBExtractAlphaRow_Any_NEON, ARGBExtractAlphaRow_NEON, 0, 4, 1, 15) |
479 #endif | 482 #endif |
480 #undef ANY11 | 483 #undef ANY11 |
481 | 484 |
482 // Any 1 to 1 blended. Destination is read, modify, write. | 485 // Any 1 to 1 blended. Destination is read, modify, write. |
483 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ | 486 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ |
484 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \ | 487 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \ |
485 SIMD_ALIGNED(uint8 temp[128 * 2]); \ | 488 SIMD_ALIGNED(uint8 temp[128 * 2]); \ |
486 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \ | 489 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \ |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 #endif | 843 #endif |
841 #ifdef HAS_UYVYTOUVROW_MSA | 844 #ifdef HAS_UYVYTOUVROW_MSA |
842 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31) | 845 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31) |
843 #endif | 846 #endif |
844 #undef ANY12S | 847 #undef ANY12S |
845 | 848 |
846 #ifdef __cplusplus | 849 #ifdef __cplusplus |
847 } // extern "C" | 850 } // extern "C" |
848 } // namespace libyuv | 851 } // namespace libyuv |
849 #endif | 852 #endif |
OLD | NEW |