raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
152 stars 65 forks source link

Feature: add support for Extended Controls (VIDIOC_S_EXT_CTRLS) #39

Closed andresv closed 2 years ago

andresv commented 3 years ago

Currently set_control uses VIDIOC_S_CTRL however sometimes it is also useful to use VIDIOC_S_EXT_CTRLS: https://www.kernel.org/doc/html/v4.9/media/uapi/v4l/extended-controls.html

raymanfx commented 3 years ago

Would you be willing to take a stab at the implementation? This functionality is not hugely important to me right now, so not sure when I would get time for it.

andresv commented 3 years ago

I can see that rscam https://github.com/loyd/rscam/blob/master/src/lib.rs#L495 only uses VIDIOC_S_EXT_CTRLS. Maybe lets keep it as a placeholder for now.

raymanfx commented 2 years ago

Should be closed by https://github.com/raymanfx/libv4l-rs/pull/41, which has been merged today. Let me know if anything else is missing.