Add camera class control definitions
A message that is not in the archive (sent off-list or not yet received): ce6db52d63cbc5139236.1201510493@localhost
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · On Sun, 3 Feb 2008 20:10:37 +0100 Laurent Pinchart…
Quoted 4 lines
(quoted diff) +4
-0+enum v4l2_exposure_auto_type { + V4L2_EXPOSURE_MANUAL = 1, + V4L2_EXPOSURE_AUTO = 2, + V4L2_EXPOSURE_SHUTTER_PRIORITY = 4,
Quoted 8 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ V4L2_EXPOSURE_APERTURE_PRIORITY = 8 +};V4L2 requires menu items to be numbered from minimum (0) to maximum inclusive (see the description of
VIDIOC_QUERYMENU). IfV4L2_CID_EXPOSURE_AUTOis implemented as aV4L2_CTRL_TYPE_MENU, the above values won't comply with V4L2. Wether the menu IDs or the V4L2 spec should be changed is of course an open question :-)
Since this is "C" and not "Pascal", let's start from 0 ;)
IMO, V4L2_EXPOSURE_AUTO = 0 makes more sense, since values are initialized as zero, and auto-exposure should be the default.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 17 lines · Mauro Carvalho Chehab
Quoted 4 lines · On Sun, 3 Feb 2008 20:10:37 +0100 Laurent Pinchart…
Quoted 4 lines
(quoted diff) +4
-0+enum v4l2_exposure_auto_type { + V4L2_EXPOSURE_MANUAL = 1, + V4L2_EXPOSURE_AUTO = 2, + V4L2_EXPOSURE_SHUTTER_PRIORITY = 4,Quoted 8 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ V4L2_EXPOSURE_APERTURE_PRIORITY = 8 +};V4L2 requires menu items to be numbered from minimum (0) to maximum inclusive (see the description of
VIDIOC_QUERYMENU). IfV4L2_CID_EXPOSURE_AUTOis implemented as aV4L2_CTRL_TYPE_MENU, the above values won't comply with V4L2. Wether the menu IDs or the V4L2 spec should be changed is of course an open question :-)
Quoted 1 line
Since this is "C" and not "Pascal", let's start from 0 ;)
Agreed. I was following the lead of the UVC spec- which in hindsight isn't the right thing in this case.
I will send out a new patch.
Thanks,
Brandon
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list