libcamera: software_isp: lut: Make gamma from lut.cpp available in debayer params

Provide the gamma used in IPA to Bayer parameters. We will pass Gamma into
the shader via a uniform and can then tweak that value from outside at
will.

Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Bryan O'Donoghue
2025-12-11 23:22:44 +00:00
committed by Kieran Bingham
parent 724a29e3cd
commit 5bfb96661f
3 changed files with 8 additions and 0 deletions
@@ -58,6 +58,7 @@ struct DebayerParams {
*/
Matrix<float, 3, 3> ccm;
RGB<float> blackLevel;
float gamma;
};
} /* namespace libcamera */
+2
View File
@@ -147,6 +147,8 @@ void Lut::prepare(IPAContext &context,
params->gammaLut[i] = gammaTable[i / div];
}
}
params->gamma = context.configuration.gamma;
}
void Lut::process([[maybe_unused]] IPAContext &context,
+5
View File
@@ -110,6 +110,11 @@ namespace libcamera {
* \brief Blacklevel gains for the GPUISP
*/
/**
* \var DebayerParams::gamma
* \brief Gamma value for the GPUISP
*/
/**
* \class Debayer
* \brief Base debayering class