diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2020-11-26 10:57:03 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-03-23 01:50:12 +0200 |
commit | 3dc81300c73be0e406ce702811ba2b5dc5b516e2 (patch) | |
tree | 35c1c5ed983acd5c5bb7ac0cbf033229e53626c5 | |
parent | 91021c38e4e8b7301f10190b5a98fdda42c3867a (diff) |
ipa: raspberrypi: cam_helper: Make exposure conversion functions virtual
Some sensors (namely the Sony IMX296, whose support will be added
shortly) require different conversion formulas between exposure time and
exposure lines. Make the Exposure() and ExposureLines() functions
virtual to allow this.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/ipa/raspberrypi/cam_helper.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/cam_helper.hpp b/src/ipa/raspberrypi/cam_helper.hpp index a776153f..300f8f8a 100644 --- a/src/ipa/raspberrypi/cam_helper.hpp +++ b/src/ipa/raspberrypi/cam_helper.hpp @@ -76,8 +76,8 @@ public: virtual void Prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata); virtual void Process(StatisticsPtr &stats, Metadata &metadata); - uint32_t ExposureLines(libcamera::utils::Duration exposure) const; - libcamera::utils::Duration Exposure(uint32_t exposure_lines) const; + virtual uint32_t ExposureLines(libcamera::utils::Duration exposure) const; + virtual libcamera::utils::Duration Exposure(uint32_t exposure_lines) const; virtual uint32_t GetVBlanking(libcamera::utils::Duration &exposure, libcamera::utils::Duration minFrameDuration, libcamera::utils::Duration maxFrameDuration) const; |