From 4eb4073ec708ba1e4b4ef0375496dedc1308b3dc Mon Sep 17 00:00:00 2001 From: Jean-Michel Hautbois Date: Fri, 20 Aug 2021 08:34:25 +0200 Subject: ipa: ipu3: convert AWB to the new algorithm interface When the stats are received, pass them with the context to the existing AWB algorithm. IPAFrameContext now has a new structure to store the gains calculated by the AWB algorithm. When an EventFillParams event is received, call prepare() and set the new gains accordingly in the params structure. There is no more a need for the IPU3Awb::initialise() function, as the params are always set in prepare(). Signed-off-by: Jean-Michel Hautbois Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/ipa/ipu3/ipa_context.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ipa/ipu3/ipa_context.h') diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h index 4b12f129..24dd8bf7 100644 --- a/src/ipa/ipu3/ipa_context.h +++ b/src/ipa/ipu3/ipa_context.h @@ -24,6 +24,14 @@ struct IPASessionConfiguration { }; struct IPAFrameContext { + struct { + struct { + double red; + double green; + double blue; + } gains; + } awb; + struct { struct ipu3_uapi_gamma_corr_lut gammaCorrection; } toneMapping; -- cgit v1.2.1