[FFmpeg-devel] [PATCH] libcaca output device
Paul B Mahol
onemda at gmail.com
Fri Jul 20 03:14:34 CEST 2012
On 7/19/12, Stefano Sabatini <stefasab at gmail.com> wrote:
> On date Thursday 2012-07-19 22:31:17 +0000, Paul B Mahol encoded:
>> On 7/19/12, Stefano Sabatini <stefasab at gmail.com> wrote:
>> > On date Thursday 2012-07-19 18:43:57 +0000, Paul B Mahol encoded:
>> >> On 7/19/12, Stefano Sabatini <stefasab at gmail.com> wrote:
>> [...]
>> >> > Note: we could create a list driver|algorithm|antialias|color|...
>> >> > option
>> >> > showing the supported stuff.
>> >>
>> >> Could you elaborate this?
>> >
>> > I mean:
>> > void list_drivers(void *log_ctx)
>> > {
>> > int i;
>> > const char *const *drivers = caca_get_display_driver_list();
>> > for (i = 0; drivers[i]; i += 2)
>> > av_log(s, AV_LOG_INFO, "%s : %s\n", drivers[i], drivers[i +
>> > 1]);
>> > }
>> >
>> > coupled with an option -list_drivers 0|1.
>> >
>> > if (!c->display) {
>> > av_log(s, AV_LOG_ERROR, "Failed to create display.\n");
>> > av_log(s, AV_LOG_INFO, "Possible drivers:\n");
>> > list_drivers(s);
>> > }
>>
>> This is pointless, if there is AV_OPT_FUNCTION or something similar
>> it could be useful.
>> For now it is just code bload.
>
> Well it was just an idea and I regarded the possibility to list
> supported things (e.g. for helping scripts) as useful, check for
> example the -list_* options in dshow.c.
They are sort of ugly, and needs redundant 1.
More information about the ffmpeg-devel
mailing list