Increase v4l2 request buffers

This commit is contained in:
John Zhao 2018-06-01 16:34:21 +08:00
parent a0cf8fd902
commit 9c20d62763

View File

@ -276,7 +276,7 @@ struct device {
// Init memory mapped IO // Init memory mapped IO
v4l2_requestbuffers req; v4l2_requestbuffers req;
req.count = 4; req.count = 24;
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.memory = V4L2_MEMORY_MMAP; req.memory = V4L2_MEMORY_MMAP;
if (xioctl(fd, VIDIOC_REQBUFS, &req) < 0) { if (xioctl(fd, VIDIOC_REQBUFS, &req) < 0) {