Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: include/libyuv/scale_row.h

Issue 1520423003: avx2 scale down by 2 for gcc (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: merge with head Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #define HAS_SCALEROWDOWN4_SSE2 62 #define HAS_SCALEROWDOWN4_SSE2
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 #endif 73 #endif
73 74
74 // The following are available for Visual C and clangcl 32 bit: 75 // The following are available for Visual C and clangcl 32 bit:
75 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ 76 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \
76 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) 77 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2))
77 #define HAS_SCALEROWDOWN2_AVX2
78 #define HAS_SCALEROWDOWN4_AVX2 78 #define HAS_SCALEROWDOWN4_AVX2
79 #endif 79 #endif
80 80
81 // The following are available on Neon platforms: 81 // The following are available on Neon platforms:
82 #if !defined(LIBYUV_DISABLE_NEON) && !defined(__native_client__) && \ 82 #if !defined(LIBYUV_DISABLE_NEON) && !defined(__native_client__) && \
83 (defined(__ARM_NEON__) || defined(LIBYUV_NEON) || defined(__aarch64__)) 83 (defined(__ARM_NEON__) || defined(LIBYUV_NEON) || defined(__aarch64__))
84 #define HAS_SCALEARGBCOLS_NEON 84 #define HAS_SCALEARGBCOLS_NEON
85 #define HAS_SCALEARGBROWDOWN2_NEON 85 #define HAS_SCALEARGBROWDOWN2_NEON
86 #define HAS_SCALEARGBROWDOWNEVEN_NEON 86 #define HAS_SCALEARGBROWDOWNEVEN_NEON
87 #define HAS_SCALEFILTERCOLS_NEON 87 #define HAS_SCALEFILTERCOLS_NEON
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698