History

tests/swscale: allow setting log verbosity

Helpful for debugging the new swscale code, since it dumps the operations list in verbose logging mode.

Niklas Haas committed 1 year ago

Commit 3e32dc81 parent 92a57f11 file · +4 −0Browse files

Unified · Split

libswscale/tests/swscale.c+4−0
@@ -526,6 +526,8 @@ int main(int argc, char **argv) · 525 unmodified lines
526 " Use the specified number of threads\n"526 " Use the specified number of threads\n"
527 " -cpuflags <cpuflags>\n"527 " -cpuflags <cpuflags>\n"
528 " Uses the specified cpuflags in the tests\n"528 " Uses the specified cpuflags in the tests\n"
529 " -v <level>\n"
530 " Enable log verbosity at given level\n"
529 );531 );
530 return 0;532 return 0;
531 }533 }
@@ -573,6 +575,8 @@ int main(int argc, char **argv) · 41 unmodified lines
573 opts.threads = atoi(argv[i + 1]);575 opts.threads = atoi(argv[i + 1]);
574 } else if (!strcmp(argv[i], "-p")) {576 } else if (!strcmp(argv[i], "-p")) {
575 opts.prob = atof(argv[i + 1]);577 opts.prob = atof(argv[i + 1]);
578 } else if (!strcmp(argv[i], "-v")) {
579 av_log_set_level(atoi(argv[i + 1]));
576 } else {580 } else {
577bad_option:581bad_option:
578 fprintf(stderr, "bad option or argument missing (%s) see -help\n", argv[i]);582 fprintf(stderr, "bad option or argument missing (%s) see -help\n", argv[i]);

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