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 1359443005: move constants into common (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: fix up jpeg comments and remove todo to move to common 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 d5e7eacdca18736e558ba333f75e41f7bf499f3d..66c4a649debc39132ff9cb904839cd626d13f01b 100644
--- a/include/libyuv/row.h
+++ b/include/libyuv/row.h
@@ -456,6 +456,15 @@ struct YuvConstants {
lvec16 kYToRgb;
};
+// Offsets into YuvConstants structure
+#define KUVTOB 0
+#define KUVTOG 32
+#define KUVTOR 64
+#define KUVBIASB 96
+#define KUVBIASG 128
+#define KUVBIASR 160
+#define KYTORGB 192
+
struct YuvConstantsNEON {
uvec8 kUVToRB;
uvec8 kUVToG;
@@ -463,6 +472,14 @@ struct YuvConstantsNEON {
vec32 kYToRgb;
};
+extern struct YuvConstants kYuvConstants;
+extern struct YuvConstants kYvuConstants;
+extern struct YuvConstants kYuvJConstants;
+extern struct YuvConstants kYuvHConstants;
+extern struct YuvConstantsNEON kYuvConstantsNEON;
+extern struct YuvConstantsNEON kYuvJConstantsNEON;
+extern struct YuvConstantsNEON kYuvHConstantsNEON;
+
#if defined(__APPLE__) || defined(__x86_64__) || defined(__llvm__)
#define OMITFP
#else
« 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