ipa: raspberrypi: Move initial frame drop decision to AGC/AWB
Previously the CamHelper was returning the number of frames to drop (on account of AGC/AWB converging). This wasn't really appropriate, it's better for the algorithms to do it as they know how many frames they might need. The CamHelper::HideFramesStartup method should now just be returning the number of frames to hide because they're bad/invalid in some way, not worrying about the AGC/AWB. For many sensors, the correct value for this is zero. But the ov5647 needs updating as it must return 2. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@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
4cd283acd0
commit
aaeee427b0
@@ -82,10 +82,10 @@ bool CamHelper::SensorEmbeddedDataPresent() const
|
||||
unsigned int CamHelper::HideFramesStartup() const
|
||||
{
|
||||
/*
|
||||
* By default, hide 6 frames completely at start-up while AGC etc. sort
|
||||
* themselves out (converge).
|
||||
* The number of frames when a camera first starts that shouldn't be
|
||||
* displayed as they are invalid in some way.
|
||||
*/
|
||||
return 6;
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int CamHelper::HideFramesModeSwitch() const
|
||||
|
||||
Reference in New Issue
Block a user