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

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

Issue 1391273003: port ARGB to 565 dithering AVX2 code to GCC. (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 5 years, 2 months 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 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #define HAS_INTERPOLATEROW_SSE2 175 #define HAS_INTERPOLATEROW_SSE2
176 #define HAS_INTERPOLATEROW_SSSE3 176 #define HAS_INTERPOLATEROW_SSSE3
177 #define HAS_RGBCOLORTABLEROW_X86 177 #define HAS_RGBCOLORTABLEROW_X86
178 #define HAS_SOBELROW_SSE2 178 #define HAS_SOBELROW_SSE2
179 #define HAS_SOBELTOPLANEROW_SSE2 179 #define HAS_SOBELTOPLANEROW_SSE2
180 #define HAS_SOBELXROW_SSE2 180 #define HAS_SOBELXROW_SSE2
181 #define HAS_SOBELXYROW_SSE2 181 #define HAS_SOBELXYROW_SSE2
182 #define HAS_SOBELYROW_SSE2 182 #define HAS_SOBELYROW_SSE2
183 #endif 183 #endif
184 184
185 // The following are also available on x64 Visual C.
186 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \
187 (!defined(__clang__) || defined(__SSSE3__))
188 #define HAS_I422ALPHATOABGRROW_SSSE3
189 #define HAS_I422ALPHATOARGBROW_SSSE3
190 #define HAS_I422TOABGRROW_SSSE3
191 #define HAS_I422TOARGBROW_SSSE3
192 #endif
193
194 // The following are available for AVX2 Visual C and clangcl 32 bit:
195 // TODO(fbarchard): Port to gcc.
196 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \
197 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2))
198 #define HAS_ARGB1555TOARGBROW_AVX2
199 #define HAS_ARGB4444TOARGBROW_AVX2
200 #define HAS_ARGBTOARGB1555ROW_AVX2
201 #define HAS_ARGBTOARGB4444ROW_AVX2
202 #define HAS_ARGBTORGB565DITHERROW_AVX2
203 #define HAS_ARGBTORGB565ROW_AVX2
204 #define HAS_I411TOARGBROW_AVX2
205 #define HAS_I422TOARGB1555ROW_AVX2
206 #define HAS_I422TOARGB4444ROW_AVX2
207 #define HAS_I422TORGB565ROW_AVX2
208 #define HAS_I444TOABGRROW_AVX2
209 #define HAS_I444TOARGBROW_AVX2
210 #define HAS_J400TOARGBROW_AVX2
211 #define HAS_NV12TORGB565ROW_AVX2
212 #define HAS_RGB565TOARGBROW_AVX2
213 #endif
214
215 // The following are available on all x86 platforms, but 185 // The following are available on all x86 platforms, but
216 // require VS2012, clang 3.4 or gcc 4.7. 186 // require VS2012, clang 3.4 or gcc 4.7.
217 // The code supports NaCL but requires a new compiler and validator. 187 // The code supports NaCL but requires a new compiler and validator.
218 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ 188 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \
219 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) 189 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2))
220 #define HAS_ARGBCOPYALPHAROW_AVX2 190 #define HAS_ARGBCOPYALPHAROW_AVX2
221 #define HAS_ARGBCOPYYTOALPHAROW_AVX2 191 #define HAS_ARGBCOPYYTOALPHAROW_AVX2
222 #define HAS_ARGBMIRRORROW_AVX2 192 #define HAS_ARGBMIRRORROW_AVX2
223 #define HAS_ARGBPOLYNOMIALROW_AVX2 193 #define HAS_ARGBPOLYNOMIALROW_AVX2
224 #define HAS_ARGBSHUFFLEROW_AVX2 194 #define HAS_ARGBSHUFFLEROW_AVX2
195 #define HAS_ARGBTORGB565DITHERROW_AVX2
225 #define HAS_ARGBTOUVROW_AVX2 196 #define HAS_ARGBTOUVROW_AVX2
226 #define HAS_ARGBTOYJROW_AVX2 197 #define HAS_ARGBTOYJROW_AVX2
227 #define HAS_ARGBTOYROW_AVX2 198 #define HAS_ARGBTOYROW_AVX2
228 #define HAS_COPYROW_AVX 199 #define HAS_COPYROW_AVX
229 #define HAS_H422TOABGRROW_AVX2 200 #define HAS_H422TOABGRROW_AVX2
230 #define HAS_H422TOARGBROW_AVX2 201 #define HAS_H422TOARGBROW_AVX2
231 #define HAS_I400TOARGBROW_AVX2 202 #define HAS_I400TOARGBROW_AVX2
232 #define HAS_I422ALPHATOABGRROW_AVX2 203 #define HAS_I422ALPHATOABGRROW_AVX2
233 #define HAS_I422ALPHATOARGBROW_AVX2 204 #define HAS_I422ALPHATOARGBROW_AVX2
234 #define HAS_I422TOABGRROW_AVX2 205 #define HAS_I422TOABGRROW_AVX2
(...skipping 20 matching lines...) Expand all
255 #define HAS_YUY2TOYROW_AVX2 226 #define HAS_YUY2TOYROW_AVX2
256 227
257 // Effects: 228 // Effects:
258 #define HAS_ARGBADDROW_AVX2 229 #define HAS_ARGBADDROW_AVX2
259 #define HAS_ARGBATTENUATEROW_AVX2 230 #define HAS_ARGBATTENUATEROW_AVX2
260 #define HAS_ARGBMULTIPLYROW_AVX2 231 #define HAS_ARGBMULTIPLYROW_AVX2
261 #define HAS_ARGBSUBTRACTROW_AVX2 232 #define HAS_ARGBSUBTRACTROW_AVX2
262 #define HAS_ARGBUNATTENUATEROW_AVX2 233 #define HAS_ARGBUNATTENUATEROW_AVX2
263 #endif 234 #endif
264 235
236 // The following are available for AVX2 Visual C and clangcl 32 bit:
237 // TODO(fbarchard): Port to gcc.
238 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \
239 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2))
240 #define HAS_ARGB1555TOARGBROW_AVX2
241 #define HAS_ARGB4444TOARGBROW_AVX2
242 #define HAS_ARGBTOARGB1555ROW_AVX2
243 #define HAS_ARGBTOARGB4444ROW_AVX2
244 #define HAS_ARGBTORGB565ROW_AVX2
245 #define HAS_I411TOARGBROW_AVX2
246 #define HAS_I422TOARGB1555ROW_AVX2
247 #define HAS_I422TOARGB4444ROW_AVX2
248 #define HAS_I422TORGB565ROW_AVX2
249 #define HAS_I444TOABGRROW_AVX2
250 #define HAS_I444TOARGBROW_AVX2
251 #define HAS_J400TOARGBROW_AVX2
252 #define HAS_NV12TORGB565ROW_AVX2
253 #define HAS_RGB565TOARGBROW_AVX2
254 #endif
255
256 // The following are also available on x64 Visual C.
257 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \
258 (!defined(__clang__) || defined(__SSSE3__))
259 #define HAS_I422ALPHATOABGRROW_SSSE3
260 #define HAS_I422ALPHATOARGBROW_SSSE3
261 #define HAS_I422TOABGRROW_SSSE3
262 #define HAS_I422TOARGBROW_SSSE3
263 #endif
264
265 // The following are available on Neon platforms: 265 // The following are available on Neon platforms:
266 #if !defined(LIBYUV_DISABLE_NEON) && \ 266 #if !defined(LIBYUV_DISABLE_NEON) && \
267 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) 267 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON))
268 #define HAS_ABGRTOUVROW_NEON 268 #define HAS_ABGRTOUVROW_NEON
269 #define HAS_ABGRTOYROW_NEON 269 #define HAS_ABGRTOYROW_NEON
270 #define HAS_ARGB1555TOARGBROW_NEON 270 #define HAS_ARGB1555TOARGBROW_NEON
271 #define HAS_ARGB1555TOUVROW_NEON 271 #define HAS_ARGB1555TOUVROW_NEON
272 #define HAS_ARGB1555TOYROW_NEON 272 #define HAS_ARGB1555TOYROW_NEON
273 #define HAS_ARGB4444TOARGBROW_NEON 273 #define HAS_ARGB4444TOARGBROW_NEON
274 #define HAS_ARGB4444TOUVROW_NEON 274 #define HAS_ARGB4444TOUVROW_NEON
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, 2129 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
2130 int width, 2130 int width,
2131 const uint8* luma, uint32 lumacoeff); 2131 const uint8* luma, uint32 lumacoeff);
2132 2132
2133 #ifdef __cplusplus 2133 #ifdef __cplusplus
2134 } // extern "C" 2134 } // extern "C"
2135 } // namespace libyuv 2135 } // namespace libyuv
2136 #endif 2136 #endif
2137 2137
2138 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT 2138 #endif // INCLUDE_LIBYUV_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