From 5242b78c0bfa2ea2849fb428ca8ece2ffb83f9fe Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Wed, 7 Jun 2023 11:00:53 +0100 Subject: 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 Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/ipa/rpi/controller/agc_status.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ipa/rpi/controller/agc_status.h') 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 + #include /* @@ -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; -- cgit v1.2.1