From 02308809548d084d0501e7d8bfc09cce70ee05ad Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Thu, 19 Dec 2024 18:57:20 +0100 Subject: ipa: rkisp1: awb: Implement ColourTemperature control There are many use-cases (tuning-validation, working in static environments) where a manual ColourTemperature control is helpful. Implement that by interpolating and applying the white balance gains from the tuning file according to the requested colour temperature. If colour gains are provided on the same request, they take precedence. Store the colour temperature used for a given frame in the frame context and report that in metadata. Note that in the automatic case, the colour gains are still based on the gray world model and the CT curve from the tuning file get ignored. Signed-off-by: Stefan Klug Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/ipa/rkisp1/ipa_context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipa/rkisp1/ipa_context.h') diff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h index deb8c196..4b50015b 100644 --- a/src/ipa/rkisp1/ipa_context.h +++ b/src/ipa/rkisp1/ipa_context.h @@ -135,6 +135,7 @@ struct IPAFrameContext : public FrameContext { struct { RGB gains; bool autoEnabled; + unsigned int temperatureK; } awb; struct { -- cgit v1.2.1