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 #endif | 256 #endif |
256 | 257 |
257 // The following are also available on x64 Visual C. | 258 // The following are also available on x64 Visual C. |
258 #if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && defined(_M_X64) && \ | 259 #if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && defined(_M_X64) && \ |
259 (!defined(__clang__) || defined(__SSSE3__)) | 260 (!defined(__clang__) || defined(__SSSE3__)) |
260 #define HAS_I422ALPHATOARGBROW_SSSE3 | 261 #define HAS_I422ALPHATOARGBROW_SSSE3 |
261 #define HAS_I422TOARGBROW_SSSE3 | 262 #define HAS_I422TOARGBROW_SSSE3 |
262 #endif | 263 #endif |
263 | 264 |
264 // The following are available on Neon platforms: | 265 // The following are available on Neon platforms: |
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 void ARGBPolynomialRow_C(const uint8* src_argb, | 1926 void ARGBPolynomialRow_C(const uint8* src_argb, |
1926 uint8* dst_argb, const float* poly, | 1927 uint8* dst_argb, const float* poly, |
1927 int width); | 1928 int width); |
1928 void ARGBPolynomialRow_SSE2(const uint8* src_argb, | 1929 void ARGBPolynomialRow_SSE2(const uint8* src_argb, |
1929 uint8* dst_argb, const float* poly, | 1930 uint8* dst_argb, const float* poly, |
1930 int width); | 1931 int width); |
1931 void ARGBPolynomialRow_AVX2(const uint8* src_argb, | 1932 void ARGBPolynomialRow_AVX2(const uint8* src_argb, |
1932 uint8* dst_argb, const float* poly, | 1933 uint8* dst_argb, const float* poly, |
1933 int width); | 1934 int width); |
1934 | 1935 |
| 1936 // Scale and convert to half float. |
| 1937 void ShortToF16Row_C(const uint16* src, int16* dst, float scale, int width); |
| 1938 void ShortToF16Row_AVX2(const uint16* src, int16* dst, float scale, int width); |
| 1939 |
1935 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, |
1936 const uint8* luma, uint32 lumacoeff); | 1941 const uint8* luma, uint32 lumacoeff); |
1937 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1942 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1938 int width, | 1943 int width, |
1939 const uint8* luma, uint32 lumacoeff); | 1944 const uint8* luma, uint32 lumacoeff); |
1940 | 1945 |
1941 #ifdef __cplusplus | 1946 #ifdef __cplusplus |
1942 } // extern "C" | 1947 } // extern "C" |
1943 } // namespace libyuv | 1948 } // namespace libyuv |
1944 #endif | 1949 #endif |
1945 | 1950 |
1946 #endif // INCLUDE_LIBYUV_ROW_H_ | 1951 #endif // INCLUDE_LIBYUV_ROW_H_ |
OLD | NEW |