summaryrefslogtreecommitdiff
path: root/include/libcamera/control_ids.h.in
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/control_ids.h.in
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/control_ids.h.in')
-rw-r--r--include/libcamera/control_ids.h.in2
1 files changed, 2 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>