| OLD | NEW |
| 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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 } | 1922 } |
| 1923 } | 1923 } |
| 1924 free_aligned_buffer_page_end(src_argb_a); | 1924 free_aligned_buffer_page_end(src_argb_a); |
| 1925 free_aligned_buffer_page_end(dst_cumsum); | 1925 free_aligned_buffer_page_end(dst_cumsum); |
| 1926 free_aligned_buffer_page_end(dst_argb_c); | 1926 free_aligned_buffer_page_end(dst_argb_c); |
| 1927 free_aligned_buffer_page_end(dst_argb_opt); | 1927 free_aligned_buffer_page_end(dst_argb_opt); |
| 1928 return max_diff; | 1928 return max_diff; |
| 1929 } | 1929 } |
| 1930 | 1930 |
| 1931 static const int kBlurSize = 55; | 1931 static const int kBlurSize = 55; |
| 1932 TEST_F(LibYUVPlanarTest, DISABLED_ARGBBlur_Any) { | 1932 TEST_F(LibYUVPlanarTest, ARGBBlur_Any) { |
| 1933 int max_diff = TestBlur(benchmark_width_ - 1, benchmark_height_, | 1933 int max_diff = TestBlur(benchmark_width_ - 1, benchmark_height_, |
| 1934 benchmark_iterations_, | 1934 benchmark_iterations_, |
| 1935 disable_cpu_flags_, benchmark_cpu_info_, | 1935 disable_cpu_flags_, benchmark_cpu_info_, |
| 1936 +1, 0, kBlurSize); | 1936 +1, 0, kBlurSize); |
| 1937 EXPECT_LE(max_diff, 1); | 1937 EXPECT_LE(max_diff, 1); |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 TEST_F(LibYUVPlanarTest, ARGBBlur_Unaligned) { | 1940 TEST_F(LibYUVPlanarTest, ARGBBlur_Unaligned) { |
| 1941 int max_diff = TestBlur(benchmark_width_, benchmark_height_, | 1941 int max_diff = TestBlur(benchmark_width_, benchmark_height_, |
| 1942 benchmark_iterations_, | 1942 benchmark_iterations_, |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2352 | 2352 |
| 2353 TEST_F(LibYUVPlanarTest, SetPlane_Opt) { | 2353 TEST_F(LibYUVPlanarTest, SetPlane_Opt) { |
| 2354 int max_diff = TestARGBRect(benchmark_width_, benchmark_height_, | 2354 int max_diff = TestARGBRect(benchmark_width_, benchmark_height_, |
| 2355 benchmark_iterations_, | 2355 benchmark_iterations_, |
| 2356 disable_cpu_flags_, benchmark_cpu_info_, | 2356 disable_cpu_flags_, benchmark_cpu_info_, |
| 2357 +1, 0, 1); | 2357 +1, 0, 1); |
| 2358 EXPECT_EQ(0, max_diff); | 2358 EXPECT_EQ(0, max_diff); |
| 2359 } | 2359 } |
| 2360 | 2360 |
| 2361 } // namespace libyuv | 2361 } // namespace libyuv |
| OLD | NEW |