ffmpeg | branch: master | Niklas Haas <g...@haasn.dev> | Thu Feb 27 22:06:20 
2025 +0100| [3e32dc8b0834b8a3f7487eb31c4aa41488846384] | committer: Niklas Haas

tests/swscale: allow setting log verbosity

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e32dc8b0834b8a3f7487eb31c4aa41488846384
---

 libswscale/tests/swscale.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index d3c0cfdc43..7081058130 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -526,6 +526,8 @@ int main(int argc, char **argv)
                     "       Use the specified number of threads\n"
                     "   -cpuflags <cpuflags>\n"
                     "       Uses the specified cpuflags in the tests\n"
+                    "   -v <level>\n"
+                    "       Enable log verbosity at given level\n"
             );
             return 0;
         }
@@ -573,6 +575,8 @@ int main(int argc, char **argv)
             opts.threads = atoi(argv[i + 1]);
         } else if (!strcmp(argv[i], "-p")) {
             opts.prob = atof(argv[i + 1]);
+        } else if (!strcmp(argv[i], "-v")) {
+            av_log_set_level(atoi(argv[i + 1]));
         } else {
 bad_option:
             fprintf(stderr, "bad option or argument missing (%s) see -help\n", 
argv[i]);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to