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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | unit_test/color_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 } 1737 }
1738 if (radius > (width / 2 - 1)) { 1738 if (radius > (width / 2 - 1)) {
1739 radius = width / 2 - 1; 1739 radius = width / 2 - 1;
1740 } 1740 }
1741 if (radius <= 0) { 1741 if (radius <= 0) {
1742 return -1; 1742 return -1;
1743 } 1743 }
1744 #if defined(HAS_CUMULATIVESUMTOAVERAGEROW_SSE2) 1744 #if defined(HAS_CUMULATIVESUMTOAVERAGEROW_SSE2)
1745 if (TestCpuFlag(kCpuHasSSE2)) { 1745 if (TestCpuFlag(kCpuHasSSE2)) {
1746 ComputeCumulativeSumRow = ComputeCumulativeSumRow_SSE2; 1746 ComputeCumulativeSumRow = ComputeCumulativeSumRow_SSE2;
1747 CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2; 1747 if (IS_ALIGNED(dst_cumsum, 16)) {
1748 CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2;
1749 }
1748 } 1750 }
1749 #endif 1751 #endif
1750 // Compute enough CumulativeSum for first row to be blurred. After this 1752 // Compute enough CumulativeSum for first row to be blurred. After this
1751 // one row of CumulativeSum is updated at a time. 1753 // one row of CumulativeSum is updated at a time.
1752 ARGBComputeCumulativeSum(src_argb, src_stride_argb, 1754 ARGBComputeCumulativeSum(src_argb, src_stride_argb,
1753 dst_cumsum, dst_stride32_cumsum, 1755 dst_cumsum, dst_stride32_cumsum,
1754 width, radius); 1756 width, radius);
1755 1757
1756 src_argb = src_argb + radius * src_stride_argb; 1758 src_argb = src_argb + radius * src_stride_argb;
1757 cumsum_bot_row = &dst_cumsum[(radius - 1) * dst_stride32_cumsum]; 1759 cumsum_bot_row = &dst_cumsum[(radius - 1) * dst_stride32_cumsum];
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 } 2664 }
2663 free_aligned_buffer_64(rows); 2665 free_aligned_buffer_64(rows);
2664 } 2666 }
2665 return 0; 2667 return 0;
2666 } 2668 }
2667 2669
2668 #ifdef __cplusplus 2670 #ifdef __cplusplus
2669 } // extern "C" 2671 } // extern "C"
2670 } // namespace libyuv 2672 } // namespace libyuv
2671 #endif 2673 #endif
OLDNEW
« 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