[FFmpeg-devel] [PATCH 1/8] lavu/log: add device categories
Lukasz Marek
lukasz.m.luki at gmail.com
Tue Feb 25 00:43:05 CET 2014
On 25.02.2014 00:32, Michael Niedermayer wrote:
> On Sat, Feb 22, 2014 at 11:33:35PM +0100, Lukasz Marek wrote:
>> TODO: micro bump?
>>
>> Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
>> ---
>> libavutil/log.h | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/libavutil/log.h b/libavutil/log.h
>> index 5fb476f..d0ceddd 100644
>> --- a/libavutil/log.h
>> +++ b/libavutil/log.h
>> @@ -37,6 +37,12 @@ typedef enum {
>> AV_CLASS_CATEGORY_BITSTREAM_FILTER,
>> AV_CLASS_CATEGORY_SWSCALER,
>> AV_CLASS_CATEGORY_SWRESAMPLER,
>> + AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT = 100,
>> + AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
>> + AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
>> + AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
>
>> + AV_CLASS_CATEGORY_DEVICE_AUDIO_VIDEO_OUTPUT,
>> + AV_CLASS_CATEGORY_DEVICE_AUDIO_VIDEO_INPUT,
>
> AUDIO_VIDEO is redundant here i guess
> so it could be
>> + AV_CLASS_CATEGORY_DEVICE_OUTPUT,
>> + AV_CLASS_CATEGORY_DEVICE_INPUT,
I wanted it possible to distinguish audio and video devices. Use case is
to make a dropdown list in application's gui where user may choose which
device to use for audio/video. (see next patch with iterators). If you
have other idea how to distinguish them they give a hint.
INPUT/OUTPUT may be skipped because it is already distinguish by
input/output format structs, but I don't think there is really reason
for it.
--
Best Regards,
Lukasz Marek
Insanity: doing the same thing over and over again and expecting
different results. - Albert Einstein
More information about the ffmpeg-devel
mailing list