summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/agc_status.h
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-06-07 11:00:53 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-06-07 20:31:02 +0100
commit5242b78c0bfa2ea2849fb428ca8ece2ffb83f9fe (patch)
tree3b74f7910c477f34729013523829169574def87e /src/ipa/rpi/controller/agc_status.h
parentc6ff999053cef89813d6b2f4601b9ec5d2590167 (diff)
ipa: rpi: agc: Use std::string instead of char arrays
Replace the char array strings in struct AgcStatus with std::string objects. This simplifies the string handling in the source code. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/controller/agc_status.h')
-rw-r--r--src/ipa/rpi/controller/agc_status.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ipa/rpi/controller/agc_status.h b/src/ipa/rpi/controller/agc_status.h
index 6abf09d9..6c112e76 100644
--- a/src/ipa/rpi/controller/agc_status.h
+++ b/src/ipa/rpi/controller/agc_status.h
@@ -6,6 +6,8 @@
*/
#pragma once
+#include <string>
+
#include <libcamera/base/utils.h>
/*
@@ -24,9 +26,9 @@ struct AgcStatus {
libcamera::utils::Duration targetExposureValue; /* (unfiltered) target total exposure AGC is aiming for */
libcamera::utils::Duration shutterTime;
double analogueGain;
- char exposureMode[32];
- char constraintMode[32];
- char meteringMode[32];
+ std::string exposureMode;
+ std::string constraintMode;
+ std::string meteringMode;
double ev;
libcamera::utils::Duration flickerPeriod;
int floatingRegionEnable;