From d4545edb38e2e58d4231fe83f61d766ca2b730fc Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Thu, 13 Feb 2025 20:35:56 +0100 Subject: ipa: rkisp1: algorithms: awb: Fix AWB means vector order in RGB mode Fix the order of the rgbMeans vector that got broken accidentally during refactoring. As there is currently no way to enable rgb mode at runtime it went unnoticed. Fixes: 29892f1c56c6 ("ipa: libipa: colour: Use the RGB class to model RGB values") Signed-off-by: Stefan Klug Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- src/ipa/rkisp1/algorithms/awb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ipa/rkisp1/algorithms/awb.cpp b/src/ipa/rkisp1/algorithms/awb.cpp index e9e5abbf..6f9d454e 100644 --- a/src/ipa/rkisp1/algorithms/awb.cpp +++ b/src/ipa/rkisp1/algorithms/awb.cpp @@ -342,8 +342,8 @@ RGB Awb::calculateRgbMeans(const IPAFrameContext &frameContext, const rk if (rgbMode_) { rgbMeans = {{ - static_cast(awb->awb_mean[0].mean_y_or_g), static_cast(awb->awb_mean[0].mean_cr_or_r), + static_cast(awb->awb_mean[0].mean_y_or_g), static_cast(awb->awb_mean[0].mean_cb_or_b) }}; } else { -- cgit v1.2.1