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

Unified Diff: source/planar_functions.cc

Issue 2285683002: Add MIPS SIMD Arch (MSA) optimized MirrorRow function (Closed)
Patch Set: Changes as per review comments 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 | « source/cpu_id.cc ('k') | source/rotate.cc » ('j') | source/row_msa.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/planar_functions.cc
diff --git a/source/planar_functions.cc b/source/planar_functions.cc
index a764f8da4721973fabc3b15df67aec786c9dc4e2..f2d677fd49ddddd381a4127e9b677b2aded99146 100644
--- a/source/planar_functions.cc
+++ b/source/planar_functions.cc
@@ -402,7 +402,14 @@ void MirrorPlane(const uint8* src_y, int src_stride_y,
MirrorRow = MirrorRow_DSPR2;
}
#endif
-
+#if defined(HAS_MIRRORROW_MSA)
+ if (TestCpuFlag(kCpuHasMSA)) {
+ MirrorRow = MirrorRow_Any_MSA;
+ if (IS_ALIGNED(width, 64)) {
fbarchard1 2016/09/21 17:51:06 nit - indent these 3 lines by 2.
manojkumar.bhosale 2016/09/22 05:38:48 Done.
+ MirrorRow = MirrorRow_MSA;
+ }
+}
+#endif
// Mirror plane
for (y = 0; y < height; ++y) {
MirrorRow(src_y, dst_y, width);
« no previous file with comments | « source/cpu_id.cc ('k') | source/rotate.cc » ('j') | source/row_msa.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698