Originally committed as revision 20909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -582,6 +582,11 @@ void show_filters(void) · 581 unmodified lines | |||
| 582 | #endif | 582 | #endif |
| 583 | } | 583 | } |
| 584 | 584 | ||
| 585 | void show_pix_fmts(void) | ||
| 586 | { | ||
| 587 | list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB); | ||
| 588 | } | ||
| 589 | |||
| 585 | int read_yesno(void) | 590 | int read_yesno(void) |
| 586 | { | 591 | { |
| 587 | int c = getchar(); | 592 | int c = getchar(); |
| @@ -183,6 +183,12 @@ void show_bsfs(void); · 182 unmodified lines | |||
| 183 | */ | 183 | */ |
| 184 | void show_protocols(void); | 184 | void show_protocols(void); |
| 185 | 185 | ||
| 186 | /** | ||
| 187 | * Prints a listing containing all the pixel formats supported by the | ||
| 188 | * program. | ||
| 189 | */ | ||
| 190 | void show_pix_fmts(void); | ||
| 191 | |||
| 186 | /** | 192 | /** |
| 187 | * Returns a positive value if reads from standard input a line | 193 | * Returns a positive value if reads from standard input a line |
| 188 | * starting with [yY], otherwise returns 0. | 194 | * starting with [yY], otherwise returns 0. |
| @@ -9,4 +9,5 @@ · 8 unmodified lines | |||
| 9 | { "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" }, | 9 | { "bsfs" , OPT_EXIT, {(void*)show_bsfs }, "show available bit stream filters" }, |
| 10 | { "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" }, | 10 | { "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" }, |
| 11 | { "filters", OPT_EXIT, {(void*)show_filters }, "show available filters" }, | 11 | { "filters", OPT_EXIT, {(void*)show_filters }, "show available filters" }, |
| 12 | { "pix_fmts" , OPT_EXIT, {(void*)show_pix_fmts }, "show available pixel formats" }, | ||
| 12 | { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, | 13 | { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" }, |
| @@ -46,6 +46,9 @@ Show available protocols. · 45 unmodified lines | |||
| 46 | @item -filters | 46 | @item -filters |
| 47 | Show available libavfilter filters. | 47 | Show available libavfilter filters. |
| 48 | 48 | ||
| 49 | @item -pix_fmts | ||
| 50 | Show available pixel formats. | ||
| 51 | |||
| 49 | @item -loglevel @var{loglevel} | 52 | @item -loglevel @var{loglevel} |
| 50 | Set the logging level used by the library. | 53 | Set the logging level used by the library. |
| 51 | @var{loglevel} is a number or a string containing one of the following values: | 54 | @var{loglevel} is a number or a string containing one of the following values: |