access to ALL camera controls for an UVC webcam

Ager Florian (BSH GDE-EDSD7) Florian.Ager at bshg.com
Mon Jul 29 11:58:51 CEST 2024


Hello,

How to get access to ALL controls which this USB UVC camera supports ?
If  this is called: "LIBCAMERA_LOG_LEVELS="*..:DEBUG" cam -c 1 --list-controls"
I got something like this:

[115:52:02.032372500] [2252] DEBUG DeviceEnumerator device_enumerator.cpp:318 Successful match for media device "uvcvideo"
[115:52:02.032945000] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Brightness (0x00980900)
[115:52:02.033139375] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Contrast (0x00980901)
[115:52:02.033281250] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Saturation (0x00980902)
[115:52:02.033506000] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: White Balance Temperature, Auto (0x0098090c)
[115:52:02.033775250] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Gamma (0x00980910)
[115:52:02.033906125] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Gain (0x00980913)
[115:52:02.034045625] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: White Balance Temperature (0x0098091a)
[115:52:02.034163500] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Sharpness (0x0098091b)
[115:52:02.034278750] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Exposure, Auto (0x009a0901)
[115:52:02.034421625] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Exposure (Absolute) (0x009a0902)
[115:52:02.034532750] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Pan (Absolute) (0x009a0908)
[115:52:02.034597250] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Tilt (Absolute) (0x009a0909)
[115:52:02.034758375] [2252] DEBUG V4L2 v4l2_device.cpp:636 /dev/video4[11:cap]: Control: Zoom, Absolute (0x009a090d)
[115:52:02.034998750] [2252] DEBUG V4L2 v4l2_videodevice.cpp:632 /dev/video4[11:cap]: Opened device usb-ci_hdrc.0-1.2: uvcvideo: VCI-AR0521-C
[115:52:02.036675500] [2252] DEBUG Camera camera_manager.cpp:155 Pipeline handler "uvcvideo" matched
...
Using camera /base/soc at 0/bus at 32c00000/usb at 32e40000-1.2:1.0-3407:0521 as cam0
Control: Brightness: [-1.000000..1.000000]
Control: Contrast: [0.500000..1.500000]
Control: Saturation: [0.000000..5.000000]
Control: AnalogueGain: [1.000000..4.000000]
Control: AeEnable: [false..true]
Control: ExposureTime: [100..1000000]

Howto  get access to all controls ?
The "libcamera::ControlList& controls = request->controls();" method give me access to only a subset of all available controls e.g. want access to Zoom and Tilt ?


Mit freundlichen Grüßen / Kind regards,

Florian Ager
Global Development, Entwicklungsingenieur/-in GDE-EDU3 GDE-EDU3

BSH Hausgeräte GmbH, Werner-von-Siemens-Str. 200, 83301 Traunreut, Deutschland
Tel. +49 (8669) 305579
Florian.Ager at bshg.com<mailto:Florian.Ager at bshg.com>; www.bsh-group.com

BSH Hausgeräte GmbH, Carl-Wery-Str. 34, 81739 München; Vorsitzender des Aufsichtsrats: Dr. Christian Fischer; Geschäftsführung: Dr. Matthias Metz (Vorsitzender), Dr. Gerhard Dambach, Dr. Alexander Dony, Rudolf Klötscher, Lars Schubert; Sitz: München; Registergericht: Amtsgericht München, HRB 75534; WEEE-Reg.-Nr. DE 57986696

Diese Mitteilung ist ausschließlich für den beabsichtigten Empfänger bestimmt. Sie kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Jede(r) unberechtigte Gebrauch, Kopie, Weitergabe oder Veröffentlichung ist untersagt. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte sofort durch Antwortmail und löschen Sie diese E-Mail nebst etwaigen Anlagen und einschließlich aller angefertigten Kopien von Ihrem System.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240729/0cce1cfb/attachment.htm>


More information about the libcamera-devel mailing list