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; |