Gnurou / v4l2r

Rust bindings for V4L2
MIT License
21 stars 10 forks source link

ioctl functions should probably return the raw V4L2 type? #26

Open Gnurou opened 4 months ago

Gnurou commented 4 months ago

ioctls currently go through the labor of converting the ioctl result into a higher-level, safer representation. This comes with a few disadvantages:

Wouldn't it be better to just return the raw V4L2 type (with the exception of v4l2_buffer and v4l2_ext_controls) and let the caller perform the conversion they want?