[RFC,v3,05/17] libcamera: software_isp: Queue the input buffer per each output
diff mbox series

Message ID 20260604095105.68798-9-mzamazal@redhat.com
State New
Headers show
Series
  • Untitled series #5979
Related show

Commit Message

Milan Zamazal June 4, 2026, 9:50 a.m. UTC
Multiple outputs are not supported, but if they were, the input buffer
should be queued for each of them because each output buffer processing
emits inputBufferReady.

Currently, with a single output, it doesn't change anything.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
---
 src/libcamera/software_isp/software_isp.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/libcamera/software_isp/software_isp.cpp b/src/libcamera/software_isp/software_isp.cpp
index 5dca10aee..774f2bf75 100644
--- a/src/libcamera/software_isp/software_isp.cpp
+++ b/src/libcamera/software_isp/software_isp.cpp
@@ -350,9 +350,8 @@  int SoftwareIsp::queueBuffers(uint32_t frame, FrameBuffer *input,
 			return -EINVAL;
 	}
 
-	queuedInputBuffers_.push_back(input);
-
 	for (const auto &[stream, buffer] : outputs) {
+		queuedInputBuffers_.push_back(input);
 		queuedOutputBuffers_.push_back(buffer);
 		process(frame, input, buffer);
 	}