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).
Unified · Split
| @@ -31,8 +31,8 @@ · 30 unmodified lines | |||
| 31 | static void check_lumConvertRange(int from) | 31 | static void check_lumConvertRange(int from) |
| 32 | { | 32 | { |
| 33 | const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg"; | 33 | const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg"; |
| 34 | #define LARGEST_INPUT_SIZE 512 | 34 | #define LARGEST_INPUT_SIZE 1920 |
| 35 | static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; | 35 | static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; |
| 36 | SwsContext *sws; | 36 | SwsContext *sws; |
| 37 | SwsInternal *c; | 37 | SwsInternal *c; |
| 38 | 38 | ||
| @@ -75,8 +75,8 @@ static void check_lumConvertRange(int from) · 36 unmodified lines | |||
| 75 | static void check_chrConvertRange(int from) | 75 | static void check_chrConvertRange(int from) |
| 76 | { | 76 | { |
| 77 | const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg"; | 77 | const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg"; |
| 78 | #define LARGEST_INPUT_SIZE 512 | 78 | #define LARGEST_INPUT_SIZE 1920 |
| 79 | static const int input_sizes[] = {8, 24, 128, 144, 256, 512}; | 79 | static const int input_sizes[] = {8, LARGEST_INPUT_SIZE}; |
| 80 | SwsContext *sws; | 80 | SwsContext *sws; |
| 81 | SwsInternal *c; | 81 | SwsInternal *c; |
| 82 | 82 | ||