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

Unified Diff: source/planar_functions.cc

Issue 2001373002: remove row.h from unittests (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: test csum buffer is aligned Created 4 years, 7 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 | « no previous file | unit_test/color_test.cc » ('j') | no next file with comments »
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 b1b1f2c830b4ec931eedcdc8036c9774416c6b1c..2e2351aafaff22388e80e57a210730f46443abff 100644
--- a/source/planar_functions.cc
+++ b/source/planar_functions.cc
@@ -1744,7 +1744,9 @@ int ARGBBlur(const uint8* src_argb, int src_stride_argb,
#if defined(HAS_CUMULATIVESUMTOAVERAGEROW_SSE2)
if (TestCpuFlag(kCpuHasSSE2)) {
ComputeCumulativeSumRow = ComputeCumulativeSumRow_SSE2;
- CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2;
+ if (IS_ALIGNED(dst_cumsum, 16)) {
+ CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2;
+ }
}
#endif
// Compute enough CumulativeSum for first row to be blurred. After this
« no previous file with comments | « no previous file | unit_test/color_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698