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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // TODO(fbarchard): Port to gcc. | 245 // TODO(fbarchard): Port to gcc. |
246 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ | 246 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ |
247 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) | 247 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) |
248 #define HAS_ARGB1555TOARGBROW_AVX2 | 248 #define HAS_ARGB1555TOARGBROW_AVX2 |
249 #define HAS_ARGB4444TOARGBROW_AVX2 | 249 #define HAS_ARGB4444TOARGBROW_AVX2 |
250 #define HAS_ARGBTOARGB1555ROW_AVX2 | 250 #define HAS_ARGBTOARGB1555ROW_AVX2 |
251 #define HAS_ARGBTOARGB4444ROW_AVX2 | 251 #define HAS_ARGBTOARGB4444ROW_AVX2 |
252 #define HAS_ARGBTORGB565ROW_AVX2 | 252 #define HAS_ARGBTORGB565ROW_AVX2 |
253 #define HAS_J400TOARGBROW_AVX2 | 253 #define HAS_J400TOARGBROW_AVX2 |
254 #define HAS_RGB565TOARGBROW_AVX2 | 254 #define HAS_RGB565TOARGBROW_AVX2 |
255 #define HAS_SHORTTOF16ROW_AVX2 | 255 #define HAS_HALFFLOATROW_AVX2 |
256 #endif | 256 #endif |
257 | 257 |
258 // The following are also available on x64 Visual C. | 258 // The following are also available on x64 Visual C. |
259 #if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && defined(_M_X64) && \ | 259 #if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && defined(_M_X64) && \ |
260 (!defined(__clang__) || defined(__SSSE3__)) | 260 (!defined(__clang__) || defined(__SSSE3__)) |
261 #define HAS_I422ALPHATOARGBROW_SSSE3 | 261 #define HAS_I422ALPHATOARGBROW_SSSE3 |
262 #define HAS_I422TOARGBROW_SSSE3 | 262 #define HAS_I422TOARGBROW_SSSE3 |
263 #endif | 263 #endif |
264 | 264 |
265 // The following are available on Neon platforms: | 265 // The following are available on Neon platforms: |
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1927 uint8* dst_argb, const float* poly, | 1927 uint8* dst_argb, const float* poly, |
1928 int width); | 1928 int width); |
1929 void ARGBPolynomialRow_SSE2(const uint8* src_argb, | 1929 void ARGBPolynomialRow_SSE2(const uint8* src_argb, |
1930 uint8* dst_argb, const float* poly, | 1930 uint8* dst_argb, const float* poly, |
1931 int width); | 1931 int width); |
1932 void ARGBPolynomialRow_AVX2(const uint8* src_argb, | 1932 void ARGBPolynomialRow_AVX2(const uint8* src_argb, |
1933 uint8* dst_argb, const float* poly, | 1933 uint8* dst_argb, const float* poly, |
1934 int width); | 1934 int width); |
1935 | 1935 |
1936 // Scale and convert to half float. | 1936 // Scale and convert to half float. |
1937 void ShortToF16Row_C(const uint16* src, int16* dst, float scale, int width); | 1937 void HalfFloatRow_C(const uint16* src, int16* dst, float scale, int width); |
1938 void ShortToF16Row_AVX2(const uint16* src, int16* dst, float scale, int width); | 1938 void HalfFloatRow_AVX2(const uint16* src, int16* dst, float scale, int width); |
1939 | 1939 |
1940 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width, | 1940 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width, |
1941 const uint8* luma, uint32 lumacoeff); | 1941 const uint8* luma, uint32 lumacoeff); |
1942 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1942 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1943 int width, | 1943 int width, |
1944 const uint8* luma, uint32 lumacoeff); | 1944 const uint8* luma, uint32 lumacoeff); |
1945 | 1945 |
1946 #ifdef __cplusplus | 1946 #ifdef __cplusplus |
1947 } // extern "C" | 1947 } // extern "C" |
1948 } // namespace libyuv | 1948 } // namespace libyuv |
1949 #endif | 1949 #endif |
1950 | 1950 |
1951 #endif // INCLUDE_LIBYUV_ROW_H_ | 1951 #endif // INCLUDE_LIBYUV_ROW_H_ |
OLD | NEW |