| Message ID | 20261109203112.61688-1-faizel.kb@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series |
|
| Related | show |
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 35e066499..8e22c90c1 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -1588,6 +1588,7 @@ int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c) V4L2DeviceFormat captureFormat; captureFormat.fourcc = videoFormat; captureFormat.size = pipeConfig->captureSize; + captureFormat.planesCount = 1; uint32_t requested_bpl = 0; if (data->swIsp_)
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 to 1, as the pipeline handler only supports formats stored in a single memory plane. Fixes: ff5cb4f17b0b ("software_isp: debayer_egl: Request input buffer alignment of 256 bytes") Signed-off-by: Faizel K B <faizel.kb@gmail.com> --- Changes in v2: - Set planesCount to 1 instead of PixelFormatInfo::numPlanes(), which counts colour planes rather than memory planes (Robert) - Link to v1 - https://patchwork.libcamera.org/patch/28662/ The rkcif kernel changes needed to honour the requested stride. https://lore.kernel.org/linux-media/20261105232310.385463-1-faizel.kb@gmail.com src/libcamera/pipeline/simple/simple.cpp | 1 + 1 file changed, 1 insertion(+)