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).
This commit is contained in:
Ramiro Polla 2024-09-18 16:35:23 +02:00
parent d1acd68d73
commit e308d09fba
1 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@
static void check_lumConvertRange(int from) static void check_lumConvertRange(int from)
{ {
const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg"; const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg";
#define LARGEST_INPUT_SIZE 512 #define LARGEST_INPUT_SIZE 1920
static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
SwsContext *sws; SwsContext *sws;
SwsInternal *c; SwsInternal *c;
@ -75,8 +75,8 @@ static void check_lumConvertRange(int from)
static void check_chrConvertRange(int from) static void check_chrConvertRange(int from)
{ {
const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg"; const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg";
#define LARGEST_INPUT_SIZE 512 #define LARGEST_INPUT_SIZE 1920
static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
SwsContext *sws; SwsContext *sws;
SwsInternal *c; SwsInternal *c;