| 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 30 matching lines...) Expand all Loading... |
| 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 #endif | 49 #endif |
| 50 #ifdef HAS_I422ALPHATOARGBROW_AVX2 | 50 #ifdef HAS_I422ALPHATOARGBROW_AVX2 |
| 51 ANY41C(I422AlphaToARGBRow_Any_AVX2, I422AlphaToARGBRow_AVX2, 1, 0, 4, 7) | 51 ANY41C(I422AlphaToARGBRow_Any_AVX2, I422AlphaToARGBRow_AVX2, 1, 0, 4, 15) |
| 52 #endif |
| 53 #ifdef HAS_I422ALPHATOARGBROW_NEON |
| 54 ANY41C(I422AlphaToARGBRow_Any_NEON, I422AlphaToARGBRow_NEON, 1, 0, 4, 7) |
| 52 #endif | 55 #endif |
| 53 #undef ANY41C | 56 #undef ANY41C |
| 54 | 57 |
| 55 // Any 3 planes to 1. | 58 // Any 3 planes to 1. |
| 56 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ | 59 #define ANY31(NAMEANY, ANY_SIMD, UVSHIFT, DUVSHIFT, BPP, MASK) \ |
| 57 void NAMEANY(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, \ | 60 void NAMEANY(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, \ |
| 58 uint8* dst_ptr, int width) { \ | 61 uint8* dst_ptr, int width) { \ |
| 59 SIMD_ALIGNED(uint8 temp[64 * 4]); \ | 62 SIMD_ALIGNED(uint8 temp[64 * 4]); \ |
| 60 memset(temp, 0, 64 * 3); /* for YUY2 and msan */ \ | 63 memset(temp, 0, 64 * 3); /* for YUY2 and msan */ \ |
| 61 int r = width & MASK; \ | 64 int r = width & MASK; \ |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 #endif | 803 #endif |
| 801 #ifdef HAS_UYVYTOUVROW_NEON | 804 #ifdef HAS_UYVYTOUVROW_NEON |
| 802 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) | 805 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) |
| 803 #endif | 806 #endif |
| 804 #undef ANY12S | 807 #undef ANY12S |
| 805 | 808 |
| 806 #ifdef __cplusplus | 809 #ifdef __cplusplus |
| 807 } // extern "C" | 810 } // extern "C" |
| 808 } // namespace libyuv | 811 } // namespace libyuv |
| 809 #endif | 812 #endif |
| OLD | NEW |