From 3dc81300c73be0e406ce702811ba2b5dc5b516e2 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Thu, 26 Nov 2020 10:57:03 +0000 Subject: 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 Signed-off-by: Laurent Pinchart Reviewed-by: Naushir Patuck Reviewed-by: Kieran Bingham --- src/ipa/raspberrypi/cam_helper.hpp | 4 ++-- 1 file 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 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; -- cgit v1.2.1