libcamera: v4l2_device: Set bytesperline in single plane S_FMT
The 'bytesperline' field of 'struct v4l2_pix_format' has to be set for the single planar set format use case. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -331,6 +331,7 @@ int V4L2Device::setFormatSingleplane(V4L2DeviceFormat *format)
|
||||
pix->width = format->width;
|
||||
pix->height = format->height;
|
||||
pix->pixelformat = format->fourcc;
|
||||
pix->bytesperline = format->planes[0].bpl;
|
||||
|
||||
ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user