From 7bbe26bbc47625dedf7703338a31bf351c560b0d Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Fri, 18 Oct 2024 16:12:36 +0200 Subject: libcamera: software_isp: Get black level from the camera helper The black level in software ISP is unconditionally guessed from the obtained frames. CameraSensorHelper optionally provides the black level from camera specifications now. Let's use the value if available. If the black level is not available from the given CameraSensorHelper instance, it's still determined on the fly. Signed-off-by: Milan Zamazal Reviewed-by: Kieran Bingham Tested-by: Robert Mader Signed-off-by: Kieran Bingham --- src/ipa/simple/ipa_context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ipa/simple/ipa_context.h') diff --git a/src/ipa/simple/ipa_context.h b/src/ipa/simple/ipa_context.h index 3519f20f..fd121eeb 100644 --- a/src/ipa/simple/ipa_context.h +++ b/src/ipa/simple/ipa_context.h @@ -8,6 +8,7 @@ #pragma once #include +#include #include #include @@ -22,6 +23,9 @@ struct IPASessionConfiguration { int32_t exposureMin, exposureMax; double againMin, againMax, againMinStep; } agc; + struct { + std::optional level; + } black; }; struct IPAActiveState { -- cgit v1.2.1