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 committed 2009-12-12 16:18:11 +00:00
1 parent 106fa129f4
commit 62d7566239
6 files changed
+23

No files matched your search

+9
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();
+6
View File
@@ -163,6 +163,12 @@ void show_formats(void);
*/
void show_codecs(void);
/**
* Prints a listing containing all the filters supported by the
* program.
*/
void show_filters(void);
/**
* Prints a listing containing all the bit stream filters supported by the
* program.
+1
View File
@@ -5,4 +5,5 @@
{ "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" },
{ "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" },
{ "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" },
{ "filters", OPT_EXIT, {(void*)show_filters }, "show available filters" },
{ "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
+3
View File
@@ -270,6 +270,9 @@ Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -f @var{fmt}
Force format.
+2
View File
@@ -43,6 +43,8 @@ Show available codecs.
Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -x @var{width}
Force displayed width.
@item -y @var{height}
+2
View File
@@ -249,6 +249,8 @@ Show available codecs.
Show available bitstream filters.
@item -protocols
Show available protocols.
@item -filters
Show available libavfilter filters.
@item -h
Show help.
@item -loglevel @var{loglevel}