diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/controls.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index fd5005bc..b24336cc 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -29,6 +29,7 @@ enum ControlType { ControlTypeNone, ControlTypeBool, ControlTypeByte, + ControlTypeUnsigned16, ControlTypeUnsigned32, ControlTypeInteger32, ControlTypeInteger64, @@ -64,6 +65,12 @@ struct control_type<uint8_t> { }; template<> +struct control_type<uint16_t> { + static constexpr ControlType value = ControlTypeUnsigned16; + static constexpr std::size_t size = 0; +}; + +template<> struct control_type<uint32_t> { static constexpr ControlType value = ControlTypeUnsigned32; static constexpr std::size_t size = 0; |