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

Unified Diff: include/libyuv/row.h

Issue 2364293002: ShortToHalfFloat_AVX2 function (Closed)
Patch Set: renamed to F16 and moved into windows only section Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | source/row_win.cc » ('j') | source/row_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/libyuv/row.h
diff --git a/include/libyuv/row.h b/include/libyuv/row.h
index f04c15527478d68577e49be71bad23df0bc945cc..227156a195b75fbd3d8e3ccd1d9850d3fde9cd40 100644
--- a/include/libyuv/row.h
+++ b/include/libyuv/row.h
@@ -252,6 +252,7 @@ extern "C" {
#define HAS_ARGBTORGB565ROW_AVX2
#define HAS_J400TOARGBROW_AVX2
#define HAS_RGB565TOARGBROW_AVX2
+#define HAS_SHORTTOF16ROW_AVX2
#endif
// The following are also available on x64 Visual C.
@@ -1932,6 +1933,10 @@ void ARGBPolynomialRow_AVX2(const uint8* src_argb,
uint8* dst_argb, const float* poly,
int width);
+// Scale and convert to half float.
+void ShortToF16Row_C(const uint16* src, int16* dst, float scale, int width);
+void ShortToF16Row_AVX2(const uint16* src, int16* dst, float scale, int width);
+
void ARGBLumaColorTableRow_C(const uint8* src_argb, uint8* dst_argb, int width,
const uint8* luma, uint32 lumacoeff);
void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
« no previous file with comments | « no previous file | source/row_win.cc » ('j') | source/row_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698