mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
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:
parent
4cd283acd0
commit
aaeee427b0
3 changed files with 41 additions and 3 deletions
|
@ -19,6 +19,7 @@ public:
|
|||
uint32_t GainCode(double gain) const override;
|
||||
double Gain(uint32_t gain_code) const override;
|
||||
void GetDelays(int &exposure_delay, int &gain_delay) const override;
|
||||
unsigned int HideFramesStartup() const override;
|
||||
unsigned int HideFramesModeSwitch() const override;
|
||||
unsigned int MistrustFramesStartup() const override;
|
||||
unsigned int MistrustFramesModeSwitch() const override;
|
||||
|
@ -54,6 +55,15 @@ void CamHelperOv5647::GetDelays(int &exposure_delay, int &gain_delay) const
|
|||
gain_delay = 2;
|
||||
}
|
||||
|
||||
unsigned int CamHelperOv5647::HideFramesStartup() const
|
||||
{
|
||||
/*
|
||||
* On startup, we get a couple of under-exposed frames which
|
||||
* we don't want shown.
|
||||
*/
|
||||
return 2;
|
||||
}
|
||||
|
||||
unsigned int CamHelperOv5647::HideFramesModeSwitch() const
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue