| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #define HAS_ARGBTOYJROW_SSSE3 | 100 #define HAS_ARGBTOYJROW_SSSE3 |
| 101 #define HAS_ARGBTOYROW_SSSE3 | 101 #define HAS_ARGBTOYROW_SSSE3 |
| 102 #define HAS_BGRATOUVROW_SSSE3 | 102 #define HAS_BGRATOUVROW_SSSE3 |
| 103 #define HAS_BGRATOYROW_SSSE3 | 103 #define HAS_BGRATOYROW_SSSE3 |
| 104 #define HAS_COPYROW_ERMS | 104 #define HAS_COPYROW_ERMS |
| 105 #define HAS_COPYROW_SSE2 | 105 #define HAS_COPYROW_SSE2 |
| 106 #define HAS_H422TOABGRROW_SSSE3 | 106 #define HAS_H422TOABGRROW_SSSE3 |
| 107 #define HAS_H422TOARGBROW_SSSE3 | 107 #define HAS_H422TOARGBROW_SSSE3 |
| 108 #define HAS_I400TOARGBROW_SSE2 | 108 #define HAS_I400TOARGBROW_SSE2 |
| 109 #define HAS_I411TOARGBROW_SSSE3 | 109 #define HAS_I411TOARGBROW_SSSE3 |
| 110 #define HAS_I422ALPHATOABGRROW_SSSE3 | |
| 111 #define HAS_I422ALPHATOARGBROW_SSSE3 | 110 #define HAS_I422ALPHATOARGBROW_SSSE3 |
| 112 #define HAS_I422TOABGRROW_SSSE3 | 111 #define HAS_I422TOABGRROW_SSSE3 |
| 113 #define HAS_I422TOARGB1555ROW_SSSE3 | 112 #define HAS_I422TOARGB1555ROW_SSSE3 |
| 114 #define HAS_I422TOARGB4444ROW_SSSE3 | 113 #define HAS_I422TOARGB4444ROW_SSSE3 |
| 115 #define HAS_I422TOARGBROW_SSSE3 | 114 #define HAS_I422TOARGBROW_SSSE3 |
| 116 #define HAS_I422TOBGRAROW_SSSE3 | 115 #define HAS_I422TOBGRAROW_SSSE3 |
| 117 #define HAS_I422TORAWROW_SSSE3 | 116 #define HAS_I422TORAWROW_SSSE3 |
| 118 #define HAS_I422TORGB24ROW_SSSE3 | 117 #define HAS_I422TORGB24ROW_SSSE3 |
| 119 #define HAS_I422TORGB565ROW_SSSE3 | 118 #define HAS_I422TORGB565ROW_SSSE3 |
| 120 #define HAS_I422TORGBAROW_SSSE3 | 119 #define HAS_I422TORGBAROW_SSSE3 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 #define HAS_ARGBPOLYNOMIALROW_AVX2 | 191 #define HAS_ARGBPOLYNOMIALROW_AVX2 |
| 193 #define HAS_ARGBSHUFFLEROW_AVX2 | 192 #define HAS_ARGBSHUFFLEROW_AVX2 |
| 194 #define HAS_ARGBTORGB565DITHERROW_AVX2 | 193 #define HAS_ARGBTORGB565DITHERROW_AVX2 |
| 195 #define HAS_ARGBTOUVROW_AVX2 | 194 #define HAS_ARGBTOUVROW_AVX2 |
| 196 #define HAS_ARGBTOYJROW_AVX2 | 195 #define HAS_ARGBTOYJROW_AVX2 |
| 197 #define HAS_ARGBTOYROW_AVX2 | 196 #define HAS_ARGBTOYROW_AVX2 |
| 198 #define HAS_COPYROW_AVX | 197 #define HAS_COPYROW_AVX |
| 199 #define HAS_H422TOABGRROW_AVX2 | 198 #define HAS_H422TOABGRROW_AVX2 |
| 200 #define HAS_H422TOARGBROW_AVX2 | 199 #define HAS_H422TOARGBROW_AVX2 |
| 201 #define HAS_I400TOARGBROW_AVX2 | 200 #define HAS_I400TOARGBROW_AVX2 |
| 202 #define HAS_I422ALPHATOABGRROW_AVX2 | |
| 203 #define HAS_I422ALPHATOARGBROW_AVX2 | 201 #define HAS_I422ALPHATOARGBROW_AVX2 |
| 204 #define HAS_I422TOABGRROW_AVX2 | 202 #define HAS_I422TOABGRROW_AVX2 |
| 205 #define HAS_I422TOARGBROW_AVX2 | 203 #define HAS_I422TOARGBROW_AVX2 |
| 206 #define HAS_I422TOBGRAROW_AVX2 | 204 #define HAS_I422TOBGRAROW_AVX2 |
| 207 #define HAS_I422TORAWROW_AVX2 | 205 #define HAS_I422TORAWROW_AVX2 |
| 208 #define HAS_I422TORGB24ROW_AVX2 | 206 #define HAS_I422TORGB24ROW_AVX2 |
| 209 #define HAS_I422TORGBAROW_AVX2 | 207 #define HAS_I422TORGBAROW_AVX2 |
| 210 #define HAS_INTERPOLATEROW_AVX2 | 208 #define HAS_INTERPOLATEROW_AVX2 |
| 211 #define HAS_J422TOABGRROW_AVX2 | 209 #define HAS_J422TOABGRROW_AVX2 |
| 212 #define HAS_J422TOARGBROW_AVX2 | 210 #define HAS_J422TOARGBROW_AVX2 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 #define HAS_I422TORGB565ROW_AVX2 | 245 #define HAS_I422TORGB565ROW_AVX2 |
| 248 #define HAS_I444TOARGBROW_AVX2 | 246 #define HAS_I444TOARGBROW_AVX2 |
| 249 #define HAS_J400TOARGBROW_AVX2 | 247 #define HAS_J400TOARGBROW_AVX2 |
| 250 #define HAS_NV12TORGB565ROW_AVX2 | 248 #define HAS_NV12TORGB565ROW_AVX2 |
| 251 #define HAS_RGB565TOARGBROW_AVX2 | 249 #define HAS_RGB565TOARGBROW_AVX2 |
| 252 #endif | 250 #endif |
| 253 | 251 |
| 254 // The following are also available on x64 Visual C. | 252 // The following are also available on x64 Visual C. |
| 255 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 253 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
| 256 (!defined(__clang__) || defined(__SSSE3__)) | 254 (!defined(__clang__) || defined(__SSSE3__)) |
| 257 #define HAS_I422ALPHATOABGRROW_SSSE3 | |
| 258 #define HAS_I422ALPHATOARGBROW_SSSE3 | 255 #define HAS_I422ALPHATOARGBROW_SSSE3 |
| 259 #define HAS_I422TOABGRROW_SSSE3 | 256 #define HAS_I422TOABGRROW_SSSE3 |
| 260 #define HAS_I422TOARGBROW_SSSE3 | 257 #define HAS_I422TOARGBROW_SSSE3 |
| 261 #endif | 258 #endif |
| 262 | 259 |
| 263 // The following are available on Neon platforms: | 260 // The following are available on Neon platforms: |
| 264 #if !defined(LIBYUV_DISABLE_NEON) && \ | 261 #if !defined(LIBYUV_DISABLE_NEON) && \ |
| 265 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) | 262 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) |
| 266 #define HAS_ABGRTOUVROW_NEON | 263 #define HAS_ABGRTOUVROW_NEON |
| 267 #define HAS_ABGRTOYROW_NEON | 264 #define HAS_ABGRTOYROW_NEON |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 uint8* dst_argb, | 1043 uint8* dst_argb, |
| 1047 const struct YuvConstants* yuvconstants, | 1044 const struct YuvConstants* yuvconstants, |
| 1048 int width); | 1045 int width); |
| 1049 void I422AlphaToARGBRow_C(const uint8* y_buf, | 1046 void I422AlphaToARGBRow_C(const uint8* y_buf, |
| 1050 const uint8* u_buf, | 1047 const uint8* u_buf, |
| 1051 const uint8* v_buf, | 1048 const uint8* v_buf, |
| 1052 const uint8* a_buf, | 1049 const uint8* a_buf, |
| 1053 uint8* dst_argb, | 1050 uint8* dst_argb, |
| 1054 const struct YuvConstants* yuvconstants, | 1051 const struct YuvConstants* yuvconstants, |
| 1055 int width); | 1052 int width); |
| 1056 void I422AlphaToABGRRow_C(const uint8* y_buf, | |
| 1057 const uint8* u_buf, | |
| 1058 const uint8* v_buf, | |
| 1059 const uint8* a_buf, | |
| 1060 uint8* dst_argb, | |
| 1061 const struct YuvConstants* yuvconstants, | |
| 1062 int width); | |
| 1063 void I422ToABGRRow_C(const uint8* src_y, | 1053 void I422ToABGRRow_C(const uint8* src_y, |
| 1064 const uint8* src_u, | 1054 const uint8* src_u, |
| 1065 const uint8* src_v, | 1055 const uint8* src_v, |
| 1066 uint8* dst_argb, | 1056 uint8* dst_argb, |
| 1067 const struct YuvConstants* yuvconstants, | 1057 const struct YuvConstants* yuvconstants, |
| 1068 int width); | 1058 int width); |
| 1069 void I411ToARGBRow_C(const uint8* src_y, | 1059 void I411ToARGBRow_C(const uint8* src_y, |
| 1070 const uint8* src_u, | 1060 const uint8* src_u, |
| 1071 const uint8* src_v, | 1061 const uint8* src_v, |
| 1072 uint8* dst_argb, | 1062 uint8* dst_argb, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 uint8* dst_argb, | 1199 uint8* dst_argb, |
| 1210 const struct YuvConstants* yuvconstants, | 1200 const struct YuvConstants* yuvconstants, |
| 1211 int width); | 1201 int width); |
| 1212 void I422AlphaToARGBRow_SSSE3(const uint8* y_buf, | 1202 void I422AlphaToARGBRow_SSSE3(const uint8* y_buf, |
| 1213 const uint8* u_buf, | 1203 const uint8* u_buf, |
| 1214 const uint8* v_buf, | 1204 const uint8* v_buf, |
| 1215 const uint8* a_buf, | 1205 const uint8* a_buf, |
| 1216 uint8* dst_argb, | 1206 uint8* dst_argb, |
| 1217 const struct YuvConstants* yuvconstants, | 1207 const struct YuvConstants* yuvconstants, |
| 1218 int width); | 1208 int width); |
| 1219 void I422AlphaToABGRRow_SSSE3(const uint8* y_buf, | |
| 1220 const uint8* u_buf, | |
| 1221 const uint8* v_buf, | |
| 1222 const uint8* a_buf, | |
| 1223 uint8* dst_argb, | |
| 1224 const struct YuvConstants* yuvconstants, | |
| 1225 int width); | |
| 1226 void I422AlphaToARGBRow_AVX2(const uint8* y_buf, | 1209 void I422AlphaToARGBRow_AVX2(const uint8* y_buf, |
| 1227 const uint8* u_buf, | 1210 const uint8* u_buf, |
| 1228 const uint8* v_buf, | 1211 const uint8* v_buf, |
| 1229 const uint8* a_buf, | 1212 const uint8* a_buf, |
| 1230 uint8* dst_argb, | 1213 uint8* dst_argb, |
| 1231 const struct YuvConstants* yuvconstants, | 1214 const struct YuvConstants* yuvconstants, |
| 1232 int width); | 1215 int width); |
| 1233 void I422AlphaToABGRRow_AVX2(const uint8* y_buf, | |
| 1234 const uint8* u_buf, | |
| 1235 const uint8* v_buf, | |
| 1236 const uint8* a_buf, | |
| 1237 uint8* dst_argb, | |
| 1238 const struct YuvConstants* yuvconstants, | |
| 1239 int width); | |
| 1240 void I422ToARGBRow_SSSE3(const uint8* src_y, | 1216 void I422ToARGBRow_SSSE3(const uint8* src_y, |
| 1241 const uint8* src_u, | 1217 const uint8* src_u, |
| 1242 const uint8* src_v, | 1218 const uint8* src_v, |
| 1243 uint8* dst_argb, | 1219 uint8* dst_argb, |
| 1244 const struct YuvConstants* yuvconstants, | 1220 const struct YuvConstants* yuvconstants, |
| 1245 int width); | 1221 int width); |
| 1246 void I422ToABGRRow_SSSE3(const uint8* src_y, | 1222 void I422ToABGRRow_SSSE3(const uint8* src_y, |
| 1247 const uint8* src_u, | 1223 const uint8* src_u, |
| 1248 const uint8* src_v, | 1224 const uint8* src_v, |
| 1249 uint8* dst_argb, | 1225 uint8* dst_argb, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 uint8* dst_argb, | 1403 uint8* dst_argb, |
| 1428 const struct YuvConstants* yuvconstants, | 1404 const struct YuvConstants* yuvconstants, |
| 1429 int width); | 1405 int width); |
| 1430 void I422AlphaToARGBRow_Any_SSSE3(const uint8* y_buf, | 1406 void I422AlphaToARGBRow_Any_SSSE3(const uint8* y_buf, |
| 1431 const uint8* u_buf, | 1407 const uint8* u_buf, |
| 1432 const uint8* v_buf, | 1408 const uint8* v_buf, |
| 1433 const uint8* a_buf, | 1409 const uint8* a_buf, |
| 1434 uint8* dst_argb, | 1410 uint8* dst_argb, |
| 1435 const struct YuvConstants* yuvconstants, | 1411 const struct YuvConstants* yuvconstants, |
| 1436 int width); | 1412 int width); |
| 1437 void I422AlphaToABGRRow_Any_SSSE3(const uint8* y_buf, | |
| 1438 const uint8* u_buf, | |
| 1439 const uint8* v_buf, | |
| 1440 const uint8* a_buf, | |
| 1441 uint8* dst_abgr, | |
| 1442 const struct YuvConstants* yuvconstants, | |
| 1443 int width); | |
| 1444 void I422AlphaToARGBRow_Any_AVX2(const uint8* y_buf, | 1413 void I422AlphaToARGBRow_Any_AVX2(const uint8* y_buf, |
| 1445 const uint8* u_buf, | 1414 const uint8* u_buf, |
| 1446 const uint8* v_buf, | 1415 const uint8* v_buf, |
| 1447 const uint8* a_buf, | 1416 const uint8* a_buf, |
| 1448 uint8* dst_argb, | 1417 uint8* dst_argb, |
| 1449 const struct YuvConstants* yuvconstants, | 1418 const struct YuvConstants* yuvconstants, |
| 1450 int width); | 1419 int width); |
| 1451 void I422AlphaToABGRRow_Any_AVX2(const uint8* y_buf, | |
| 1452 const uint8* u_buf, | |
| 1453 const uint8* v_buf, | |
| 1454 const uint8* a_buf, | |
| 1455 uint8* dst_abgr, | |
| 1456 const struct YuvConstants* yuvconstants, | |
| 1457 int width); | |
| 1458 void I411ToARGBRow_Any_SSSE3(const uint8* src_y, | 1420 void I411ToARGBRow_Any_SSSE3(const uint8* src_y, |
| 1459 const uint8* src_u, | 1421 const uint8* src_u, |
| 1460 const uint8* src_v, | 1422 const uint8* src_v, |
| 1461 uint8* dst_argb, | 1423 uint8* dst_argb, |
| 1462 const struct YuvConstants* yuvconstants, | 1424 const struct YuvConstants* yuvconstants, |
| 1463 int width); | 1425 int width); |
| 1464 void I411ToARGBRow_Any_AVX2(const uint8* src_y, | 1426 void I411ToARGBRow_Any_AVX2(const uint8* src_y, |
| 1465 const uint8* src_u, | 1427 const uint8* src_u, |
| 1466 const uint8* src_v, | 1428 const uint8* src_v, |
| 1467 uint8* dst_argb, | 1429 uint8* dst_argb, |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 2068 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
| 2107 int width, | 2069 int width, |
| 2108 const uint8* luma, uint32 lumacoeff); | 2070 const uint8* luma, uint32 lumacoeff); |
| 2109 | 2071 |
| 2110 #ifdef __cplusplus | 2072 #ifdef __cplusplus |
| 2111 } // extern "C" | 2073 } // extern "C" |
| 2112 } // namespace libyuv | 2074 } // namespace libyuv |
| 2113 #endif | 2075 #endif |
| 2114 | 2076 |
| 2115 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 2077 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
| OLD | NEW |