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
526526 " Use the specified number of threads\n"
527527 " -cpuflags <cpuflags>\n"
528528 " Uses the specified cpuflags in the tests\n"
529+ " -v <level>\n"
530+ " Enable log verbosity at given level\n"
529531 );
530532 return 0;
531533 }
@@ -573,6 +575,8 @@ int main(int argc, char **argv) · 41 unmodified lines
573575 opts.threads = atoi(argv[i + 1]);
574576 } else if (!strcmp(argv[i], "-p")) {
575577 opts.prob = atof(argv[i + 1]);
578+ } else if (!strcmp(argv[i], "-v")) {
579+ av_log_set_level(atoi(argv[i + 1]));
576580 } else {
577581 bad_option:
578582 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