libcamera: pipeline: simple: Set planesCount for the capture format
diff mbox series

Message ID 20261028233232.543432-1-faizel.kb@gmail.com
State New
Headers show
Series
  • libcamera: pipeline: simple: Set planesCount for the capture format
Related show

Commit Message

Faizel K B Oct. 28, 2026, 11:32 p.m. UTC
The stride requested by the simple pipeline handler is ignored by
V4L2VideoDevice::trySetFormatMultiplane(), which copies bytesperline
only for planesCount planes, and planesCount is zero. Set it from the
video format.

Fixes: ff5cb4f17b0b ("software_isp: debayer_egl: Request input buffer alignment of 256 bytes")
Signed-off-by: Faizel K B <faizel.kb@gmail.com>
---
 src/libcamera/pipeline/simple/simple.cpp | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 38e94a159..8910c3ae1 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -1553,6 +1553,7 @@  int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c)
 	V4L2DeviceFormat captureFormat;
 	captureFormat.fourcc = videoFormat;
 	captureFormat.size = pipeConfig->captureSize;
+	captureFormat.planesCount = PixelFormatInfo::info(videoFormat).numPlanes();
 
 	uint32_t requested_bpl = 0;
 	if (data->swIsp_)