From 8b12a161e0280c086dfc037570ab8aee4c16bdaf Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 9 Jan 2020 14:31:00 +0100 Subject: libcamera: controls: Add support for float controls Add support for float values in Control<> and ControlValue classes. Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- include/libcamera/controls.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 2102d571..0ad442b9 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -24,6 +24,7 @@ enum ControlType { ControlTypeBool, ControlTypeInteger32, ControlTypeInteger64, + ControlTypeFloat, }; namespace details { @@ -52,6 +53,11 @@ struct control_type { static constexpr ControlType value = ControlTypeInteger64; }; +template<> +struct control_type { + static constexpr ControlType value = ControlTypeFloat; +}; + template struct control_type> : public control_type> { }; -- cgit v1.2.1