aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-12-12 16:18:11 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-12-12 16:18:11 +0000
commit62d75662391733cb97edfe1ed000afe2360bc0f3 (patch)
tree885b59dfbfbb43f1a69d0a2ee633a791f51337cb /cmdutils.c
parent106fa129f498c93f9639a09d186c2223abe2b2c0 (diff)
downloadffmpeg-62d75662391733cb97edfe1ed000afe2360bc0f3.tar.gz
Implement a -filters option, listing all the available libavfilter
filters. Currently filters are not registered, so the option will show none. Originally committed as revision 20807 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 5ed70f07e4..b87eea363a 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -560,6 +560,15 @@ void show_protocols(void)
printf("Frame size, frame rate abbreviations:\n ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif\n");
}
+void show_filters(void)
+{
+ AVFilter **filter = NULL;
+
+ printf("Filters:\n");
+ while ((filter = av_filter_next(filter)) && *filter)
+ printf("%-16s %s\n", (*filter)->name, (*filter)->description);
+}
+
int read_yesno(void)
{
int c = getchar();