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>
This commit is contained in:
Jean-Michel Hautbois 2022-02-24 16:11:11 +01:00 committed by Umang Jain
parent 046ca79086
commit e3900d1bf9

View file

@ -547,8 +547,11 @@ void IPAIPU3::processEvent(const IPU3Event &event)
const ipu3_uapi_stats_3a *stats = const ipu3_uapi_stats_3a *stats =
reinterpret_cast<ipu3_uapi_stats_3a *>(mem.data()); reinterpret_cast<ipu3_uapi_stats_3a *>(mem.data());
context_.frameContext.sensor.exposure = event.sensorControls.get(V4L2_CID_EXPOSURE).get<int32_t>(); int32_t 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 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); parseStatistics(event.frame, event.frameTimestamp, stats);
break; break;