[v11,13/24] libcamera: software_isp: Add member variables to track selected input/output pixelFormat
diff mbox series

Message ID 20260106170059.56193-14-bryan.odonoghue@linaro.org
State Accepted
Commit 7e72e84f3d6a6fbef93f39f136a631a4de3868ab
Headers show
Series
  • Add GLES 2.0 GPUISP to libcamera
Related show

Commit Message

Bryan O'Donoghue Jan. 6, 2026, 5 p.m. UTC
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>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 src/libcamera/software_isp/debayer.cpp | 10 ++++++++++
 src/libcamera/software_isp/debayer.h   |  2 ++
 2 files changed, 12 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/software_isp/debayer.cpp b/src/libcamera/software_isp/debayer.cpp
index 4cb5b4da4..b948efad1 100644
--- a/src/libcamera/software_isp/debayer.cpp
+++ b/src/libcamera/software_isp/debayer.cpp
@@ -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
diff --git a/src/libcamera/software_isp/debayer.h b/src/libcamera/software_isp/debayer.h
index b8287166e..d716ad080 100644
--- a/src/libcamera/software_isp/debayer.h
+++ b/src/libcamera/software_isp/debayer.h
@@ -75,6 +75,8 @@  public:
 
 	DebayerInputConfig inputConfig_;
 	DebayerOutputConfig outputConfig_;
+	PixelFormat inputPixelFormat_;
+	PixelFormat outputPixelFormat_;
 	DebayerParams::LookupTable red_;
 	DebayerParams::LookupTable green_;
 	DebayerParams::LookupTable blue_;