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

Side by Side Diff: source/planar_functions.cc

Issue 1872953002: Fix stride bug for msan on I420Interpolate. (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 8 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_common.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 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 if (TestCpuFlag(kCpuHasDSPR2) && 1910 if (TestCpuFlag(kCpuHasDSPR2) &&
1911 IS_ALIGNED(src0, 4) && IS_ALIGNED(src_stride0, 4) && 1911 IS_ALIGNED(src0, 4) && IS_ALIGNED(src_stride0, 4) &&
1912 IS_ALIGNED(src1, 4) && IS_ALIGNED(src_stride1, 4) && 1912 IS_ALIGNED(src1, 4) && IS_ALIGNED(src_stride1, 4) &&
1913 IS_ALIGNED(dst, 4) && IS_ALIGNED(dst_stride, 4) && 1913 IS_ALIGNED(dst, 4) && IS_ALIGNED(dst_stride, 4) &&
1914 IS_ALIGNED(width, 4)) { 1914 IS_ALIGNED(width, 4)) {
1915 InterpolateRow = InterpolateRow_DSPR2; 1915 InterpolateRow = InterpolateRow_DSPR2;
1916 } 1916 }
1917 #endif 1917 #endif
1918 1918
1919 for (y = 0; y < height; ++y) { 1919 for (y = 0; y < height; ++y) {
1920 InterpolateRow(dst, src0, src1 - src0, 1920 InterpolateRow(dst, src0, src1 - src0, width, interpolation);
1921 width, interpolation);
1922 src0 += src_stride0; 1921 src0 += src_stride0;
1923 src1 += src_stride1; 1922 src1 += src_stride1;
1924 dst += dst_stride; 1923 dst += dst_stride;
1925 } 1924 }
1926 return 0; 1925 return 0;
1927 } 1926 }
1928 1927
1929 // Interpolate 2 ARGB images by specified amount (0 to 255). 1928 // Interpolate 2 ARGB images by specified amount (0 to 255).
1930 LIBYUV_API 1929 LIBYUV_API
1931 int ARGBInterpolate(const uint8* src_argb0, int src_stride_argb0, 1930 int ARGBInterpolate(const uint8* src_argb0, int src_stride_argb0,
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2620 } 2619 }
2621 free_aligned_buffer_64(rows); 2620 free_aligned_buffer_64(rows);
2622 } 2621 }
2623 return 0; 2622 return 0;
2624 } 2623 }
2625 2624
2626 #ifdef __cplusplus 2625 #ifdef __cplusplus
2627 } // extern "C" 2626 } // extern "C"
2628 } // namespace libyuv 2627 } // namespace libyuv
2629 #endif 2628 #endif
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | source/row_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698