From deb3f05137ff759b937f1dcfd32b81945a01d0aa Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Thu, 23 Jan 2025 12:40:57 +0100 Subject: ipa: rkisp1: Use grey world algorithm from libipa Now that libipa contains a grey world algorithm, use that. Signed-off-by: Stefan Klug Reviewed-by: Paul Elder Reviewed-by: Daniel Scally --- src/ipa/rkisp1/algorithms/awb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipa/rkisp1/algorithms/awb.h') diff --git a/src/ipa/rkisp1/algorithms/awb.h b/src/ipa/rkisp1/algorithms/awb.h index 35248769..7e6c3862 100644 --- a/src/ipa/rkisp1/algorithms/awb.h +++ b/src/ipa/rkisp1/algorithms/awb.h @@ -11,6 +11,7 @@ #include "libcamera/internal/vector.h" +#include "libipa/awb.h" #include "libipa/interpolator.h" #include "algorithm.h" @@ -42,7 +43,8 @@ private: RGB calculateRgbMeans(const IPAFrameContext &frameContext, const rkisp1_cif_isp_awb_stat *awb) const; - std::optional>> colourGainCurve_; + std::unique_ptr awbAlgo_; + bool rgbMode_; }; -- cgit v1.2.1