ipa: raspberrypi: Make CamHelpers return the frame delay for vblanking
For some sensors (e.g. imx477) we need to update the vblanking on the frame before the exposure. For this reason the GetDelays method must also return the number of frame delays for the vblanking control. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
f484857994
commit
18691c538b
@@ -342,14 +342,14 @@ void IPARPi::configure(const CameraSensorInfo &sensorInfo,
|
||||
* Pass out the sensor config to the pipeline handler in order
|
||||
* to setup the staggered writer class.
|
||||
*/
|
||||
int gainDelay, exposureDelay, sensorMetadata;
|
||||
helper_->GetDelays(exposureDelay, gainDelay);
|
||||
int gainDelay, exposureDelay, vblankDelay, sensorMetadata;
|
||||
helper_->GetDelays(exposureDelay, gainDelay, vblankDelay);
|
||||
sensorMetadata = helper_->SensorEmbeddedDataPresent();
|
||||
|
||||
result->params |= ipa::RPi::ConfigSensorParams;
|
||||
result->sensorConfig.gainDelay = gainDelay;
|
||||
result->sensorConfig.exposureDelay = exposureDelay;
|
||||
result->sensorConfig.vblank = exposureDelay;
|
||||
result->sensorConfig.vblank = vblankDelay;
|
||||
result->sensorConfig.sensorMetadata = sensorMetadata;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user