Commit 62d75662 authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent 106fa129
...@@ -560,6 +560,15 @@ void show_protocols(void) ...@@ -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"); 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 read_yesno(void)
{ {
int c = getchar(); int c = getchar();
......
...@@ -163,6 +163,12 @@ void show_formats(void); ...@@ -163,6 +163,12 @@ void show_formats(void);
*/ */
void show_codecs(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 * Prints a listing containing all the bit stream filters supported by the
* program. * program.
......
...@@ -5,4 +5,5 @@ ...@@ -5,4 +5,5 @@
{ "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" }, { "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" },
{ "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" }, { "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" },
{ "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" }, { "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" }, { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
...@@ -270,6 +270,9 @@ Show available bitstream filters. ...@@ -270,6 +270,9 @@ Show available bitstream filters.
@item -protocols @item -protocols
Show available protocols. Show available protocols.
@item -filters
Show available libavfilter filters.
@item -f @var{fmt} @item -f @var{fmt}
Force format. Force format.
......
...@@ -43,6 +43,8 @@ Show available codecs. ...@@ -43,6 +43,8 @@ Show available codecs.
Show available bitstream filters. Show available bitstream filters.
@item -protocols @item -protocols
Show available protocols. Show available protocols.
@item -filters
Show available libavfilter filters.
@item -x @var{width} @item -x @var{width}
Force displayed width. Force displayed width.
@item -y @var{height} @item -y @var{height}
......
...@@ -249,6 +249,8 @@ Show available codecs. ...@@ -249,6 +249,8 @@ Show available codecs.
Show available bitstream filters. Show available bitstream filters.
@item -protocols @item -protocols
Show available protocols. Show available protocols.
@item -filters
Show available libavfilter filters.
@item -h @item -h
Show help. Show help.
@item -loglevel @var{loglevel} @item -loglevel @var{loglevel}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment