From e3900d1bf9fdb7200cfda7b73e59b5aac03c6f18 Mon Sep 17 00:00:00 2001 From: Jean-Michel Hautbois Date: Thu, 24 Feb 2022 16:11:11 +0100 Subject: ipa: ipu3: Shorten exposure and gain lines When the effective sensor values are stored during the EventStatReady event, the lines are long. Fix it. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Umang Jain --- src/ipa/ipu3/ipu3.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ipa/ipu3') diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index 3d307708..c0c29416 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -547,8 +547,11 @@ void IPAIPU3::processEvent(const IPU3Event &event) const ipu3_uapi_stats_3a *stats = reinterpret_cast(mem.data()); - context_.frameContext.sensor.exposure = event.sensorControls.get(V4L2_CID_EXPOSURE).get(); - context_.frameContext.sensor.gain = camHelper_->gain(event.sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get()); + int32_t exposure = event.sensorControls.get(V4L2_CID_EXPOSURE).get(); + int32_t gain = event.sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get(); + + context_.frameContext.sensor.exposure = exposure; + context_.frameContext.sensor.gain = camHelper_->gain(gain); parseStatistics(event.frame, event.frameTimestamp, stats); break; -- cgit v1.2.1