libcamera: software_isp: debayer: Latch contrastExp not contrast to debayer parameters

Pass contrastExp as calculated in lut to debayer params not the raw
contrast. This way we calculate contrastExp once per frame in lut and pass
the calculated value into the shaders, instead of passing contrast and
calculating contrastExp once per pixel in the shaders.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Tested-by: Robert Mader <robert.mader@collabora.com>
Tested-by: Hans de Goede <johannes.goede@oss.qualcomm.com> # ThinkPad T14s gen 6 (arm64) ov02c10 + X1c gen 12 ov08x40
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> # Lenovo X13s
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Bryan O'Donoghue
2026-01-06 17:00:36 +00:00
committed by Kieran Bingham
parent c63f2c72cd
commit a1a6253ff9
4 changed files with 7 additions and 5 deletions
@@ -59,7 +59,7 @@ struct DebayerParams {
Matrix<float, 3, 3> ccm;
RGB<float> blackLevel;
float gamma;
float contrast;
double contrastExp;
};
} /* namespace libcamera */