From 21088e605c08c3615ed54f234e0333c6d1c8c0e5 Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Thu, 3 Apr 2025 14:53:55 +0200 Subject: libcamera: software_isp: Add a clarification comment to AWB The computed AWB gains are applied when constructing LUT tables rather than in awb.cpp itself. This can look confusing when reading awb.cpp, let's add a clarifying comment. Signed-off-by: Milan Zamazal Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/ipa/simple/algorithms/awb.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ipa/simple/algorithms/awb.cpp b/src/ipa/simple/algorithms/awb.cpp index 55719059..cf567e89 100644 --- a/src/ipa/simple/algorithms/awb.cpp +++ b/src/ipa/simple/algorithms/awb.cpp @@ -40,6 +40,7 @@ void Awb::prepare(IPAContext &context, [[maybe_unused]] DebayerParams *params) { auto &gains = context.activeState.awb.gains; + /* Just report, the gains are applied in LUT algorithm. */ frameContext.gains.red = gains.r(); frameContext.gains.blue = gains.b(); } -- cgit v1.2.1