@@ -97,7 +97,7 @@ int DebayerEGL::getInputConfig(PixelFormat inputFormat, DebayerInputConfig &conf
return -EINVAL;
}
-int DebayerEGL::getShaderVariableLocations(void)
+void DebayerEGL::getShaderVariableLocations(void)
{
attributeVertex_ = glGetAttribLocation(programId_, "vertexIn");
attributeTexture_ = glGetAttribLocation(programId_, "textureIn");
@@ -127,7 +127,6 @@ int DebayerEGL::getShaderVariableLocations(void)
<< " stride_factor " << textureUniformStrideFactor_
<< " tex_bayer_first_red " << textureUniformBayerFirstRed_
<< " proj_matrix " << textureUniformProjMatrix_;
- return 0;
}
int DebayerEGL::initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat)
@@ -268,7 +267,9 @@ int DebayerEGL::initBayerShaders(PixelFormat inputFormat, PixelFormat outputForm
return -ENODEV;
}
- return getShaderVariableLocations();
+ getShaderVariableLocations();
+
+ return 0;
}
int DebayerEGL::configure(const StreamConfiguration &inputCfg,
@@ -64,7 +64,7 @@ public:
private:
static int getInputConfig(PixelFormat inputFormat, DebayerInputConfig &config);
int initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat);
- int getShaderVariableLocations();
+ void getShaderVariableLocations();
void setShaderVariableValues(eGLImage &eGLImageIn, const DebayerParams ¶ms);
int debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *mappedInputBuffer, std::optional<DmaSyncer> *inputBufferDmaSyncer);
Signed-off-by: coolGi <remy.alipoursafari@collabora.com> --- src/libcamera/software_isp/debayer_egl.cpp | 7 ++++--- src/libcamera/software_isp/debayer_egl.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-)