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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 #define HAS_ARGBTOYJROW_AVX2 | 199 #define HAS_ARGBTOYJROW_AVX2 |
200 #define HAS_ARGBTOYROW_AVX2 | 200 #define HAS_ARGBTOYROW_AVX2 |
201 #define HAS_COPYROW_AVX | 201 #define HAS_COPYROW_AVX |
202 #define HAS_H422TOARGBROW_AVX2 | 202 #define HAS_H422TOARGBROW_AVX2 |
203 #define HAS_I400TOARGBROW_AVX2 | 203 #define HAS_I400TOARGBROW_AVX2 |
204 #if !(defined(_DEBUG) && defined(__i386__)) | 204 #if !(defined(_DEBUG) && defined(__i386__)) |
205 // TODO(fbarchard): fix build error on android_full_debug=1 | 205 // TODO(fbarchard): fix build error on android_full_debug=1 |
206 // https://code.google.com/p/libyuv/issues/detail?id=517 | 206 // https://code.google.com/p/libyuv/issues/detail?id=517 |
207 #define HAS_I422ALPHATOARGBROW_AVX2 | 207 #define HAS_I422ALPHATOARGBROW_AVX2 |
208 #endif | 208 #endif |
209 #define HAS_I444TOARGBROW_AVX2 | 209 #define HAS_I422TOARGB1555ROW_AVX2 |
| 210 #define HAS_I422TOARGB4444ROW_AVX2 |
210 #define HAS_I422TOARGBROW_AVX2 | 211 #define HAS_I422TOARGBROW_AVX2 |
211 #define HAS_I422TORGB24ROW_AVX2 | 212 #define HAS_I422TORGB24ROW_AVX2 |
| 213 #define HAS_I422TORGB565ROW_AVX2 |
212 #define HAS_I422TORGBAROW_AVX2 | 214 #define HAS_I422TORGBAROW_AVX2 |
| 215 #define HAS_I444TOARGBROW_AVX2 |
213 #define HAS_INTERPOLATEROW_AVX2 | 216 #define HAS_INTERPOLATEROW_AVX2 |
214 #define HAS_J422TOARGBROW_AVX2 | 217 #define HAS_J422TOARGBROW_AVX2 |
215 #define HAS_MERGEUVROW_AVX2 | 218 #define HAS_MERGEUVROW_AVX2 |
216 #define HAS_MIRRORROW_AVX2 | 219 #define HAS_MIRRORROW_AVX2 |
217 #define HAS_NV12TOARGBROW_AVX2 | 220 #define HAS_NV12TOARGBROW_AVX2 |
| 221 #define HAS_NV12TORGB565ROW_AVX2 |
218 #define HAS_NV21TOARGBROW_AVX2 | 222 #define HAS_NV21TOARGBROW_AVX2 |
219 #define HAS_SPLITUVROW_AVX2 | 223 #define HAS_SPLITUVROW_AVX2 |
220 #define HAS_UYVYTOARGBROW_AVX2 | 224 #define HAS_UYVYTOARGBROW_AVX2 |
221 #define HAS_UYVYTOUV422ROW_AVX2 | 225 #define HAS_UYVYTOUV422ROW_AVX2 |
222 #define HAS_UYVYTOUVROW_AVX2 | 226 #define HAS_UYVYTOUVROW_AVX2 |
223 #define HAS_UYVYTOYROW_AVX2 | 227 #define HAS_UYVYTOYROW_AVX2 |
224 #define HAS_YUY2TOARGBROW_AVX2 | 228 #define HAS_YUY2TOARGBROW_AVX2 |
225 #define HAS_YUY2TOUV422ROW_AVX2 | 229 #define HAS_YUY2TOUV422ROW_AVX2 |
226 #define HAS_YUY2TOUVROW_AVX2 | 230 #define HAS_YUY2TOUVROW_AVX2 |
227 #define HAS_YUY2TOYROW_AVX2 | 231 #define HAS_YUY2TOYROW_AVX2 |
228 #define HAS_I422TOARGB1555ROW_AVX2 | |
229 #define HAS_I422TOARGB4444ROW_AVX2 | |
230 #define HAS_I422TORGB565ROW_AVX2 | |
231 | 232 |
232 // Effects: | 233 // Effects: |
233 #define HAS_ARGBADDROW_AVX2 | 234 #define HAS_ARGBADDROW_AVX2 |
234 #define HAS_ARGBATTENUATEROW_AVX2 | 235 #define HAS_ARGBATTENUATEROW_AVX2 |
235 #define HAS_ARGBMULTIPLYROW_AVX2 | 236 #define HAS_ARGBMULTIPLYROW_AVX2 |
236 #define HAS_ARGBSUBTRACTROW_AVX2 | 237 #define HAS_ARGBSUBTRACTROW_AVX2 |
237 #define HAS_ARGBUNATTENUATEROW_AVX2 | 238 #define HAS_ARGBUNATTENUATEROW_AVX2 |
238 #define HAS_BLENDPLANEROW_AVX2 | 239 #define HAS_BLENDPLANEROW_AVX2 |
239 #endif | 240 #endif |
240 | 241 |
241 // The following are available for AVX2 Visual C and clangcl 32 bit: | 242 // The following are available for AVX2 Visual C and clangcl 32 bit: |
242 // TODO(fbarchard): Port to gcc. | 243 // TODO(fbarchard): Port to gcc. |
243 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ | 244 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ |
244 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) | 245 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) |
245 #define HAS_ARGB1555TOARGBROW_AVX2 | 246 #define HAS_ARGB1555TOARGBROW_AVX2 |
246 #define HAS_ARGB4444TOARGBROW_AVX2 | 247 #define HAS_ARGB4444TOARGBROW_AVX2 |
247 #define HAS_ARGBTOARGB1555ROW_AVX2 | 248 #define HAS_ARGBTOARGB1555ROW_AVX2 |
248 #define HAS_ARGBTOARGB4444ROW_AVX2 | 249 #define HAS_ARGBTOARGB4444ROW_AVX2 |
249 #define HAS_ARGBTORGB565ROW_AVX2 | 250 #define HAS_ARGBTORGB565ROW_AVX2 |
250 #define HAS_I411TOARGBROW_AVX2 | 251 #define HAS_I411TOARGBROW_AVX2 |
251 #define HAS_J400TOARGBROW_AVX2 | 252 #define HAS_J400TOARGBROW_AVX2 |
252 #define HAS_NV12TORGB565ROW_AVX2 | |
253 #define HAS_RGB565TOARGBROW_AVX2 | 253 #define HAS_RGB565TOARGBROW_AVX2 |
254 #endif | 254 #endif |
255 | 255 |
256 // The following are also available on x64 Visual C. | 256 // The following are also available on x64 Visual C. |
257 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 257 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
258 (!defined(__clang__) || defined(__SSSE3__)) | 258 (!defined(__clang__) || defined(__SSSE3__)) |
259 #define HAS_I422ALPHATOARGBROW_SSSE3 | 259 #define HAS_I422ALPHATOARGBROW_SSSE3 |
260 #define HAS_I422TOARGBROW_SSSE3 | 260 #define HAS_I422TOARGBROW_SSSE3 |
261 #endif | 261 #endif |
262 | 262 |
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1909 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1910 int width, | 1910 int width, |
1911 const uint8* luma, uint32 lumacoeff); | 1911 const uint8* luma, uint32 lumacoeff); |
1912 | 1912 |
1913 #ifdef __cplusplus | 1913 #ifdef __cplusplus |
1914 } // extern "C" | 1914 } // extern "C" |
1915 } // namespace libyuv | 1915 } // namespace libyuv |
1916 #endif | 1916 #endif |
1917 | 1917 |
1918 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1918 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |