From e308d09fba4dcfc585d1105848a024234fcb9b5b Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 18 Sep 2024 16:35:23 +0200 Subject: [PATCH] checkasm/sw_range_convert: reduce number of input sizes tested Reduce input sizes to 8 (to test that the function works with widths smaller than the vector length) and 1920 (raising the largest input size to improve benchmark results). --- tests/checkasm/sw_range_convert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c index 005a732f85..121a459eb6 100644 --- a/tests/checkasm/sw_range_convert.c +++ b/tests/checkasm/sw_range_convert.c @@ -31,8 +31,8 @@ static void check_lumConvertRange(int from) { const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg"; -#define LARGEST_INPUT_SIZE 512 - static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; +#define LARGEST_INPUT_SIZE 1920 + static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; SwsContext *sws; SwsInternal *c; @@ -75,8 +75,8 @@ static void check_lumConvertRange(int from) static void check_chrConvertRange(int from) { const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg"; -#define LARGEST_INPUT_SIZE 512 - static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; +#define LARGEST_INPUT_SIZE 1920 + static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; SwsContext *sws; SwsInternal *c;