libv4l-rs icon indicating copy to clipboard operation
libv4l-rs copied to clipboard

control: Add `Type::Unknown`

Open MarijnS95 opened this issue 10 months ago • 0 comments

Fixes #98

Draft change to make conversion from v4l2_query_ext_ctrl to Description - and within it u32 to a Type - fallible rather than panicking on unknown type values.

This approach includes a few breaking changes, to store the unknown type in the struct. Alternatively we could make the entire conversion for v4l2_query_ext_ctrl fallible via TryFrom?

MarijnS95 avatar Apr 08 '24 18:04 MarijnS95