From 62d75662391733cb97edfe1ed000afe2360bc0f3 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 12 Dec 2009 16:18:11 +0000 Subject: 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 --- cmdutils.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmdutils.c') 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(); -- cgit v1.2.3