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

Unified Diff: source/scale.cc

Issue 2626123003: Libyuv MIPS DSPR2 optimizations. (Closed)
Patch Set: Created 3 years, 11 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_win.cc ('k') | source/scale_any.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/scale.cc
diff --git a/source/scale.cc b/source/scale.cc
index e66f90a0dd6b9339aa02b2f68d6ef67810a8edd5..65df1f09e3fc7e38e83022544149348d6cefc058 100644
--- a/source/scale.cc
+++ b/source/scale.cc
@@ -894,6 +894,14 @@ static void ScalePlaneBox(int src_width,
}
}
#endif
+#if defined(HAS_SCALEADDROW_DSPR2)
+ if (TestCpuFlag(kCpuHasDSPR2)) {
+ ScaleAddRow = ScaleAddRow_Any_DSPR2;
+ if (IS_ALIGNED(src_width, 16)) {
+ ScaleAddRow = ScaleAddRow_DSPR2;
+ }
+ }
+#endif
for (j = 0; j < dst_height; ++j) {
int boxheight;
« no previous file with comments | « source/row_win.cc ('k') | source/scale_any.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698