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
This commit is contained in:
Stefano Sabatini
2009-12-12 16:18:11 +00:00
parent 106fa129f4
commit 62d7566239
6 changed files with 23 additions and 0 deletions

View File

@@ -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();