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:
parent
f484857994
commit
18691c538b
5 changed files with 22 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue