History

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).

Ramiro Polla committed 2 years ago

Commit e308d091 parent d1acd681 file · +4 −4Browse files

Unified · Split

tests/checkasm/sw_range_convert.c+4−4
@@ -31,8 +31,8 @@ · 30 unmodified lines
3131 static void check_lumConvertRange(int from)
3232 {
3333 const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg";
34−#define LARGEST_INPUT_SIZE 512
35− static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
34+#define LARGEST_INPUT_SIZE 1920
35+ static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
3636 SwsContext *sws;
3737 SwsInternal *c;
3838
@@ -75,8 +75,8 @@ static void check_lumConvertRange(int from) · 36 unmodified lines
7575 static void check_chrConvertRange(int from)
7676 {
7777 const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg";
78−#define LARGEST_INPUT_SIZE 512
79− static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
78+#define LARGEST_INPUT_SIZE 1920
79+ static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
8080 SwsContext *sws;
8181 SwsInternal *c;
8282

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t