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

Unified Diff: source/row_neon.cc

Issue 1353923003: j422toabgr neon port using i422toabgr 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 | « source/row_common.cc ('k') | source/row_neon64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/row_neon.cc
diff --git a/source/row_neon.cc b/source/row_neon.cc
index a384eb6551134424c34105be58b26b960d38e1b1..b4742ef5dcc72da7171831344d6b52de26390620 100644
--- a/source/row_neon.cc
+++ b/source/row_neon.cc
@@ -368,11 +368,12 @@ void I422ToBGRARow_NEON(const uint8* src_y,
);
}
-void I422ToABGRRow_NEON(const uint8* src_y,
- const uint8* src_u,
- const uint8* src_v,
- uint8* dst_abgr,
- int width) {
+void I422ToABGRMatrixRow_NEON(const uint8* src_y,
+ const uint8* src_u,
+ const uint8* src_v,
+ uint8* dst_abgr,
+ struct YuvConstantsNEON* YuvConstants,
+ int width) {
asm volatile (
YUV422TORGB_SETUP_REG
"1: \n"
@@ -389,10 +390,10 @@ void I422ToABGRRow_NEON(const uint8* src_y,
"+r"(src_v), // %2
"+r"(dst_abgr), // %3
"+r"(width) // %4
- : [kUVToRB]"r"(&kYuvConstantsNEON.kUVToRB), // %5
- [kUVToG]"r"(&kYuvConstantsNEON.kUVToG), // %6
- [kUVBiasBGR]"r"(&kYuvConstantsNEON.kUVBiasBGR),
- [kYToRgb]"r"(&kYuvConstantsNEON.kYToRgb)
+ : [kUVToRB]"r"(&YuvConstants->kUVToRB), // %5
+ [kUVToG]"r"(&YuvConstants->kUVToG), // %6
+ [kUVBiasBGR]"r"(&YuvConstants->kUVBiasBGR),
+ [kYToRgb]"r"(&YuvConstants->kYToRgb)
: "cc", "memory", "q0", "q1", "q2", "q3", "q4",
"q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15"
);
« no previous file with comments | « source/row_common.cc ('k') | source/row_neon64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698