aboutsummaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/video.c b/video.c
index b704fa2..309bff2 100644
--- a/video.c
+++ b/video.c
@@ -560,21 +560,23 @@ int video_setup_output(struct instance *i, unsigned long codec,
return -1;
}
- info("Setup OUTPUT buffer size=%u (requested=%u)",
- fmt.fmt.pix_mp.plane_fmt[0].sizeimage, size);
+ info("Setup OUTPUT buffer size=%u (requested=%u), bytesperline:%u",
+ fmt.fmt.pix_mp.plane_fmt[0].sizeimage, size,
+ fmt.fmt.pix_mp.plane_fmt[0].bytesperline);
vid->out_buf_size = fmt.fmt.pix_mp.plane_fmt[0].sizeimage;
memzero(g_fmt);
- g_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
+ g_fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
g_fmt.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12;
ret = ioctl(vid->fd, VIDIOC_G_FMT, &g_fmt);
if (ret) {
err("Failed to get format on OUTPUT (%s)", strerror(errno));
} else {
- info("Get format sizeimage is %d",
- g_fmt.fmt.pix_mp.plane_fmt[0].sizeimage);
+ info("Get format sizeimage:%u, bytesperline:%u",
+ g_fmt.fmt.pix_mp.plane_fmt[0].sizeimage,
+ g_fmt.fmt.pix_mp.plane_fmt[0].bytesperline);
}
memzero(reqbuf);
@@ -624,7 +626,7 @@ int video_setup_output(struct instance *i, unsigned long codec,
vid->out_buf_flag[n] = 0;
}
- dbg("Succesfully mmapped %d OUTPUT buffers", n);
+ info("querybuf: OUTPUT sizeimage %d", vid->out_buf_size);
return 0;
}