[v11,14/24] libcamera: software_isp: Add a Size_ member variable to pass to eGL later
diff mbox series

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

Commit Message

Bryan O'Donoghue Jan. 6, 2026, 5 p.m. UTC
We will be initialising eGL from Debayer::start(). We need a copy of the
size data passed in configure() to tell the fragment shaders the right
output size.

Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 src/libcamera/software_isp/debayer.cpp | 5 +++++
 src/libcamera/software_isp/debayer.h   | 1 +
 2 files changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/software_isp/debayer.cpp b/src/libcamera/software_isp/debayer.cpp
index b948efad1..65a1762dd 100644
--- a/src/libcamera/software_isp/debayer.cpp
+++ b/src/libcamera/software_isp/debayer.cpp
@@ -300,6 +300,11 @@  Debayer::~Debayer()
  * \brief The output pixel format
  */
 
+/**
+ * \var Debayer::outputSize_
+ * \brief Output size object
+ */
+
 /**
  * \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 d716ad080..cd2db9930 100644
--- a/src/libcamera/software_isp/debayer.h
+++ b/src/libcamera/software_isp/debayer.h
@@ -75,6 +75,7 @@  public:
 
 	DebayerInputConfig inputConfig_;
 	DebayerOutputConfig outputConfig_;
+	Size outputSize_;
 	PixelFormat inputPixelFormat_;
 	PixelFormat outputPixelFormat_;
 	DebayerParams::LookupTable red_;