| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 469 #ifdef HAS_ARGBEXTRACTALPHAROW_SSE2 |
| 470 ANY11(ARGBExtractAlphaRow_Any_SSE2, ARGBExtractAlphaRow_SSE2, 0, 4, 1, 7) | 470 ANY11(ARGBExtractAlphaRow_Any_SSE2, ARGBExtractAlphaRow_SSE2, 0, 4, 1, 7) |
| 471 #endif | 471 #endif |
| 472 #ifdef HAS_ARGBEXTRACTALPHAROW_NEON | 472 #ifdef HAS_ARGBEXTRACTALPHAROW_NEON |
| 473 ANY11(ARGBExtractAlphaRow_Any_NEON, ARGBExtractAlphaRow_NEON, 0, 4, 1, 7) | 473 ANY11(ARGBExtractAlphaRow_Any_NEON, ARGBExtractAlphaRow_NEON, 0, 4, 1, 15) |
| 474 #endif | 474 #endif |
| 475 #undef ANY11 | 475 #undef ANY11 |
| 476 | 476 |
| 477 // Any 1 to 1 blended. Destination is read, modify, write. | 477 // Any 1 to 1 blended. Destination is read, modify, write. |
| 478 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ | 478 #define ANY11B(NAMEANY, ANY_SIMD, UVSHIFT, SBPP, BPP, MASK) \ |
| 479 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \ | 479 void NAMEANY(const uint8* src_ptr, uint8* dst_ptr, int width) { \ |
| 480 SIMD_ALIGNED(uint8 temp[128 * 2]); \ | 480 SIMD_ALIGNED(uint8 temp[128 * 2]); \ |
| 481 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \ | 481 memset(temp, 0, 128 * 2); /* for YUY2 and msan */ \ |
| 482 int r = width & MASK; \ | 482 int r = width & MASK; \ |
| 483 int n = width & ~MASK; \ | 483 int n = width & ~MASK; \ |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 #endif | 815 #endif |
| 816 #ifdef HAS_UYVYTOUVROW_NEON | 816 #ifdef HAS_UYVYTOUVROW_NEON |
| 817 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) | 817 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) |
| 818 #endif | 818 #endif |
| 819 #undef ANY12S | 819 #undef ANY12S |
| 820 | 820 |
| 821 #ifdef __cplusplus | 821 #ifdef __cplusplus |
| 822 } // extern "C" | 822 } // extern "C" |
| 823 } // namespace libyuv | 823 } // namespace libyuv |
| 824 #endif | 824 #endif |
| OLD | NEW |