| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #define HAS_ARGBTORGB565ROW_AVX2 | 245 #define HAS_ARGBTORGB565ROW_AVX2 |
| 246 #define HAS_I411TOARGBROW_AVX2 | 246 #define HAS_I411TOARGBROW_AVX2 |
| 247 #define HAS_I422TOARGB1555ROW_AVX2 | 247 #define HAS_I422TOARGB1555ROW_AVX2 |
| 248 #define HAS_I422TOARGB4444ROW_AVX2 | 248 #define HAS_I422TOARGB4444ROW_AVX2 |
| 249 #define HAS_I422TORGB565ROW_AVX2 | 249 #define HAS_I422TORGB565ROW_AVX2 |
| 250 #define HAS_J400TOARGBROW_AVX2 | 250 #define HAS_J400TOARGBROW_AVX2 |
| 251 #define HAS_NV12TORGB565ROW_AVX2 | 251 #define HAS_NV12TORGB565ROW_AVX2 |
| 252 #define HAS_RGB565TOARGBROW_AVX2 | 252 #define HAS_RGB565TOARGBROW_AVX2 |
| 253 #endif | 253 #endif |
| 254 | 254 |
| 255 // The following are available for 32 bit Visual C and clangcl 32 bit: |
| 256 // TODO(fbarchard): Port to gcc. |
| 257 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) |
| 258 #define HAS_BLENDPLANEROW_SSSE3 |
| 259 #endif |
| 260 |
| 255 // The following are also available on x64 Visual C. | 261 // The following are also available on x64 Visual C. |
| 256 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 262 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
| 257 (!defined(__clang__) || defined(__SSSE3__)) | 263 (!defined(__clang__) || defined(__SSSE3__)) |
| 258 #define HAS_I422ALPHATOARGBROW_SSSE3 | 264 #define HAS_I422ALPHATOARGBROW_SSSE3 |
| 259 #define HAS_I422TOARGBROW_SSSE3 | 265 #define HAS_I422TOARGBROW_SSSE3 |
| 260 #endif | 266 #endif |
| 261 | 267 |
| 262 // The following are available on Neon platforms: | 268 // The following are available on Neon platforms: |
| 263 #if !defined(LIBYUV_DISABLE_NEON) && \ | 269 #if !defined(LIBYUV_DISABLE_NEON) && \ |
| 264 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) | 270 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) |
| (...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 void I400ToARGBRow_Any_NEON(const uint8* src_y, uint8* dst_argb, int width); | 1453 void I400ToARGBRow_Any_NEON(const uint8* src_y, uint8* dst_argb, int width); |
| 1448 | 1454 |
| 1449 // ARGB preattenuated alpha blend. | 1455 // ARGB preattenuated alpha blend. |
| 1450 void ARGBBlendRow_SSSE3(const uint8* src_argb, const uint8* src_argb1, | 1456 void ARGBBlendRow_SSSE3(const uint8* src_argb, const uint8* src_argb1, |
| 1451 uint8* dst_argb, int width); | 1457 uint8* dst_argb, int width); |
| 1452 void ARGBBlendRow_NEON(const uint8* src_argb, const uint8* src_argb1, | 1458 void ARGBBlendRow_NEON(const uint8* src_argb, const uint8* src_argb1, |
| 1453 uint8* dst_argb, int width); | 1459 uint8* dst_argb, int width); |
| 1454 void ARGBBlendRow_C(const uint8* src_argb, const uint8* src_argb1, | 1460 void ARGBBlendRow_C(const uint8* src_argb, const uint8* src_argb1, |
| 1455 uint8* dst_argb, int width); | 1461 uint8* dst_argb, int width); |
| 1456 | 1462 |
| 1463 // Unattenuated planar alpha blend. |
| 1464 void BlendPlaneRow_SSSE3(const uint8* src0, const uint8* src1, |
| 1465 const uint8* alpha, uint8* dst, int width); |
| 1466 void BlendPlaneRow_C(const uint8* src0, const uint8* src1, |
| 1467 const uint8* alpha, uint8* dst, int width); |
| 1468 |
| 1457 // ARGB multiply images. Same API as Blend, but these require | 1469 // ARGB multiply images. Same API as Blend, but these require |
| 1458 // pointer and width alignment for SSE2. | 1470 // pointer and width alignment for SSE2. |
| 1459 void ARGBMultiplyRow_C(const uint8* src_argb, const uint8* src_argb1, | 1471 void ARGBMultiplyRow_C(const uint8* src_argb, const uint8* src_argb1, |
| 1460 uint8* dst_argb, int width); | 1472 uint8* dst_argb, int width); |
| 1461 void ARGBMultiplyRow_SSE2(const uint8* src_argb, const uint8* src_argb1, | 1473 void ARGBMultiplyRow_SSE2(const uint8* src_argb, const uint8* src_argb1, |
| 1462 uint8* dst_argb, int width); | 1474 uint8* dst_argb, int width); |
| 1463 void ARGBMultiplyRow_Any_SSE2(const uint8* src_argb, const uint8* src_argb1, | 1475 void ARGBMultiplyRow_Any_SSE2(const uint8* src_argb, const uint8* src_argb1, |
| 1464 uint8* dst_argb, int width); | 1476 uint8* dst_argb, int width); |
| 1465 void ARGBMultiplyRow_AVX2(const uint8* src_argb, const uint8* src_argb1, | 1477 void ARGBMultiplyRow_AVX2(const uint8* src_argb, const uint8* src_argb1, |
| 1466 uint8* dst_argb, int width); | 1478 uint8* dst_argb, int width); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1917 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1929 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
| 1918 int width, | 1930 int width, |
| 1919 const uint8* luma, uint32 lumacoeff); | 1931 const uint8* luma, uint32 lumacoeff); |
| 1920 | 1932 |
| 1921 #ifdef __cplusplus | 1933 #ifdef __cplusplus |
| 1922 } // extern "C" | 1934 } // extern "C" |
| 1923 } // namespace libyuv | 1935 } // namespace libyuv |
| 1924 #endif | 1936 #endif |
| 1925 | 1937 |
| 1926 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1938 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
| OLD | NEW |