@@ -43,7 +43,7 @@ namespace libcamera {
* \param[in] display The EGL display to use
*/
SoftwareIspInstanceGpu::SoftwareIspInstanceGpu(std::unique_ptr<SwStatsCpu> stats, const CameraManager &cm, EGLDisplay display)
- : SoftwareIspInstance(cm), stats_(std::move(stats)), egl_(display), gpuIspShaderPassDemosiac_(egl_)
+ : SoftwareIspInstance(cm), stats_(std::move(stats)), egl_(display), gpuIspShaderPassDemosiac_(egl_), gpuIspShaderPassBlcNormalise_(egl_)
{
}
@@ -99,6 +99,12 @@ int SoftwareIspInstanceGpu::getInputConfig(PixelFormat inputFormat, DebayerInput
int SoftwareIspInstanceGpu::initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat)
{
+ int ret;
+
+ ret = gpuIspShaderPassBlcNormalise_.initShaders(inputFormat, outputFormat);
+ if (ret)
+ return ret;
+
return gpuIspShaderPassDemosiac_.initShaders(inputFormat, outputFormat);
}
@@ -29,6 +29,7 @@
#include <GLES3/gl32.h>
#include "software_isp_instance.h"
+#include "gpu_pipeline_shader_pass_blc_normalise.h"
#include "gpu_pipeline_shader_pass_demosiac.h"
namespace libcamera {
@@ -87,6 +88,7 @@ private:
uint32_t height_;
GpuIspShaderPassDemosiac gpuIspShaderPassDemosiac_;
+ GpuIspShaderPassBlcNormalise gpuIspShaderPassBlcNormalise_;
};
} /* namespace libcamera */
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- src/libcamera/software_isp/software_isp_instance_gpu.cpp | 8 +++++++- src/libcamera/software_isp/software_isp_instance_gpu.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-)