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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #define HAS_ARGBTOUVJROW_SSSE3 | 98 #define HAS_ARGBTOUVJROW_SSSE3 |
99 #define HAS_ARGBTOUVROW_SSSE3 | 99 #define HAS_ARGBTOUVROW_SSSE3 |
100 #define HAS_ARGBTOYJROW_SSSE3 | 100 #define HAS_ARGBTOYJROW_SSSE3 |
101 #define HAS_ARGBTOYROW_SSSE3 | 101 #define HAS_ARGBTOYROW_SSSE3 |
102 #define HAS_BGRATOUVROW_SSSE3 | 102 #define HAS_BGRATOUVROW_SSSE3 |
103 #define HAS_BGRATOYROW_SSSE3 | 103 #define HAS_BGRATOYROW_SSSE3 |
104 #define HAS_COPYROW_ERMS | 104 #define HAS_COPYROW_ERMS |
105 #define HAS_COPYROW_SSE2 | 105 #define HAS_COPYROW_SSE2 |
106 #define HAS_H422TOARGBROW_SSSE3 | 106 #define HAS_H422TOARGBROW_SSSE3 |
107 #define HAS_I400TOARGBROW_SSE2 | 107 #define HAS_I400TOARGBROW_SSE2 |
108 // The following functions fail on gcc/clang 32 bit with fpic and framepointer. | |
109 // caveat: clangcl uses row_win.cc which works. | |
110 #if defined(NDEBUG) || !(defined(_DEBUG) && defined(__i386__)) || \ | |
111 !defined(__i386__) || defined(_MSC_VER) | |
112 // TODO(fbarchard): fix build error on x86 debug | |
113 // https://code.google.com/p/libyuv/issues/detail?id=524 | |
114 #define HAS_I411TOARGBROW_SSSE3 | |
115 // TODO(fbarchard): fix build error on android_full_debug=1 | |
116 // https://code.google.com/p/libyuv/issues/detail?id=517 | |
117 #define HAS_I422ALPHATOARGBROW_SSSE3 | |
118 #endif | |
119 #define HAS_I422TOARGB1555ROW_SSSE3 | 108 #define HAS_I422TOARGB1555ROW_SSSE3 |
120 #define HAS_I422TOARGB4444ROW_SSSE3 | 109 #define HAS_I422TOARGB4444ROW_SSSE3 |
121 #define HAS_I422TOARGBROW_SSSE3 | 110 #define HAS_I422TOARGBROW_SSSE3 |
122 #define HAS_I422TORGB24ROW_SSSE3 | 111 #define HAS_I422TORGB24ROW_SSSE3 |
123 #define HAS_I422TORGB565ROW_SSSE3 | 112 #define HAS_I422TORGB565ROW_SSSE3 |
124 #define HAS_I422TORGBAROW_SSSE3 | 113 #define HAS_I422TORGBAROW_SSSE3 |
125 #define HAS_I422TOUYVYROW_SSE2 | 114 #define HAS_I422TOUYVYROW_SSE2 |
126 #define HAS_I422TOYUY2ROW_SSE2 | 115 #define HAS_I422TOYUY2ROW_SSE2 |
127 #define HAS_I444TOARGBROW_SSSE3 | 116 #define HAS_I444TOARGBROW_SSSE3 |
128 #define HAS_J400TOARGBROW_SSE2 | 117 #define HAS_J400TOARGBROW_SSE2 |
129 #define HAS_J422TOARGBROW_SSSE3 | 118 #define HAS_J422TOARGBROW_SSSE3 |
130 #define HAS_MERGEUVROW_SSE2 | 119 #define HAS_MERGEUVROW_SSE2 |
131 #define HAS_MIRRORROW_SSSE3 | 120 #define HAS_MIRRORROW_SSSE3 |
132 #define HAS_MIRRORUVROW_SSSE3 | 121 #define HAS_MIRRORUVROW_SSSE3 |
133 #define HAS_MIRRORUVROW_SSSE3 | |
134 #define HAS_NV12TOARGBROW_SSSE3 | 122 #define HAS_NV12TOARGBROW_SSSE3 |
135 #define HAS_NV12TORGB565ROW_SSSE3 | 123 #define HAS_NV12TORGB565ROW_SSSE3 |
136 #define HAS_NV21TOARGBROW_SSSE3 | 124 #define HAS_NV21TOARGBROW_SSSE3 |
137 #define HAS_RAWTOARGBROW_SSSE3 | 125 #define HAS_RAWTOARGBROW_SSSE3 |
138 #define HAS_RAWTORGB24ROW_SSSE3 | 126 #define HAS_RAWTORGB24ROW_SSSE3 |
139 #define HAS_RAWTOYROW_SSSE3 | 127 #define HAS_RAWTOYROW_SSSE3 |
140 #define HAS_RGB24TOARGBROW_SSSE3 | 128 #define HAS_RGB24TOARGBROW_SSSE3 |
141 #define HAS_RGB24TOYROW_SSSE3 | 129 #define HAS_RGB24TOYROW_SSSE3 |
142 #define HAS_RGB565TOARGBROW_SSE2 | 130 #define HAS_RGB565TOARGBROW_SSE2 |
143 #define HAS_RGBATOUVROW_SSSE3 | 131 #define HAS_RGBATOUVROW_SSSE3 |
(...skipping 22 matching lines...) Expand all Loading... |
166 #define HAS_ARGBGRAYROW_SSSE3 | 154 #define HAS_ARGBGRAYROW_SSSE3 |
167 #define HAS_ARGBLUMACOLORTABLEROW_SSSE3 | 155 #define HAS_ARGBLUMACOLORTABLEROW_SSSE3 |
168 #define HAS_ARGBMIRRORROW_SSE2 | 156 #define HAS_ARGBMIRRORROW_SSE2 |
169 #define HAS_ARGBMULTIPLYROW_SSE2 | 157 #define HAS_ARGBMULTIPLYROW_SSE2 |
170 #define HAS_ARGBPOLYNOMIALROW_SSE2 | 158 #define HAS_ARGBPOLYNOMIALROW_SSE2 |
171 #define HAS_ARGBQUANTIZEROW_SSE2 | 159 #define HAS_ARGBQUANTIZEROW_SSE2 |
172 #define HAS_ARGBSEPIAROW_SSSE3 | 160 #define HAS_ARGBSEPIAROW_SSSE3 |
173 #define HAS_ARGBSHADEROW_SSE2 | 161 #define HAS_ARGBSHADEROW_SSE2 |
174 #define HAS_ARGBSUBTRACTROW_SSE2 | 162 #define HAS_ARGBSUBTRACTROW_SSE2 |
175 #define HAS_ARGBUNATTENUATEROW_SSE2 | 163 #define HAS_ARGBUNATTENUATEROW_SSE2 |
| 164 #define HAS_BLENDPLANEROW_SSSE3 |
176 #define HAS_COMPUTECUMULATIVESUMROW_SSE2 | 165 #define HAS_COMPUTECUMULATIVESUMROW_SSE2 |
177 #define HAS_CUMULATIVESUMTOAVERAGEROW_SSE2 | 166 #define HAS_CUMULATIVESUMTOAVERAGEROW_SSE2 |
178 #define HAS_INTERPOLATEROW_SSSE3 | 167 #define HAS_INTERPOLATEROW_SSSE3 |
179 #define HAS_RGBCOLORTABLEROW_X86 | 168 #define HAS_RGBCOLORTABLEROW_X86 |
180 #define HAS_SOBELROW_SSE2 | 169 #define HAS_SOBELROW_SSE2 |
181 #define HAS_SOBELTOPLANEROW_SSE2 | 170 #define HAS_SOBELTOPLANEROW_SSE2 |
182 #define HAS_SOBELXROW_SSE2 | 171 #define HAS_SOBELXROW_SSE2 |
183 #define HAS_SOBELXYROW_SSE2 | 172 #define HAS_SOBELXYROW_SSE2 |
184 #define HAS_SOBELYROW_SSE2 | 173 #define HAS_SOBELYROW_SSE2 |
185 #define HAS_BLENDPLANEROW_SSSE3 | 174 |
| 175 // The following functions fail on gcc/clang 32 bit with fpic and framepointer. |
| 176 // caveat: clangcl uses row_win.cc which works. |
| 177 #if defined(NDEBUG) || !(defined(_DEBUG) && defined(__i386__)) || \ |
| 178 !defined(__i386__) || defined(_MSC_VER) |
| 179 // TODO(fbarchard): fix build error on x86 debug |
| 180 // https://code.google.com/p/libyuv/issues/detail?id=524 |
| 181 #define HAS_I411TOARGBROW_SSSE3 |
| 182 // TODO(fbarchard): fix build error on android_full_debug=1 |
| 183 // https://code.google.com/p/libyuv/issues/detail?id=517 |
| 184 #define HAS_I422ALPHATOARGBROW_SSSE3 |
| 185 #endif |
186 #endif | 186 #endif |
187 | 187 |
188 // The following are available on all x86 platforms, but | 188 // The following are available on all x86 platforms, but |
189 // require VS2012, clang 3.4 or gcc 4.7. | 189 // require VS2012, clang 3.4 or gcc 4.7. |
190 // The code supports NaCL but requires a new compiler and validator. | 190 // The code supports NaCL but requires a new compiler and validator. |
191 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ | 191 #if !defined(LIBYUV_DISABLE_X86) && (defined(VISUALC_HAS_AVX2) || \ |
192 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) | 192 defined(CLANG_HAS_AVX2) || defined(GCC_HAS_AVX2)) |
193 #define HAS_ARGBCOPYALPHAROW_AVX2 | 193 #define HAS_ARGBCOPYALPHAROW_AVX2 |
194 #define HAS_ARGBCOPYYTOALPHAROW_AVX2 | 194 #define HAS_ARGBCOPYYTOALPHAROW_AVX2 |
195 #define HAS_ARGBMIRRORROW_AVX2 | 195 #define HAS_ARGBMIRRORROW_AVX2 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // The following are also available on x64 Visual C. | 257 // The following are also available on x64 Visual C. |
258 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ | 258 #if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \ |
259 (!defined(__clang__) || defined(__SSSE3__)) | 259 (!defined(__clang__) || defined(__SSSE3__)) |
260 #define HAS_I422ALPHATOARGBROW_SSSE3 | 260 #define HAS_I422ALPHATOARGBROW_SSSE3 |
261 #define HAS_I422TOARGBROW_SSSE3 | 261 #define HAS_I422TOARGBROW_SSSE3 |
262 #endif | 262 #endif |
263 | 263 |
264 // The following are available on Neon platforms: | 264 // The following are available on Neon platforms: |
265 #if !defined(LIBYUV_DISABLE_NEON) && \ | 265 #if !defined(LIBYUV_DISABLE_NEON) && \ |
266 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) | 266 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) |
267 #define HAS_I422ALPHATOARGBROW_NEON | |
268 #define HAS_ABGRTOUVROW_NEON | 267 #define HAS_ABGRTOUVROW_NEON |
269 #define HAS_ABGRTOYROW_NEON | 268 #define HAS_ABGRTOYROW_NEON |
270 #define HAS_ARGB1555TOARGBROW_NEON | 269 #define HAS_ARGB1555TOARGBROW_NEON |
271 #define HAS_ARGB1555TOUVROW_NEON | 270 #define HAS_ARGB1555TOUVROW_NEON |
272 #define HAS_ARGB1555TOYROW_NEON | 271 #define HAS_ARGB1555TOYROW_NEON |
273 #define HAS_ARGB4444TOARGBROW_NEON | 272 #define HAS_ARGB4444TOARGBROW_NEON |
274 #define HAS_ARGB4444TOUVROW_NEON | 273 #define HAS_ARGB4444TOUVROW_NEON |
275 #define HAS_ARGB4444TOYROW_NEON | 274 #define HAS_ARGB4444TOYROW_NEON |
276 #define HAS_ARGBSETROW_NEON | 275 #define HAS_ARGBSETROW_NEON |
277 #define HAS_ARGBTOARGB1555ROW_NEON | 276 #define HAS_ARGBTOARGB1555ROW_NEON |
278 #define HAS_ARGBTOARGB4444ROW_NEON | 277 #define HAS_ARGBTOARGB4444ROW_NEON |
279 #define HAS_ARGBTORAWROW_NEON | 278 #define HAS_ARGBTORAWROW_NEON |
280 #define HAS_ARGBTORGB24ROW_NEON | 279 #define HAS_ARGBTORGB24ROW_NEON |
281 #define HAS_ARGBTORGB565DITHERROW_NEON | 280 #define HAS_ARGBTORGB565DITHERROW_NEON |
282 #define HAS_ARGBTORGB565ROW_NEON | 281 #define HAS_ARGBTORGB565ROW_NEON |
283 #define HAS_ARGBTOUV411ROW_NEON | 282 #define HAS_ARGBTOUV411ROW_NEON |
284 #define HAS_ARGBTOUV422ROW_NEON | 283 #define HAS_ARGBTOUV422ROW_NEON |
285 #define HAS_ARGBTOUV444ROW_NEON | 284 #define HAS_ARGBTOUV444ROW_NEON |
286 #define HAS_ARGBTOUVJROW_NEON | 285 #define HAS_ARGBTOUVJROW_NEON |
287 #define HAS_ARGBTOUVROW_NEON | 286 #define HAS_ARGBTOUVROW_NEON |
288 #define HAS_ARGBTOYJROW_NEON | 287 #define HAS_ARGBTOYJROW_NEON |
289 #define HAS_ARGBTOYROW_NEON | 288 #define HAS_ARGBTOYROW_NEON |
290 #define HAS_BGRATOUVROW_NEON | 289 #define HAS_BGRATOUVROW_NEON |
291 #define HAS_BGRATOYROW_NEON | 290 #define HAS_BGRATOYROW_NEON |
292 #define HAS_COPYROW_NEON | 291 #define HAS_COPYROW_NEON |
293 #define HAS_I400TOARGBROW_NEON | 292 #define HAS_I400TOARGBROW_NEON |
294 #define HAS_I411TOARGBROW_NEON | 293 #define HAS_I411TOARGBROW_NEON |
| 294 #define HAS_I422ALPHATOARGBROW_NEON |
295 #define HAS_I422TOARGB1555ROW_NEON | 295 #define HAS_I422TOARGB1555ROW_NEON |
296 #define HAS_I422TOARGB4444ROW_NEON | 296 #define HAS_I422TOARGB4444ROW_NEON |
297 #define HAS_I422TOARGBROW_NEON | 297 #define HAS_I422TOARGBROW_NEON |
298 #define HAS_I422TORGB24ROW_NEON | 298 #define HAS_I422TORGB24ROW_NEON |
299 #define HAS_I422TORGB565ROW_NEON | 299 #define HAS_I422TORGB565ROW_NEON |
300 #define HAS_I422TORGBAROW_NEON | 300 #define HAS_I422TORGBAROW_NEON |
301 #define HAS_I422TOUYVYROW_NEON | 301 #define HAS_I422TOUYVYROW_NEON |
302 #define HAS_I422TOYUY2ROW_NEON | 302 #define HAS_I422TOYUY2ROW_NEON |
303 #define HAS_I444TOARGBROW_NEON | 303 #define HAS_I444TOARGBROW_NEON |
304 #define HAS_J400TOARGBROW_NEON | 304 #define HAS_J400TOARGBROW_NEON |
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1925 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1926 int width, | 1926 int width, |
1927 const uint8* luma, uint32 lumacoeff); | 1927 const uint8* luma, uint32 lumacoeff); |
1928 | 1928 |
1929 #ifdef __cplusplus | 1929 #ifdef __cplusplus |
1930 } // extern "C" | 1930 } // extern "C" |
1931 } // namespace libyuv | 1931 } // namespace libyuv |
1932 #endif | 1932 #endif |
1933 | 1933 |
1934 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1934 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |