> So the only thing I would like to see added to the v4l spec is a way to
> find out what sizes and formats a driver supports.
> The library would simply ask a driver if it can scale or if it can't it
> takes the nearest available format out a driver supplied list and scales
> it
> itself.

I took a quick look through the api document and would like to propose the
following:

Two new fields are to be added to VIDIOCGCAP, namely 'sizes' and 'formats'.
If the hardware can scale between the max and min sizes it simply sets
sizes to zero.
(All bttv folks are happy now), if not it returns the number of sizes the
driver supports.

Next we add two new ioctls: VIDIOCGSIZES and VIDIOCGFORMATS.
With the sizes and formats values from VIDIOCGCAP our brand new library can
determine the sizes of the buffers needed for these ioctls and get the
actual sizes/formats.

Any comments?

Jeroen


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to