@@ -594,7 +594,7 @@ eGLImage *SoftwareIspInstanceGpu::getCachedOutputFrameBuffer(FrameBuffer *output
return eglImageOut;
}
-int SoftwareIspInstanceGpu::debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *inMapped, std::optional<DmaSyncer> *inDmaSyncer)
+int SoftwareIspInstanceGpu::processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *inMapped, std::optional<DmaSyncer> *inDmaSyncer)
{
eGLImage *eglImageIn;
eGLImage *eglImageOut;
@@ -638,7 +638,7 @@ void SoftwareIspInstanceGpu::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(SoftwareIspInstance, Error) << "debayerGPU failed";
goto error;
}
@@ -67,7 +67,7 @@ private:
int initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat);
int 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);
+ int processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional<MappedFrameBuffer> *mappedInputBuffer, std::optional<DmaSyncer> *inputBufferDmaSyncer);
eGLImage *getCachedInputFrameBuffer(FrameBuffer *input, std::optional<MappedFrameBuffer> *inMapped, std::optional<DmaSyncer> *inDmaSyncer);
eGLImage *getCachedOutputFrameBuffer(FrameBuffer *output);
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_instance_gpu.cpp | 4 ++-- src/libcamera/software_isp/software_isp_instance_gpu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)