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

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

Issue 2371293002: Add low level support for 12 bit 420, 422 and 444 YUV video frame conversion. (Closed)
Patch Set: cast to uint16 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 | « include/libyuv/planar_functions.h ('k') | source/planar_functions.cc » ('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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 #define HAS_NV21TOARGBROW_AVX2 224 #define HAS_NV21TOARGBROW_AVX2
225 #define HAS_SPLITUVROW_AVX2 225 #define HAS_SPLITUVROW_AVX2
226 #define HAS_UYVYTOARGBROW_AVX2 226 #define HAS_UYVYTOARGBROW_AVX2
227 #define HAS_UYVYTOUV422ROW_AVX2 227 #define HAS_UYVYTOUV422ROW_AVX2
228 #define HAS_UYVYTOUVROW_AVX2 228 #define HAS_UYVYTOUVROW_AVX2
229 #define HAS_UYVYTOYROW_AVX2 229 #define HAS_UYVYTOYROW_AVX2
230 #define HAS_YUY2TOARGBROW_AVX2 230 #define HAS_YUY2TOARGBROW_AVX2
231 #define HAS_YUY2TOUV422ROW_AVX2 231 #define HAS_YUY2TOUV422ROW_AVX2
232 #define HAS_YUY2TOUVROW_AVX2 232 #define HAS_YUY2TOUVROW_AVX2
233 #define HAS_YUY2TOYROW_AVX2 233 #define HAS_YUY2TOYROW_AVX2
234 #define HAS_HALFFLOATROW_AVX2
234 235
235 // Effects: 236 // Effects:
236 #define HAS_ARGBADDROW_AVX2 237 #define HAS_ARGBADDROW_AVX2
237 #define HAS_ARGBATTENUATEROW_AVX2 238 #define HAS_ARGBATTENUATEROW_AVX2
238 #define HAS_ARGBMULTIPLYROW_AVX2 239 #define HAS_ARGBMULTIPLYROW_AVX2
239 #define HAS_ARGBSUBTRACTROW_AVX2 240 #define HAS_ARGBSUBTRACTROW_AVX2
240 #define HAS_ARGBUNATTENUATEROW_AVX2 241 #define HAS_ARGBUNATTENUATEROW_AVX2
241 #define HAS_BLENDPLANEROW_AVX2 242 #define HAS_BLENDPLANEROW_AVX2
242 #endif 243 #endif
243 244
244 // The following are available for AVX2 Visual C and clangcl 32 bit: 245 // The following are available for AVX2 Visual C and clangcl 32 bit:
245 // TODO(fbarchard): Port to gcc. 246 // TODO(fbarchard): Port to gcc.
246 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ 247 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \
247 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) 248 (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2))
248 #define HAS_ARGB1555TOARGBROW_AVX2 249 #define HAS_ARGB1555TOARGBROW_AVX2
249 #define HAS_ARGB4444TOARGBROW_AVX2 250 #define HAS_ARGB4444TOARGBROW_AVX2
250 #define HAS_ARGBTOARGB1555ROW_AVX2 251 #define HAS_ARGBTOARGB1555ROW_AVX2
251 #define HAS_ARGBTOARGB4444ROW_AVX2 252 #define HAS_ARGBTOARGB4444ROW_AVX2
252 #define HAS_ARGBTORGB565ROW_AVX2 253 #define HAS_ARGBTORGB565ROW_AVX2
253 #define HAS_J400TOARGBROW_AVX2 254 #define HAS_J400TOARGBROW_AVX2
254 #define HAS_RGB565TOARGBROW_AVX2 255 #define HAS_RGB565TOARGBROW_AVX2
255 #define HAS_SHORTTOF16ROW_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
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, uint16* 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, uint16* dst, float scale, int width);
1939 void HalfFloatRow_Any_AVX2(const uint16* src, uint16* dst, float scale,
1940 int width);
1939 1941
1940 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width, 1942 void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width,
1941 const uint8* luma, uint32 lumacoeff); 1943 const uint8* luma, uint32 lumacoeff);
1942 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, 1944 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
1943 int width, 1945 int width,
1944 const uint8* luma, uint32 lumacoeff); 1946 const uint8* luma, uint32 lumacoeff);
1945 1947
1946 #ifdef __cplusplus 1948 #ifdef __cplusplus
1947 } // extern "C" 1949 } // extern "C"
1948 } // namespace libyuv 1950 } // namespace libyuv
1949 #endif 1951 #endif
1950 1952
1951 #endif // INCLUDE_LIBYUV_ROW_H_ 1953 #endif // INCLUDE_LIBYUV_ROW_H_
OLDNEW
« no previous file with comments | « include/libyuv/planar_functions.h ('k') | source/planar_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698