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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 #define HAS_ARGBTORGB565DITHERROW_AVX2 | 193 #define HAS_ARGBTORGB565DITHERROW_AVX2 |
194 #define HAS_ARGBTOUVROW_AVX2 | 194 #define HAS_ARGBTOUVROW_AVX2 |
195 #define HAS_ARGBTOYJROW_AVX2 | 195 #define HAS_ARGBTOYJROW_AVX2 |
196 #define HAS_ARGBTOYROW_AVX2 | 196 #define HAS_ARGBTOYROW_AVX2 |
197 #define HAS_COPYROW_AVX | 197 #define HAS_COPYROW_AVX |
198 #define HAS_H422TOARGBROW_AVX2 | 198 #define HAS_H422TOARGBROW_AVX2 |
199 #define HAS_I400TOARGBROW_AVX2 | 199 #define HAS_I400TOARGBROW_AVX2 |
200 #if !(defined(_DEBUG) && defined(__i386__)) | 200 #if !(defined(_DEBUG) && defined(__i386__)) |
201 // TODO(fbarchard): fix build error on android_full_debug=1 | 201 // TODO(fbarchard): fix build error on android_full_debug=1 |
202 // https://code.google.com/p/libyuv/issues/detail?id=517 | 202 // https://code.google.com/p/libyuv/issues/detail?id=517 |
203 // AVX2 versions fail on gcc. b/522 | 203 #define HAS_I422ALPHATOARGBROW_AVX2 |
204 // #define HAS_I422ALPHATOARGBROW_AVX2 | |
205 #endif | 204 #endif |
206 // AVX2 versions fail on gcc. b/522 | 205 #define HAS_I422TOARGBROW_AVX2 |
207 // #define HAS_I422TOARGBROW_AVX2 | 206 #define HAS_I422TORGB24ROW_AVX2 |
208 // #define HAS_I422TORGB24ROW_AVX2 | 207 #define HAS_I422TORGBAROW_AVX2 |
209 // #define HAS_I422TORGBAROW_AVX2 | |
210 #define HAS_INTERPOLATEROW_AVX2 | 208 #define HAS_INTERPOLATEROW_AVX2 |
211 #define HAS_J422TOARGBROW_AVX2 | 209 #define HAS_J422TOARGBROW_AVX2 |
212 #define HAS_MERGEUVROW_AVX2 | 210 #define HAS_MERGEUVROW_AVX2 |
213 #define HAS_MIRRORROW_AVX2 | 211 #define HAS_MIRRORROW_AVX2 |
214 #define HAS_NV12TOARGBROW_AVX2 | 212 #define HAS_NV12TOARGBROW_AVX2 |
215 #define HAS_NV21TOARGBROW_AVX2 | 213 #define HAS_NV21TOARGBROW_AVX2 |
216 #define HAS_SPLITUVROW_AVX2 | 214 #define HAS_SPLITUVROW_AVX2 |
217 #define HAS_UYVYTOARGBROW_AVX2 | 215 #define HAS_UYVYTOARGBROW_AVX2 |
218 #define HAS_UYVYTOUV422ROW_AVX2 | 216 #define HAS_UYVYTOUV422ROW_AVX2 |
219 #define HAS_UYVYTOUVROW_AVX2 | 217 #define HAS_UYVYTOUVROW_AVX2 |
(...skipping 14 matching lines...) Expand all Loading... |
234 // The following are available for AVX2 Visual C and clangcl 32 bit: | 232 // The following are available for AVX2 Visual C and clangcl 32 bit: |
235 // TODO(fbarchard): Port to gcc. | 233 // TODO(fbarchard): Port to gcc. |
236 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ | 234 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ |
237 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) | 235 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) |
238 #define HAS_ARGB1555TOARGBROW_AVX2 | 236 #define HAS_ARGB1555TOARGBROW_AVX2 |
239 #define HAS_ARGB4444TOARGBROW_AVX2 | 237 #define HAS_ARGB4444TOARGBROW_AVX2 |
240 #define HAS_ARGBTOARGB1555ROW_AVX2 | 238 #define HAS_ARGBTOARGB1555ROW_AVX2 |
241 #define HAS_ARGBTOARGB4444ROW_AVX2 | 239 #define HAS_ARGBTOARGB4444ROW_AVX2 |
242 #define HAS_ARGBTORGB565ROW_AVX2 | 240 #define HAS_ARGBTORGB565ROW_AVX2 |
243 #define HAS_I411TOARGBROW_AVX2 | 241 #define HAS_I411TOARGBROW_AVX2 |
244 // #define HAS_I422TOARGB1555ROW_AVX2 | 242 #define HAS_I422TOARGB1555ROW_AVX2 |
245 // #define HAS_I422TOARGB4444ROW_AVX2 | 243 #define HAS_I422TOARGB4444ROW_AVX2 |
246 // #define HAS_I422TORGB565ROW_AVX2 | 244 #define HAS_I422TORGB565ROW_AVX2 |
247 #define HAS_I444TOARGBROW_AVX2 | 245 #define HAS_I444TOARGBROW_AVX2 |
248 #define HAS_J400TOARGBROW_AVX2 | 246 #define HAS_J400TOARGBROW_AVX2 |
249 #define HAS_NV12TORGB565ROW_AVX2 | 247 #define HAS_NV12TORGB565ROW_AVX2 |
250 #define HAS_RGB565TOARGBROW_AVX2 | 248 #define HAS_RGB565TOARGBROW_AVX2 |
251 #endif | 249 #endif |
252 | 250 |
253 // The following are also available on x64 Visual C. | 251 // The following are also available on x64 Visual C. |
254 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 252 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
255 (!defined(__clang__) || defined(__SSSE3__)) | 253 (!defined(__clang__) || defined(__SSSE3__)) |
256 #define HAS_I422ALPHATOARGBROW_SSSE3 | 254 #define HAS_I422ALPHATOARGBROW_SSSE3 |
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1913 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1916 int width, | 1914 int width, |
1917 const uint8* luma, uint32 lumacoeff); | 1915 const uint8* luma, uint32 lumacoeff); |
1918 | 1916 |
1919 #ifdef __cplusplus | 1917 #ifdef __cplusplus |
1920 } // extern "C" | 1918 } // extern "C" |
1921 } // namespace libyuv | 1919 } // namespace libyuv |
1922 #endif | 1920 #endif |
1923 | 1921 |
1924 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1922 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |