| 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 |
| 11 #include <stdlib.h> | 11 #include <stdlib.h> |
| 12 #include <time.h> | 12 #include <time.h> |
| 13 | 13 |
| 14 #include "libyuv/convert.h" | 14 #include "libyuv/convert_argb.h" |
| 15 #include "libyuv/cpu_id.h" | 15 #include "libyuv/cpu_id.h" |
| 16 #include "libyuv/row.h" | 16 #include "libyuv/row.h" // For align_buffer_64 |
| 17 #include "libyuv/scale_argb.h" | 17 #include "libyuv/scale_argb.h" |
| 18 #include "libyuv/video_common.h" | 18 #include "libyuv/video_common.h" |
| 19 #include "../unit_test/unit_test.h" | 19 #include "../unit_test/unit_test.h" |
| 20 | 20 |
| 21 namespace libyuv { | 21 namespace libyuv { |
| 22 | 22 |
| 23 #define STRINGIZE(line) #line | 23 #define STRINGIZE(line) #line |
| 24 #define FILELINESTR(file, line) file ":" STRINGIZE(line) | 24 #define FILELINESTR(file, line) file ":" STRINGIZE(line) |
| 25 | 25 |
| 26 // Test scaling with C vs Opt and return maximum pixel difference. 0 = exact. | 26 // Test scaling with C vs Opt and return maximum pixel difference. 0 = exact. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 benchmark_height_ * 3 / 2, | 455 benchmark_height_ * 3 / 2, |
| 456 benchmark_width_, benchmark_height_, | 456 benchmark_width_, benchmark_height_, |
| 457 libyuv::kFilterBilinear, | 457 libyuv::kFilterBilinear, |
| 458 benchmark_iterations_, | 458 benchmark_iterations_, |
| 459 disable_cpu_flags_, benchmark_cpu_info_); | 459 disable_cpu_flags_, benchmark_cpu_info_); |
| 460 EXPECT_LE(diff, 10); | 460 EXPECT_LE(diff, 10); |
| 461 } | 461 } |
| 462 | 462 |
| 463 | 463 |
| 464 } // namespace libyuv | 464 } // namespace libyuv |
| OLD | NEW |