[libcamera-devel] [PATCH 2/4] ipa: raspberrypi: cam_helper: Make exposure conversion functions virtual
Naushir Patuck
naush at raspberrypi.com
Mon Dec 20 08:37:20 CET 2021
Hi Laurent,
Thank you for your work.
On Sun, 19 Dec 2021 at 23:27, Laurent Pinchart <
laurent.pinchart at ideasonboard.com> wrote:
> From: Naushir Patuck <naush at raspberrypi.com>
>
> 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: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
Signed-off-by: Naushir Patuck <naush <naushir at gmail.com>@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush <naushir at gmail.com>@raspberrypi.com>
> ---
> 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 a776153fcb84..300f8f8a2d3b 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;
> --
> Regards,
>
> Laurent Pinchart
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20211220/8987e8f7/attachment.htm>
More information about the libcamera-devel
mailing list