By Date: <-- -->
By Thread: <-- -->

RFC: V4L2 VIDIOC_ENUM_FMT



Le Lundi 22 Mai 2006 00:27, Hans Verkuil a écrit :
I am reading the V4l2 draft  to set spca5xx/gspca to v4l2. 
when an apps know nothing about a webcam it ask the driver to get a minimal 
capabilities.
For example i need to know if the webcam know :
palette,  heigh, width what is the minimal and maximal frame rate.
I have find VIDIOC_ENUM_FMT (page 79 draft 0.12 ) but unfortunatelly that did 
not allow these parameters. 
Is there a way instead of trial an error with VIDIOC_TRY_FMT,  to get a list 
of available hardware setting ?
 If not is there possible to extand struct v4l2_fmtdesc to get these 
parameters from VIDIOC_ENUM_FMT ?
Maybe it is webcam specific, but be sure that will help apps developpement. At 
the moment a userspace apps have to play "poker" with the device :)
Best regards
-- 
Michel Xhaard
http://mxhaard.free.fr

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list