| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 #define HAS_UYVYTOARGBROW_SSSE3 | 140 #define HAS_UYVYTOARGBROW_SSSE3 |
| 141 #define HAS_UYVYTOUV422ROW_SSE2 | 141 #define HAS_UYVYTOUV422ROW_SSE2 |
| 142 #define HAS_UYVYTOUVROW_SSE2 | 142 #define HAS_UYVYTOUVROW_SSE2 |
| 143 #define HAS_UYVYTOYROW_SSE2 | 143 #define HAS_UYVYTOYROW_SSE2 |
| 144 #define HAS_YUY2TOARGBROW_SSSE3 | 144 #define HAS_YUY2TOARGBROW_SSSE3 |
| 145 #define HAS_YUY2TOUV422ROW_SSE2 | 145 #define HAS_YUY2TOUV422ROW_SSE2 |
| 146 #define HAS_YUY2TOUVROW_SSE2 | 146 #define HAS_YUY2TOUVROW_SSE2 |
| 147 #define HAS_YUY2TOYROW_SSE2 | 147 #define HAS_YUY2TOYROW_SSE2 |
| 148 #define HAS_I444TOARGBROW_SSSE3 | 148 #define HAS_I444TOARGBROW_SSSE3 |
| 149 #define HAS_I444TOABGRROW_SSSE3 | 149 #define HAS_I444TOABGRROW_SSSE3 |
| 150 #define HAS_I422ALPHATOARGBROW_SSSE3 |
| 151 #define HAS_I422ALPHATOABGRROW_SSSE3 |
| 150 | 152 |
| 151 // Effects: | 153 // Effects: |
| 152 #define HAS_ARGBADDROW_SSE2 | 154 #define HAS_ARGBADDROW_SSE2 |
| 153 #define HAS_ARGBAFFINEROW_SSE2 | 155 #define HAS_ARGBAFFINEROW_SSE2 |
| 154 #define HAS_ARGBATTENUATEROW_SSSE3 | 156 #define HAS_ARGBATTENUATEROW_SSSE3 |
| 155 #define HAS_ARGBBLENDROW_SSSE3 | 157 #define HAS_ARGBBLENDROW_SSSE3 |
| 156 #define HAS_ARGBCOLORMATRIXROW_SSSE3 | 158 #define HAS_ARGBCOLORMATRIXROW_SSSE3 |
| 157 #define HAS_ARGBCOLORTABLEROW_X86 | 159 #define HAS_ARGBCOLORTABLEROW_X86 |
| 158 #define HAS_ARGBCOPYALPHAROW_SSE2 | 160 #define HAS_ARGBCOPYALPHAROW_SSE2 |
| 159 #define HAS_ARGBCOPYYTOALPHAROW_SSE2 | 161 #define HAS_ARGBCOPYYTOALPHAROW_SSE2 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 180 #endif | 182 #endif |
| 181 | 183 |
| 182 // The following are available on x64 Visual C and clangcl. | 184 // The following are available on x64 Visual C and clangcl. |
| 183 // TODO(fbarchard): Port to gcc. | 185 // TODO(fbarchard): Port to gcc. |
| 184 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 186 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
| 185 (!defined(__clang__) || defined(__SSSE3__)) | 187 (!defined(__clang__) || defined(__SSSE3__)) |
| 186 #define HAS_I422TOARGBROW_SSSE3 | 188 #define HAS_I422TOARGBROW_SSSE3 |
| 187 #define HAS_I422TOABGRROW_SSSE3 | 189 #define HAS_I422TOABGRROW_SSSE3 |
| 188 #endif | 190 #endif |
| 189 | 191 |
| 190 | |
| 191 // The following are available on 32 bit x86 Visual C and clangcl. | |
| 192 // TODO(fbarchard): Port to gcc. | |
| 193 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_IX86) | |
| 194 #define HAS_I422ALPHATOARGBROW_SSSE3 | |
| 195 #define HAS_I422ALPHATOABGRROW_SSSE3 | |
| 196 #endif | |
| 197 | |
| 198 // The following are available for AVX2 Visual C and clangcl 32 bit: | 192 // The following are available for AVX2 Visual C and clangcl 32 bit: |
| 199 // TODO(fbarchard): Port to gcc. | 193 // TODO(fbarchard): Port to gcc. |
| 200 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ | 194 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ |
| 201 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) | 195 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) |
| 202 #define HAS_ARGB1555TOARGBROW_AVX2 | 196 #define HAS_ARGB1555TOARGBROW_AVX2 |
| 203 #define HAS_ARGB4444TOARGBROW_AVX2 | 197 #define HAS_ARGB4444TOARGBROW_AVX2 |
| 204 #define HAS_ARGBTOARGB1555ROW_AVX2 | 198 #define HAS_ARGBTOARGB1555ROW_AVX2 |
| 205 #define HAS_ARGBTOARGB4444ROW_AVX2 | 199 #define HAS_ARGBTOARGB4444ROW_AVX2 |
| 206 #define HAS_ARGBTORGB565DITHERROW_AVX2 | 200 #define HAS_ARGBTORGB565DITHERROW_AVX2 |
| 207 #define HAS_ARGBTORGB565DITHERROW_SSE2 | 201 #define HAS_ARGBTORGB565DITHERROW_SSE2 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 #define HAS_SPLITUVROW_AVX2 | 242 #define HAS_SPLITUVROW_AVX2 |
| 249 #define HAS_UYVYTOARGBROW_AVX2 | 243 #define HAS_UYVYTOARGBROW_AVX2 |
| 250 #define HAS_UYVYTOUV422ROW_AVX2 | 244 #define HAS_UYVYTOUV422ROW_AVX2 |
| 251 #define HAS_UYVYTOUVROW_AVX2 | 245 #define HAS_UYVYTOUVROW_AVX2 |
| 252 #define HAS_UYVYTOYROW_AVX2 | 246 #define HAS_UYVYTOYROW_AVX2 |
| 253 #define HAS_YUY2TOARGBROW_AVX2 | 247 #define HAS_YUY2TOARGBROW_AVX2 |
| 254 #define HAS_YUY2TOUV422ROW_AVX2 | 248 #define HAS_YUY2TOUV422ROW_AVX2 |
| 255 #define HAS_YUY2TOUVROW_AVX2 | 249 #define HAS_YUY2TOUVROW_AVX2 |
| 256 #define HAS_YUY2TOYROW_AVX2 | 250 #define HAS_YUY2TOYROW_AVX2 |
| 257 #define HAS_NV12TOARGBROW_AVX2 | 251 #define HAS_NV12TOARGBROW_AVX2 |
| 252 #define HAS_I422ALPHATOARGBROW_AVX2 |
| 253 #define HAS_I422ALPHATOABGRROW_AVX2 |
| 258 | 254 |
| 259 // Effects: | 255 // Effects: |
| 260 #define HAS_ARGBADDROW_AVX2 | 256 #define HAS_ARGBADDROW_AVX2 |
| 261 #define HAS_ARGBATTENUATEROW_AVX2 | 257 #define HAS_ARGBATTENUATEROW_AVX2 |
| 262 #define HAS_ARGBMULTIPLYROW_AVX2 | 258 #define HAS_ARGBMULTIPLYROW_AVX2 |
| 263 #define HAS_ARGBSUBTRACTROW_AVX2 | 259 #define HAS_ARGBSUBTRACTROW_AVX2 |
| 264 #define HAS_ARGBUNATTENUATEROW_AVX2 | 260 #define HAS_ARGBUNATTENUATEROW_AVX2 |
| 265 #endif | 261 #endif |
| 266 | 262 |
| 267 // The following are disabled when SSSE3 is available: | 263 // The following are disabled when SSSE3 is available: |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 uint8* dst_argb, | 1239 uint8* dst_argb, |
| 1244 struct YuvConstants* yuvconstants, | 1240 struct YuvConstants* yuvconstants, |
| 1245 int width); | 1241 int width); |
| 1246 void I422AlphaToABGRRow_SSSE3(const uint8* y_buf, | 1242 void I422AlphaToABGRRow_SSSE3(const uint8* y_buf, |
| 1247 const uint8* u_buf, | 1243 const uint8* u_buf, |
| 1248 const uint8* v_buf, | 1244 const uint8* v_buf, |
| 1249 const uint8* a_buf, | 1245 const uint8* a_buf, |
| 1250 uint8* dst_argb, | 1246 uint8* dst_argb, |
| 1251 struct YuvConstants* yuvconstants, | 1247 struct YuvConstants* yuvconstants, |
| 1252 int width); | 1248 int width); |
| 1249 void I422AlphaToARGBRow_AVX2(const uint8* y_buf, |
| 1250 const uint8* u_buf, |
| 1251 const uint8* v_buf, |
| 1252 const uint8* a_buf, |
| 1253 uint8* dst_argb, |
| 1254 struct YuvConstants* yuvconstants, |
| 1255 int width); |
| 1256 void I422AlphaToABGRRow_AVX2(const uint8* y_buf, |
| 1257 const uint8* u_buf, |
| 1258 const uint8* v_buf, |
| 1259 const uint8* a_buf, |
| 1260 uint8* dst_argb, |
| 1261 struct YuvConstants* yuvconstants, |
| 1262 int width); |
| 1253 void I422ToARGBRow_SSSE3(const uint8* src_y, | 1263 void I422ToARGBRow_SSSE3(const uint8* src_y, |
| 1254 const uint8* src_u, | 1264 const uint8* src_u, |
| 1255 const uint8* src_v, | 1265 const uint8* src_v, |
| 1256 uint8* dst_argb, | 1266 uint8* dst_argb, |
| 1257 struct YuvConstants* yuvconstants, | 1267 struct YuvConstants* yuvconstants, |
| 1258 int width); | 1268 int width); |
| 1259 void I422ToABGRRow_SSSE3(const uint8* src_y, | 1269 void I422ToABGRRow_SSSE3(const uint8* src_y, |
| 1260 const uint8* src_u, | 1270 const uint8* src_u, |
| 1261 const uint8* src_v, | 1271 const uint8* src_v, |
| 1262 uint8* dst_argb, | 1272 uint8* dst_argb, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 uint8* dst_argb, | 1459 uint8* dst_argb, |
| 1450 struct YuvConstants* yuvconstants, | 1460 struct YuvConstants* yuvconstants, |
| 1451 int width); | 1461 int width); |
| 1452 void I422AlphaToABGRRow_Any_SSSE3(const uint8* y_buf, | 1462 void I422AlphaToABGRRow_Any_SSSE3(const uint8* y_buf, |
| 1453 const uint8* u_buf, | 1463 const uint8* u_buf, |
| 1454 const uint8* v_buf, | 1464 const uint8* v_buf, |
| 1455 const uint8* a_buf, | 1465 const uint8* a_buf, |
| 1456 uint8* dst_abgr, | 1466 uint8* dst_abgr, |
| 1457 struct YuvConstants* yuvconstants, | 1467 struct YuvConstants* yuvconstants, |
| 1458 int width); | 1468 int width); |
| 1469 void I422AlphaToARGBRow_Any_AVX2(const uint8* y_buf, |
| 1470 const uint8* u_buf, |
| 1471 const uint8* v_buf, |
| 1472 const uint8* a_buf, |
| 1473 uint8* dst_argb, |
| 1474 struct YuvConstants* yuvconstants, |
| 1475 int width); |
| 1476 void I422AlphaToABGRRow_Any_AVX2(const uint8* y_buf, |
| 1477 const uint8* u_buf, |
| 1478 const uint8* v_buf, |
| 1479 const uint8* a_buf, |
| 1480 uint8* dst_abgr, |
| 1481 struct YuvConstants* yuvconstants, |
| 1482 int width); |
| 1459 void I411ToARGBRow_Any_SSSE3(const uint8* src_y, | 1483 void I411ToARGBRow_Any_SSSE3(const uint8* src_y, |
| 1460 const uint8* src_u, | 1484 const uint8* src_u, |
| 1461 const uint8* src_v, | 1485 const uint8* src_v, |
| 1462 uint8* dst_argb, | 1486 uint8* dst_argb, |
| 1463 struct YuvConstants* yuvconstants, | 1487 struct YuvConstants* yuvconstants, |
| 1464 int width); | 1488 int width); |
| 1465 void I411ToARGBRow_Any_AVX2(const uint8* src_y, | 1489 void I411ToARGBRow_Any_AVX2(const uint8* src_y, |
| 1466 const uint8* src_u, | 1490 const uint8* src_u, |
| 1467 const uint8* src_v, | 1491 const uint8* src_v, |
| 1468 uint8* dst_argb, | 1492 uint8* dst_argb, |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 2113 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
| 2090 int width, | 2114 int width, |
| 2091 const uint8* luma, uint32 lumacoeff); | 2115 const uint8* luma, uint32 lumacoeff); |
| 2092 | 2116 |
| 2093 #ifdef __cplusplus | 2117 #ifdef __cplusplus |
| 2094 } // extern "C" | 2118 } // extern "C" |
| 2095 } // namespace libyuv | 2119 } // namespace libyuv |
| 2096 #endif | 2120 #endif |
| 2097 | 2121 |
| 2098 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 2122 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
| OLD | NEW |