diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2021-02-16 08:55:05 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-02-17 01:34:37 +0200 |
commit | 5aff27a20d718b05d20b9ce63d8b02a0b3bf9cb9 (patch) | |
tree | 1b070da18a1c1cbd5ab9b3f158f4573320b45a8c | |
parent | 0e2ca7256bbd6b042d10061c3bce50b669eb9fb7 (diff) |
ipa: raspberrypi: Fix exposure and gain delays for imx477
The exposure and gain delays for imx477 are both 2 frames. This error
was not noticeable because the controller was using the embedded
metadata to get the exposure and gain values for the frame.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Tested-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/ipa/raspberrypi/cam_helper_imx477.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ipa/raspberrypi/cam_helper_imx477.cpp b/src/ipa/raspberrypi/cam_helper_imx477.cpp index eaa7be16..419f8e77 100644 --- a/src/ipa/raspberrypi/cam_helper_imx477.cpp +++ b/src/ipa/raspberrypi/cam_helper_imx477.cpp @@ -37,6 +37,7 @@ public: CamHelperImx477(); 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; bool SensorEmbeddedDataPresent() const override; private: @@ -62,6 +63,12 @@ double CamHelperImx477::Gain(uint32_t gain_code) const return 1024.0 / (1024 - gain_code); } +void CamHelperImx477::GetDelays(int &exposure_delay, int &gain_delay) const +{ + exposure_delay = 2; + gain_delay = 2; +} + bool CamHelperImx477::SensorEmbeddedDataPresent() const { return true; |