For multi planar format, on vidioc_s_fmt_vid_cap_mplane() callback
of nexell video driver, stride and sizeimage are not filled and
this causes failure of gst v4l2src plugin. Fix to fill bytesperline
and sizeimage for multi planar format from callback function,
vidioc_s_fmt_vid_cap_mplane().
Change-Id: Ib5871f183e37916c7725539bfd777d883fa96996
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp;
+ set_plane_size_mmap(frame, &pix->plane_fmt[0].sizeimage);
for (i = 0; i < format->num_planes; ++i) {
- frame->stride[i] = pix->plane_fmt[i].bytesperline;
- frame->size[i] = pix->plane_fmt[i].sizeimage;
+ pix->plane_fmt[i].bytesperline = frame->stride[i];
+ pix->plane_fmt[i].sizeimage = frame->size[i];
}
}