summaryrefslogtreecommitdiff
path: root/src/libcamera/control_ids.cpp.in
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-10-20 17:43:15 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-10-26 17:51:55 +0100
commitef7a07dd8a3634d9dd5d0383b86e3a1a69d7c768 (patch)
treeabe64259152a9101d040511e99796cd65e6525d0 /src/libcamera/control_ids.cpp.in
parent7a307fa6472789b30a13567371714a0f0ee0ab76 (diff)
libcamera: controls: Generate an array of valid values
For each Control that supports enumerated values generate an array of ControlValue which contains the full list of valid values. At the expense of a slight increase in memory occupation this change allows the construction of the ControlInfo associated with a Control from the values list, defaulting the minimum and maximum values reported by the ControlInfo. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/control_ids.cpp.in')
-rw-r--r--src/libcamera/control_ids.cpp.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/control_ids.cpp.in b/src/libcamera/control_ids.cpp.in
index 056645cf..5fb1c2c3 100644
--- a/src/libcamera/control_ids.cpp.in
+++ b/src/libcamera/control_ids.cpp.in
@@ -8,6 +8,7 @@
*/
#include <libcamera/control_ids.h>
+#include <libcamera/controls.h>
/**
* \file control_ids.h