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

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

Issue 2381493006: HalfFloat_SSE2 port from C algorithm to SSE2 (Closed)
Patch Set: bump version Created 4 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 #define HAS_RGB565TOARGBROW_AVX2 255 #define HAS_RGB565TOARGBROW_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 gcc x86 platforms:
266 // TODO(fbarchard): Port to Visual C.
267 #if !defined(LIBYUV_DISABLE_X86) && \
268 (defined(__x86_64__) || (defined(__i386__) && !defined(_MSC_VER)))
269 #define HAS_HALFFLOATROW_SSE2
270 #endif
271
265 // The following are available on Neon platforms: 272 // The following are available on Neon platforms:
266 #if !defined(LIBYUV_DISABLE_NEON) && \ 273 #if !defined(LIBYUV_DISABLE_NEON) && \
267 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON)) 274 (defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON))
268 #define HAS_ABGRTOUVROW_NEON 275 #define HAS_ABGRTOUVROW_NEON
269 #define HAS_ABGRTOYROW_NEON 276 #define HAS_ABGRTOYROW_NEON
270 #define HAS_ARGB1555TOARGBROW_NEON 277 #define HAS_ARGB1555TOARGBROW_NEON
271 #define HAS_ARGB1555TOUVROW_NEON 278 #define HAS_ARGB1555TOUVROW_NEON
272 #define HAS_ARGB1555TOYROW_NEON 279 #define HAS_ARGB1555TOYROW_NEON
273 #define HAS_ARGB4444TOARGBROW_NEON 280 #define HAS_ARGB4444TOARGBROW_NEON
274 #define HAS_ARGB4444TOUVROW_NEON 281 #define HAS_ARGB4444TOUVROW_NEON
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 int width); 1938 int width);
1932 void ARGBPolynomialRow_AVX2(const uint8* src_argb, 1939 void ARGBPolynomialRow_AVX2(const uint8* src_argb,
1933 uint8* dst_argb, const float* poly, 1940 uint8* dst_argb, const float* poly,
1934 int width); 1941 int width);
1935 1942
1936 // Scale and convert to half float. 1943 // Scale and convert to half float.
1937 void HalfFloatRow_C(const uint16* src, uint16* dst, float scale, int width); 1944 void HalfFloatRow_C(const uint16* src, uint16* dst, float scale, int width);
1938 void HalfFloatRow_AVX2(const uint16* src, uint16* dst, float scale, int width); 1945 void HalfFloatRow_AVX2(const uint16* src, uint16* dst, float scale, int width);
1939 void HalfFloatRow_Any_AVX2(const uint16* src, uint16* dst, float scale, 1946 void HalfFloatRow_Any_AVX2(const uint16* src, uint16* dst, float scale,
1940 int width); 1947 int width);
1948 void HalfFloatRow_SSE2(const uint16* src, uint16* dst, float scale, int width);
1949 void HalfFloatRow_Any_SSE2(const uint16* src, uint16* dst, float scale,
1950 int width);
1941 1951
1942 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width, 1952 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width,
1943 const uint8* luma, uint32 lumacoeff); 1953 const uint8* luma, uint32 lumacoeff);
1944 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, 1954 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
1945 int width, 1955 int width,
1946 const uint8* luma, uint32 lumacoeff); 1956 const uint8* luma, uint32 lumacoeff);
1947 1957
1948 #ifdef __cplusplus 1958 #ifdef __cplusplus
1949 } // extern "C" 1959 } // extern "C"
1950 } // namespace libyuv 1960 } // namespace libyuv
1951 #endif 1961 #endif
1952 1962
1953 #endif // INCLUDE_LIBYUV_ROW_H_ 1963 #endif // INCLUDE_LIBYUV_ROW_H_
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