OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2013 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #define HAS_SCALEARGBCOLS_SSE2 | 52 #define HAS_SCALEARGBCOLS_SSE2 |
53 #define HAS_SCALEARGBCOLSUP2_SSE2 | 53 #define HAS_SCALEARGBCOLSUP2_SSE2 |
54 #define HAS_SCALEARGBFILTERCOLS_SSSE3 | 54 #define HAS_SCALEARGBFILTERCOLS_SSSE3 |
55 #define HAS_SCALEARGBROWDOWN2_SSE2 | 55 #define HAS_SCALEARGBROWDOWN2_SSE2 |
56 #define HAS_SCALEARGBROWDOWNEVEN_SSE2 | 56 #define HAS_SCALEARGBROWDOWNEVEN_SSE2 |
57 #define HAS_SCALECOLSUP2_SSE2 | 57 #define HAS_SCALECOLSUP2_SSE2 |
58 #define HAS_SCALEFILTERCOLS_SSSE3 | 58 #define HAS_SCALEFILTERCOLS_SSSE3 |
59 #define HAS_SCALEROWDOWN2_SSSE3 | 59 #define HAS_SCALEROWDOWN2_SSSE3 |
60 #define HAS_SCALEROWDOWN34_SSSE3 | 60 #define HAS_SCALEROWDOWN34_SSSE3 |
61 #define HAS_SCALEROWDOWN38_SSSE3 | 61 #define HAS_SCALEROWDOWN38_SSSE3 |
62 #define HAS_SCALEROWDOWN4_SSE2 | 62 #define HAS_SCALEROWDOWN4_SSSE3 |
63 #define HAS_SCALEADDROW_SSE2 | 63 #define HAS_SCALEADDROW_SSE2 |
64 #endif | 64 #endif |
65 | 65 |
66 // The following are available on all x86 platforms, but | 66 // The following are available on all x86 platforms, but |
67 // require VS2012, clang 3.4 or gcc 4.7. | 67 // require VS2012, clang 3.4 or gcc 4.7. |
68 // The code supports NaCL but requires a new compiler and validator. | 68 // The code supports NaCL but requires a new compiler and validator. |
69 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ | 69 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ |
70 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) | 70 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) |
71 #define HAS_SCALEADDROW_AVX2 | 71 #define HAS_SCALEADDROW_AVX2 |
72 #define HAS_SCALEROWDOWN2_AVX2 | 72 #define HAS_SCALEROWDOWN2_AVX2 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 void ScaleRowDown2Linear_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 237 void ScaleRowDown2Linear_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
238 uint8* dst_ptr, int dst_width); | 238 uint8* dst_ptr, int dst_width); |
239 void ScaleRowDown2Box_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 239 void ScaleRowDown2Box_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
240 uint8* dst_ptr, int dst_width); | 240 uint8* dst_ptr, int dst_width); |
241 void ScaleRowDown2_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 241 void ScaleRowDown2_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
242 uint8* dst_ptr, int dst_width); | 242 uint8* dst_ptr, int dst_width); |
243 void ScaleRowDown2Linear_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 243 void ScaleRowDown2Linear_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
244 uint8* dst_ptr, int dst_width); | 244 uint8* dst_ptr, int dst_width); |
245 void ScaleRowDown2Box_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 245 void ScaleRowDown2Box_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
246 uint8* dst_ptr, int dst_width); | 246 uint8* dst_ptr, int dst_width); |
247 void ScaleRowDown4_SSE2(const uint8* src_ptr, ptrdiff_t src_stride, | 247 void ScaleRowDown4_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
248 uint8* dst_ptr, int dst_width); | 248 uint8* dst_ptr, int dst_width); |
249 void ScaleRowDown4Box_SSE2(const uint8* src_ptr, ptrdiff_t src_stride, | 249 void ScaleRowDown4Box_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
250 uint8* dst_ptr, int dst_width); | 250 uint8* dst_ptr, int dst_width); |
251 void ScaleRowDown4_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 251 void ScaleRowDown4_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
252 uint8* dst_ptr, int dst_width); | 252 uint8* dst_ptr, int dst_width); |
253 void ScaleRowDown4Box_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 253 void ScaleRowDown4Box_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
254 uint8* dst_ptr, int dst_width); | 254 uint8* dst_ptr, int dst_width); |
255 | 255 |
256 void ScaleRowDown34_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 256 void ScaleRowDown34_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
257 uint8* dst_ptr, int dst_width); | 257 uint8* dst_ptr, int dst_width); |
258 void ScaleRowDown34_1_Box_SSSE3(const uint8* src_ptr, | 258 void ScaleRowDown34_1_Box_SSSE3(const uint8* src_ptr, |
259 ptrdiff_t src_stride, | 259 ptrdiff_t src_stride, |
260 uint8* dst_ptr, int dst_width); | 260 uint8* dst_ptr, int dst_width); |
(...skipping 13 matching lines...) Expand all Loading... |
274 void ScaleRowDown2Linear_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 274 void ScaleRowDown2Linear_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
275 uint8* dst_ptr, int dst_width); | 275 uint8* dst_ptr, int dst_width); |
276 void ScaleRowDown2Box_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 276 void ScaleRowDown2Box_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
277 uint8* dst_ptr, int dst_width); | 277 uint8* dst_ptr, int dst_width); |
278 void ScaleRowDown2_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 278 void ScaleRowDown2_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
279 uint8* dst_ptr, int dst_width); | 279 uint8* dst_ptr, int dst_width); |
280 void ScaleRowDown2Linear_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 280 void ScaleRowDown2Linear_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
281 uint8* dst_ptr, int dst_width); | 281 uint8* dst_ptr, int dst_width); |
282 void ScaleRowDown2Box_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 282 void ScaleRowDown2Box_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
283 uint8* dst_ptr, int dst_width); | 283 uint8* dst_ptr, int dst_width); |
284 void ScaleRowDown4_Any_SSE2(const uint8* src_ptr, ptrdiff_t src_stride, | 284 void ScaleRowDown4_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
285 uint8* dst_ptr, int dst_width); | 285 uint8* dst_ptr, int dst_width); |
286 void ScaleRowDown4Box_Any_SSE2(const uint8* src_ptr, ptrdiff_t src_stride, | 286 void ScaleRowDown4Box_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
287 uint8* dst_ptr, int dst_width); | 287 uint8* dst_ptr, int dst_width); |
288 void ScaleRowDown4_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 288 void ScaleRowDown4_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
289 uint8* dst_ptr, int dst_width); | 289 uint8* dst_ptr, int dst_width); |
290 void ScaleRowDown4Box_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, | 290 void ScaleRowDown4Box_Any_AVX2(const uint8* src_ptr, ptrdiff_t src_stride, |
291 uint8* dst_ptr, int dst_width); | 291 uint8* dst_ptr, int dst_width); |
292 | 292 |
293 void ScaleRowDown34_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, | 293 void ScaleRowDown34_Any_SSSE3(const uint8* src_ptr, ptrdiff_t src_stride, |
294 uint8* dst_ptr, int dst_width); | 294 uint8* dst_ptr, int dst_width); |
295 void ScaleRowDown34_1_Box_Any_SSSE3(const uint8* src_ptr, | 295 void ScaleRowDown34_1_Box_Any_SSSE3(const uint8* src_ptr, |
296 ptrdiff_t src_stride, | 296 ptrdiff_t src_stride, |
297 uint8* dst_ptr, int dst_width); | 297 uint8* dst_ptr, int dst_width); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 void ScaleRowDown38_3_Box_MIPS_DSPR2(const uint8* src_ptr, | 487 void ScaleRowDown38_3_Box_MIPS_DSPR2(const uint8* src_ptr, |
488 ptrdiff_t src_stride, | 488 ptrdiff_t src_stride, |
489 uint8* dst_ptr, int dst_width); | 489 uint8* dst_ptr, int dst_width); |
490 | 490 |
491 #ifdef __cplusplus | 491 #ifdef __cplusplus |
492 } // extern "C" | 492 } // extern "C" |
493 } // namespace libyuv | 493 } // namespace libyuv |
494 #endif | 494 #endif |
495 | 495 |
496 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_ NOLINT | 496 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_ NOLINT |
OLD | NEW |