[FFmpeg-devel] [PATCH v2 07/16] checkasm/sw_range_convert: only run benchmarks on largest input width
Ramiro Polla
ramiro.polla at gmail.com
Fri Sep 27 15:52:32 EEST 2024
---
tests/checkasm/sw_range_convert.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index df27b6c81e..e97388d14a 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -62,6 +62,7 @@ static void check_lumConvertRange(int from)
call_new(dst1, width);
if (memcmp(dst0, dst1, width * sizeof(int16_t)))
fail();
+ if (width == LARGEST_INPUT_SIZE)
bench_new(dst1, width);
}
}
@@ -109,6 +110,7 @@ static void check_chrConvertRange(int from)
if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
memcmp(dstV0, dstV1, width * sizeof(int16_t)))
fail();
+ if (width == LARGEST_INPUT_SIZE)
bench_new(dstU1, dstV1, width);
}
}
--
2.30.2
More information about the ffmpeg-devel
mailing list