libcamera: software_isp: Add member variables to track selected input/output pixelFormat

In order to have Debayer::start() tell the eGL shader compilation routine what
the input and output pixel format is, we need to have a copy of the
selected format available. Add variables to the inputConfig and
outputConfig structures to allow tracking of this data for later use.

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: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Bryan O'Donoghue
2026-01-06 17:00:48 +00:00
committed by Kieran Bingham
parent 5b609e7a44
commit 7e72e84f3d
2 changed files with 12 additions and 0 deletions

View File

@@ -290,6 +290,16 @@ Debayer::~Debayer()
* output image buffer. Set during stream configuration.
*/
/**
* \var Debayer::inputPixelFormat_
* \brief The incoming pixel format
*/
/**
* \var Debayer::outputPixelFormat_
* \brief The output pixel format
*/
/**
* \var Debayer::red_
* \brief Lookup table for red channel gain and correction values

View File

@@ -75,6 +75,8 @@ public:
DebayerInputConfig inputConfig_;
DebayerOutputConfig outputConfig_;
PixelFormat inputPixelFormat_;
PixelFormat outputPixelFormat_;
DebayerParams::LookupTable red_;
DebayerParams::LookupTable green_;
DebayerParams::LookupTable blue_;