Closed positlabs closed 5 years ago
I have a prototype, but it doesn't seem accurate. e.g. contrast is not listed, but I know it is supported on my Logitech Brio.
https://github.com/positlabs/node-uvc-control/blob/controls/test/get-supported-controls.js
Another approach would be to brute-force getting/setting control values and see which ones succeed
We shouldn't pass controls to the user unless they are supported by the device. There is supposedly a list of supported controls in the Processing Unit Descriptor and Camera Terminal Descriptor.
The
bmControls
field in those descriptors is a 3 byte bitmap that lists supported controls. I'm not exactly sure how to get these descriptors, but it seems like they may be stashed in the "extra" buffer of one of the interface descriptors.