[FFmpeg-devel] [PATCH 2/4] lavd: add device capabilities API

Lukasz Marek lukasz.m.luki at gmail.com
Sun Feb 16 13:28:03 CET 2014


>> This version still has one open issue: how does it express a limited set of
>> frame sizes. For example, if a webcam supports exactly 640×480 and 320×240.
>> Does it return { 320, 640 } for the width and { 240, 480 } for the height?
>> Is the application supposed to try each width in turn and query the
>> corresponding range for height? It works, although it is a bit cumbersome,
>> but it is not intuitive: maybe add a comment, or do it like that in the
>> examples.
>
> maybe AV_OPT_TYPE_IMAGE_SIZE, should be used

Can AV_OPT_TYPE_IMAGE_SIZE be represented in AVOptionRange?
I'm asking because I'm willing to change that, but not sure it is doable 
without changing AVOptionRange struct.


-- 
Best Regards,
Lukasz Marek

A question that sometimes drives me hazy: am I or are the others crazy? 
- Albert Einstein


More information about the ffmpeg-devel mailing list