summaryrefslogtreecommitdiff
path: root/include/libcamera
diff options
context:
space:
mode:
authorDaniel Scally <dan.scally@ideasonboard.com>2024-05-02 14:30:40 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-05-08 09:47:07 +0100
commit6728160b11fd849224f8bc581340cea9876e0c9a (patch)
tree04010304132560de347382f95fb8b4826748876e /include/libcamera
parent76e2db61ee15a78c0be95a563ef74c9e2493fa84 (diff)
libcamera: controls: Generate enum value-name maps
Generate maps for each control enum which associate strings that represent the enum values with the values themselves. This change will allow us to refer to enumerated control values using the string. For example if we want to pass variables to an algorithm for use when a control has a particular value we can embed within tuning files a dictionary that uses the control values as keys. Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera')
-rw-r--r--include/libcamera/control_ids.h.in2
-rw-r--r--include/libcamera/property_ids.h.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libcamera/control_ids.h.in b/include/libcamera/control_ids.h.in
index d53b1cf7..58dd48e1 100644
--- a/include/libcamera/control_ids.h.in
+++ b/include/libcamera/control_ids.h.in
@@ -10,7 +10,9 @@
#pragma once
#include <array>
+#include <map>
#include <stdint.h>
+#include <string>
#include <libcamera/controls.h>
diff --git a/include/libcamera/property_ids.h.in b/include/libcamera/property_ids.h.in
index 43372c71..f51ba028 100644
--- a/include/libcamera/property_ids.h.in
+++ b/include/libcamera/property_ids.h.in
@@ -9,7 +9,9 @@
#pragma once
+#include <map>
#include <stdint.h>
+#include <string>
#include <libcamera/controls.h>