raymanfx / libv4l-rs

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

Retain instead of truncate unknown flags when converting to `bitflags` #80

Closed MarijnS95 closed 1 year ago

MarijnS95 commented 1 year ago

Depends on #79

bitflags intrinsically supports holding unknown flag values, and pretty-printing a non-zero hex code if there are any. This should make our conversion functions lossless and allow us/users to more easily spot new, unsupported constants.