summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipu3.cpp
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2022-02-24 16:11:11 +0100
committerUmang Jain <umang.jain@ideasonboard.com>2022-03-11 20:47:11 +0530
commite3900d1bf9fdb7200cfda7b73e59b5aac03c6f18 (patch)
treede350a4764d3c62137c7ad99573c955977f41759 /src/ipa/ipu3/ipu3.cpp
parent046ca79086b347cb90932bc94899abdf0604cb06 (diff)
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 <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/ipu3.cpp')
-rw-r--r--src/ipa/ipu3/ipu3.cpp7
1 files changed, 5 insertions, 2 deletions
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<ipu3_uapi_stats_3a *>(mem.data());
- context_.frameContext.sensor.exposure = event.sensorControls.get(V4L2_CID_EXPOSURE).get<int32_t>();
- context_.frameContext.sensor.gain = camHelper_->gain(event.sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get<int32_t>());
+ int32_t exposure = event.sensorControls.get(V4L2_CID_EXPOSURE).get<int32_t>();
+ int32_t gain = event.sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get<int32_t>();
+
+ context_.frameContext.sensor.exposure = exposure;
+ context_.frameContext.sensor.gain = camHelper_->gain(gain);
parseStatistics(event.frame, event.frameTimestamp, stats);
break;