From 97cba0ebea6e553065f77f18471b3a5997c390d4 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 26 Feb 2020 10:38:38 +0100 Subject: libcamera: controls: Add support for byte controls Add support for byte values to the control framework and to the control serializer. 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/libcamera/controls.h') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 0ad442b9..4767e2d3 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -22,6 +22,7 @@ class ControlValidator; enum ControlType { ControlTypeNone, ControlTypeBool, + ControlTypeByte, ControlTypeInteger32, ControlTypeInteger64, ControlTypeFloat, @@ -43,6 +44,11 @@ struct control_type { static constexpr ControlType value = ControlTypeBool; }; +template<> +struct control_type { + static constexpr ControlType value = ControlTypeByte; +}; + template<> struct control_type { static constexpr ControlType value = ControlTypeInteger32; -- cgit v1.2.1