| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 #define HAS_J422TOABGRROW_SSSE3 | 120 #define HAS_J422TOABGRROW_SSSE3 |
| 121 #define HAS_H422TOARGBROW_SSSE3 | 121 #define HAS_H422TOARGBROW_SSSE3 |
| 122 #define HAS_H422TOABGRROW_SSSE3 | 122 #define HAS_H422TOABGRROW_SSSE3 |
| 123 #define HAS_MERGEUVROW_SSE2 | 123 #define HAS_MERGEUVROW_SSE2 |
| 124 #define HAS_MIRRORROW_SSE2 | 124 #define HAS_MIRRORROW_SSE2 |
| 125 #define HAS_MIRRORROW_SSSE3 | 125 #define HAS_MIRRORROW_SSSE3 |
| 126 #define HAS_MIRRORROW_UV_SSSE3 | 126 #define HAS_MIRRORROW_UV_SSSE3 |
| 127 #define HAS_MIRRORUVROW_SSSE3 | 127 #define HAS_MIRRORUVROW_SSSE3 |
| 128 #define HAS_NV12TOARGBROW_SSSE3 | 128 #define HAS_NV12TOARGBROW_SSSE3 |
| 129 #define HAS_NV12TORGB565ROW_SSSE3 | 129 #define HAS_NV12TORGB565ROW_SSSE3 |
| 130 #define HAS_NV21TOARGBROW_SSSE3 | |
| 131 #define HAS_NV21TORGB565ROW_SSSE3 | |
| 132 #define HAS_RAWTOARGBROW_SSSE3 | 130 #define HAS_RAWTOARGBROW_SSSE3 |
| 133 #define HAS_RAWTOYROW_SSSE3 | 131 #define HAS_RAWTOYROW_SSSE3 |
| 134 #define HAS_RGB24TOARGBROW_SSSE3 | 132 #define HAS_RGB24TOARGBROW_SSSE3 |
| 135 #define HAS_RGB24TOYROW_SSSE3 | 133 #define HAS_RGB24TOYROW_SSSE3 |
| 136 #define HAS_RGB565TOARGBROW_SSE2 | 134 #define HAS_RGB565TOARGBROW_SSE2 |
| 137 #define HAS_RGBATOUVROW_SSSE3 | 135 #define HAS_RGBATOUVROW_SSSE3 |
| 138 #define HAS_RGBATOYROW_SSSE3 | 136 #define HAS_RGBATOYROW_SSSE3 |
| 139 #define HAS_SETROW_ERMS | 137 #define HAS_SETROW_ERMS |
| 140 #define HAS_SETROW_X86 | 138 #define HAS_SETROW_X86 |
| 141 #define HAS_SPLITUVROW_SSE2 | 139 #define HAS_SPLITUVROW_SSE2 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 #define HAS_ARGBTORGB565ROW_AVX2 | 200 #define HAS_ARGBTORGB565ROW_AVX2 |
| 203 #define HAS_I411TOARGBROW_AVX2 | 201 #define HAS_I411TOARGBROW_AVX2 |
| 204 #define HAS_I422TOARGB1555ROW_AVX2 | 202 #define HAS_I422TOARGB1555ROW_AVX2 |
| 205 #define HAS_I422TOARGB4444ROW_AVX2 | 203 #define HAS_I422TOARGB4444ROW_AVX2 |
| 206 #define HAS_I422TORGB565ROW_AVX2 | 204 #define HAS_I422TORGB565ROW_AVX2 |
| 207 #define HAS_I444TOARGBROW_AVX2 | 205 #define HAS_I444TOARGBROW_AVX2 |
| 208 #define HAS_I444TOABGRROW_AVX2 | 206 #define HAS_I444TOABGRROW_AVX2 |
| 209 #define HAS_J400TOARGBROW_AVX2 | 207 #define HAS_J400TOARGBROW_AVX2 |
| 210 #define HAS_NV12TOARGBROW_AVX2 | 208 #define HAS_NV12TOARGBROW_AVX2 |
| 211 #define HAS_NV12TORGB565ROW_AVX2 | 209 #define HAS_NV12TORGB565ROW_AVX2 |
| 212 #define HAS_NV21TOARGBROW_AVX2 | |
| 213 #define HAS_NV21TORGB565ROW_AVX2 | |
| 214 #define HAS_RGB565TOARGBROW_AVX2 | 210 #define HAS_RGB565TOARGBROW_AVX2 |
| 215 #endif | 211 #endif |
| 216 | 212 |
| 217 // The following are available on all x86 platforms, but | 213 // The following are available on all x86 platforms, but |
| 218 // require VS2012, clang 3.4 or gcc 4.7. | 214 // require VS2012, clang 3.4 or gcc 4.7. |
| 219 // The code supports NaCL but requires a new compiler and validator. | 215 // The code supports NaCL but requires a new compiler and validator. |
| 220 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ | 216 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ |
| 221 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) | 217 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) |
| 222 #define HAS_ARGBCOPYALPHAROW_AVX2 | 218 #define HAS_ARGBCOPYALPHAROW_AVX2 |
| 223 #define HAS_ARGBCOPYYTOALPHAROW_AVX2 | 219 #define HAS_ARGBCOPYYTOALPHAROW_AVX2 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 #define HAS_I422TORGB565ROW_NEON | 310 #define HAS_I422TORGB565ROW_NEON |
| 315 #define HAS_I422TORGBAROW_NEON | 311 #define HAS_I422TORGBAROW_NEON |
| 316 #define HAS_I422TOUYVYROW_NEON | 312 #define HAS_I422TOUYVYROW_NEON |
| 317 #define HAS_I422TOYUY2ROW_NEON | 313 #define HAS_I422TOYUY2ROW_NEON |
| 318 #define HAS_I444TOARGBROW_NEON | 314 #define HAS_I444TOARGBROW_NEON |
| 319 #define HAS_MERGEUVROW_NEON | 315 #define HAS_MERGEUVROW_NEON |
| 320 #define HAS_MIRRORROW_NEON | 316 #define HAS_MIRRORROW_NEON |
| 321 #define HAS_MIRRORUVROW_NEON | 317 #define HAS_MIRRORUVROW_NEON |
| 322 #define HAS_NV12TOARGBROW_NEON | 318 #define HAS_NV12TOARGBROW_NEON |
| 323 #define HAS_NV12TORGB565ROW_NEON | 319 #define HAS_NV12TORGB565ROW_NEON |
| 324 #define HAS_NV21TOARGBROW_NEON | |
| 325 #define HAS_NV21TORGB565ROW_NEON | |
| 326 #define HAS_RAWTOARGBROW_NEON | 320 #define HAS_RAWTOARGBROW_NEON |
| 327 #define HAS_RAWTOUVROW_NEON | 321 #define HAS_RAWTOUVROW_NEON |
| 328 #define HAS_RAWTOYROW_NEON | 322 #define HAS_RAWTOYROW_NEON |
| 329 #define HAS_RGB24TOARGBROW_NEON | 323 #define HAS_RGB24TOARGBROW_NEON |
| 330 #define HAS_RGB24TOUVROW_NEON | 324 #define HAS_RGB24TOUVROW_NEON |
| 331 #define HAS_RGB24TOYROW_NEON | 325 #define HAS_RGB24TOYROW_NEON |
| 332 #define HAS_RGB565TOARGBROW_NEON | 326 #define HAS_RGB565TOARGBROW_NEON |
| 333 #define HAS_RGB565TOUVROW_NEON | 327 #define HAS_RGB565TOUVROW_NEON |
| 334 #define HAS_RGB565TOYROW_NEON | 328 #define HAS_RGB565TOYROW_NEON |
| 335 #define HAS_RGBATOUVROW_NEON | 329 #define HAS_RGBATOUVROW_NEON |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 const uint8* src_u, | 1055 const uint8* src_u, |
| 1062 const uint8* src_v, | 1056 const uint8* src_v, |
| 1063 uint8* dst_argb, | 1057 uint8* dst_argb, |
| 1064 struct YuvConstants* yuvconstants, | 1058 struct YuvConstants* yuvconstants, |
| 1065 int width); | 1059 int width); |
| 1066 void NV12ToARGBRow_C(const uint8* src_y, | 1060 void NV12ToARGBRow_C(const uint8* src_y, |
| 1067 const uint8* src_uv, | 1061 const uint8* src_uv, |
| 1068 uint8* dst_argb, | 1062 uint8* dst_argb, |
| 1069 struct YuvConstants* yuvconstants, | 1063 struct YuvConstants* yuvconstants, |
| 1070 int width); | 1064 int width); |
| 1071 void NV21ToRGB565Row_C(const uint8* src_y, | |
| 1072 const uint8* src_vu, | |
| 1073 uint8* dst_argb, | |
| 1074 struct YuvConstants* yuvconstants, | |
| 1075 int width); | |
| 1076 void NV12ToRGB565Row_C(const uint8* src_y, | 1065 void NV12ToRGB565Row_C(const uint8* src_y, |
| 1077 const uint8* src_uv, | 1066 const uint8* src_uv, |
| 1078 uint8* dst_argb, | 1067 uint8* dst_argb, |
| 1079 struct YuvConstants* yuvconstants, | 1068 struct YuvConstants* yuvconstants, |
| 1080 int width); | 1069 int width); |
| 1081 void YUY2ToARGBRow_C(const uint8* src_yuy2, | 1070 void YUY2ToARGBRow_C(const uint8* src_yuy2, |
| 1082 uint8* dst_argb, | 1071 uint8* dst_argb, |
| 1083 struct YuvConstants* yuvconstants, | 1072 struct YuvConstants* yuvconstants, |
| 1084 int width); | 1073 int width); |
| 1085 void UYVYToARGBRow_C(const uint8* src_uyvy, | 1074 void UYVYToARGBRow_C(const uint8* src_uyvy, |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 const uint8* src_u, | 1415 const uint8* src_u, |
| 1427 const uint8* src_v, | 1416 const uint8* src_v, |
| 1428 uint8* dst_argb, | 1417 uint8* dst_argb, |
| 1429 struct YuvConstants* yuvconstants, | 1418 struct YuvConstants* yuvconstants, |
| 1430 int width); | 1419 int width); |
| 1431 void NV12ToARGBRow_Any_SSSE3(const uint8* src_y, | 1420 void NV12ToARGBRow_Any_SSSE3(const uint8* src_y, |
| 1432 const uint8* src_uv, | 1421 const uint8* src_uv, |
| 1433 uint8* dst_argb, | 1422 uint8* dst_argb, |
| 1434 struct YuvConstants* yuvconstants, | 1423 struct YuvConstants* yuvconstants, |
| 1435 int width); | 1424 int width); |
| 1436 void NV21ToARGBRow_Any_SSSE3(const uint8* src_y, | |
| 1437 const uint8* src_vu, | |
| 1438 uint8* dst_argb, | |
| 1439 struct YuvConstants* yuvconstants, | |
| 1440 int width); | |
| 1441 void NV12ToARGBRow_Any_AVX2(const uint8* src_y, | 1425 void NV12ToARGBRow_Any_AVX2(const uint8* src_y, |
| 1442 const uint8* src_uv, | 1426 const uint8* src_uv, |
| 1443 uint8* dst_argb, | 1427 uint8* dst_argb, |
| 1444 struct YuvConstants* yuvconstants, | 1428 struct YuvConstants* yuvconstants, |
| 1445 int width); | 1429 int width); |
| 1446 void NV21ToARGBRow_Any_AVX2(const uint8* src_y, | |
| 1447 const uint8* src_vu, | |
| 1448 uint8* dst_argb, | |
| 1449 struct YuvConstants* yuvconstants, | |
| 1450 int width); | |
| 1451 void NV12ToRGB565Row_Any_SSSE3(const uint8* src_y, | 1430 void NV12ToRGB565Row_Any_SSSE3(const uint8* src_y, |
| 1452 const uint8* src_uv, | 1431 const uint8* src_uv, |
| 1453 uint8* dst_argb, | 1432 uint8* dst_argb, |
| 1454 struct YuvConstants* yuvconstants, | 1433 struct YuvConstants* yuvconstants, |
| 1455 int width); | 1434 int width); |
| 1456 void NV12ToRGB565Row_Any_AVX2(const uint8* src_y, | 1435 void NV12ToRGB565Row_Any_AVX2(const uint8* src_y, |
| 1457 const uint8* src_uv, | 1436 const uint8* src_uv, |
| 1458 uint8* dst_argb, | 1437 uint8* dst_argb, |
| 1459 struct YuvConstants* yuvconstants, | 1438 struct YuvConstants* yuvconstants, |
| 1460 int width); | 1439 int width); |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2059 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 2038 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
| 2060 int width, | 2039 int width, |
| 2061 const uint8* luma, uint32 lumacoeff); | 2040 const uint8* luma, uint32 lumacoeff); |
| 2062 | 2041 |
| 2063 #ifdef __cplusplus | 2042 #ifdef __cplusplus |
| 2064 } // extern "C" | 2043 } // extern "C" |
| 2065 } // namespace libyuv | 2044 } // namespace libyuv |
| 2066 #endif | 2045 #endif |
| 2067 | 2046 |
| 2068 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 2047 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
| OLD | NEW |