mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
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: 200d535ca8
("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>
This commit is contained in:
parent
4c131dfa5c
commit
ed3f3f6aa6
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue