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

Unified Diff: include/libyuv/row.h

Issue 1337973002: neon yuv matrix function (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 5 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 | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »
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 2b864a50b85fb37ba4d56a77c1a3797be815bfb3..0a64716decc6fa96ad68bc3d39b1fe3bee459fd7 100644
--- a/include/libyuv/row.h
+++ b/include/libyuv/row.h
@@ -304,7 +304,9 @@ extern "C" {
#define HAS_I422TOARGB4444ROW_NEON
#define HAS_I422TOARGBROW_NEON
// TODO(fbarchard): Implement NEON version
-// #define HAS_I422TOARGBMATRIXROW_NEON
+#ifndef __aarch64__
+#define HAS_I422TOARGBMATRIXROW_NEON
+#endif
// #define HAS_I422TOABGRMATRIXROW_NEON
#define HAS_I422TOBGRAROW_NEON
#define HAS_I422TORAWROW_NEON
@@ -442,6 +444,13 @@ struct YuvConstants {
lvec16 kYToRgb;
};
+struct YuvConstantsNEON {
+ uvec8 kUVToRB;
+ uvec8 kUVToG;
+ vec16 kUVBiasBGR;
+ vec32 kYToRgb;
+};
+
#if defined(__APPLE__) || defined(__x86_64__) || defined(__llvm__)
#define OMITFP
#else
@@ -541,7 +550,7 @@ void I422ToARGBMatrixRow_NEON(const uint8* src_y,
const uint8* src_u,
const uint8* src_v,
uint8* dst_argb,
- struct YuvConstants* YuvConstants,
+ struct YuvConstantsNEON* YuvConstants,
int width);
void I422ToABGRMatrixRow_NEON(const uint8* src_y,
const uint8* src_u,
« 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