pipeline: rpi: Respect provided stride
When converting from StreamConfiguration to V4L2DeviceFormat, the stride was being dropped with the result that users could not request a custom stride. Set the stride in the V4L2DeviceFormat to prevent this happening. Signed-off-by: William Vinnicombe <william.vinnicombe@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
4843f72b13
commit
577e0c6b76
@@ -367,6 +367,7 @@ V4L2DeviceFormat PipelineHandlerBase::toV4L2DeviceFormat(const V4L2VideoDevice *
|
||||
deviceFormat.planesCount = info.numPlanes();
|
||||
deviceFormat.fourcc = dev->toV4L2PixelFormat(stream->pixelFormat);
|
||||
deviceFormat.size = stream->size;
|
||||
deviceFormat.planes[0].bpl = stream->stride;
|
||||
deviceFormat.colorSpace = stream->colorSpace;
|
||||
|
||||
return deviceFormat;
|
||||
|
||||
Reference in New Issue
Block a user