diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-10-18 18:06:32 +0200 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-10-18 17:17:07 +0100 |
commit | ed3f3f6aa6f2dded584e1b3d3f97e8bceea1b2cd (patch) | |
tree | d62d50bbc4ef96cd97aaf26d1aafe8979b4f23d2 /include | |
parent | 4c131dfa5cebd96f413cfe490a899ba10796e95f (diff) |
libcamera: controls: Add missing size to control_type<Point>
The size member is missing in control_type<Point>. This did not do any
harm because the only control using the Point type was an array control.
As soon as a control-id with a non-array Point control gets defined, the
compile fails with:
error: size is not a member of libcamera::details::control_type<libcamera::Point>
Fixes: 200d535ca85f ("libcamera: controls: Add ControlTypePoint")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/controls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index ca60bbac..28fec767 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -101,6 +101,7 @@ struct control_type<Size> { template<> struct control_type<Point> { static constexpr ControlType value = ControlTypePoint; + static constexpr std::size_t size = 0; }; template<typename T, std::size_t N> |