mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
disable slow planar tests Blur and Polynomial
These 2 functions are only optimized for Intel Mark them as disabled so they wont run by default on ARM. Bug: None Change-Id: If5e0d8d579b2b6db7371642ca42867973de1d0e5 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2788113 Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
This commit is contained in:
parent
312c02a5aa
commit
2525698acb
@ -1966,29 +1966,35 @@ static int TestBlur(int width,
|
||||
return max_diff;
|
||||
}
|
||||
|
||||
#if defined(ENABLE_SLOW_TESTS) || defined(__x86_64__) || defined(__i386__)
|
||||
#define DISABLED_ARM(name) name
|
||||
#else
|
||||
#define DISABLED_ARM(name) DISABLED_##name
|
||||
#endif
|
||||
|
||||
static const int kBlurSize = 55;
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlur_Any) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlur_Any)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_ - 1, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 0, kBlurSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlur_Unaligned) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlur_Unaligned)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 1, kBlurSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlur_Invert) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlur_Invert)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, -1, 0, kBlurSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlur_Opt) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlur_Opt)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 0, kBlurSize);
|
||||
@ -1996,35 +2002,35 @@ TEST_F(LibYUVPlanarTest, ARGBBlur_Opt) {
|
||||
}
|
||||
|
||||
static const int kBlurSmallSize = 5;
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlurSmall_Any) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlurSmall_Any)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_ - 1, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 0, kBlurSmallSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlurSmall_Unaligned) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlurSmall_Unaligned)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 1, kBlurSmallSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlurSmall_Invert) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlurSmall_Invert)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, -1, 0, kBlurSmallSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, ARGBBlurSmall_Opt) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(ARGBBlurSmall_Opt)) {
|
||||
int max_diff =
|
||||
TestBlur(benchmark_width_, benchmark_height_, benchmark_iterations_,
|
||||
disable_cpu_flags_, benchmark_cpu_info_, +1, 0, kBlurSmallSize);
|
||||
EXPECT_LE(max_diff, 1);
|
||||
}
|
||||
|
||||
TEST_F(LibYUVPlanarTest, TestARGBPolynomial) {
|
||||
TEST_F(LibYUVPlanarTest, DISABLED_ARM(TestARGBPolynomial)) {
|
||||
SIMD_ALIGNED(uint8_t orig_pixels[1280][4]);
|
||||
SIMD_ALIGNED(uint8_t dst_pixels_opt[1280][4]);
|
||||
SIMD_ALIGNED(uint8_t dst_pixels_c[1280][4]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user