@@ -511,7 +511,7 @@ void SoftwareIspPipelineGpu::setShaderVariableValues(const DebayerParams ¶ms
return;
}
-int SoftwareIspPipelineGpu::debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *inMapped, std::optional<DmaSyncer> *inDmaSyncer)
+int SoftwareIspPipelineGpu::processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *inMapped, std::optional<DmaSyncer> *inDmaSyncer)
{
bool dmabuf_import_succeeded = false;
@@ -569,7 +569,7 @@ void SoftwareIspPipelineGpu::process(uint32_t frame, FrameBuffer *input, FrameBu
std::optional<MappedFrameBuffer> inMapped;
std::optional<DmaSyncer> inDmaSyncer;
- if (debayerGPU(input, output, params, &inMapped, &inDmaSyncer)) {
+ if (processGPU(input, output, params, &inMapped, &inDmaSyncer)) {
LOG(Debayer, Error) << "debayerGPU failed";
goto error;
}
@@ -65,7 +65,8 @@ private:
int initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat);
int getShaderVariableLocations();
void setShaderVariableValues(const DebayerParams ¶ms);
- int debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *mappedInputBuffer, std::optional<DmaSyncer> *inputBufferDmaSyncer);
+ int processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *mappedInputBuffer, std::optional<DmaSyncer> *inputBufferDmaSyncer);
+ void configureTexture(GLuint &texture);
/* Shader program identifiers */
GLuint vertexShaderId_ = 0;
This function will do more than debayer, rename it to reflect. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- src/libcamera/software_isp/software_isp_pipeline_gpu.cpp | 4 ++-- src/libcamera/software_isp/software_isp_pipeline_gpu.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-)