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

Side by Side Diff: source/planar_functions.cc

Issue 2019753002: make unittest allocator align to 64 bytes. (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: remove commented code Created 4 years, 6 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 | « include/libyuv/version.h ('k') | source/row_win.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 if (IS_ALIGNED(dst_cumsum, 16)) { 1747 CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2;
1748 CumulativeSumToAverageRow = CumulativeSumToAverageRow_SSE2;
1749 }
1750 } 1748 }
1751 #endif 1749 #endif
1752 // Compute enough CumulativeSum for first row to be blurred. After this 1750 // Compute enough CumulativeSum for first row to be blurred. After this
1753 // one row of CumulativeSum is updated at a time. 1751 // one row of CumulativeSum is updated at a time.
1754 ARGBComputeCumulativeSum(src_argb, src_stride_argb, 1752 ARGBComputeCumulativeSum(src_argb, src_stride_argb,
1755 dst_cumsum, dst_stride32_cumsum, 1753 dst_cumsum, dst_stride32_cumsum,
1756 width, radius); 1754 width, radius);
1757 1755
1758 src_argb = src_argb + radius * src_stride_argb; 1756 src_argb = src_argb + radius * src_stride_argb;
1759 cumsum_bot_row = &dst_cumsum[(radius - 1) * dst_stride32_cumsum]; 1757 cumsum_bot_row = &dst_cumsum[(radius - 1) * dst_stride32_cumsum];
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 } 2662 }
2665 free_aligned_buffer_64(rows); 2663 free_aligned_buffer_64(rows);
2666 } 2664 }
2667 return 0; 2665 return 0;
2668 } 2666 }
2669 2667
2670 #ifdef __cplusplus 2668 #ifdef __cplusplus
2671 } // extern "C" 2669 } // extern "C"
2672 } // namespace libyuv 2670 } // namespace libyuv
2673 #endif 2671 #endif
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | source/row_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698