raymanfx / libv4l-rs

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

Safe ioctl calls to set parameters #36

Closed andresv closed 3 years ago

andresv commented 3 years ago

I was wondering if this crate supports safe ioctl calls to set parameters like this: https://github.com/loyd/rscam/blob/master/examples/control.rs#L18

Searching for ioctl only finds unsafe calls, so I assume there isn't safe wrapper available at the moment?

andresv commented 3 years ago

Found it https://github.com/raymanfx/libv4l-rs/blob/55178864a0a2dab508f9151d48913949985df35f/src/device.rs#L191