- 论坛徽章:
- 0
|
在v4l2的手册里ioctl VIDIOC_REQBUFS的解释是VIDIOC_REQBUFS -- Initiate Memory Mapping or User Pointer I/Ohttp://linuxtv.org/downloads/v4l-dvb-apis/vidioc-reqbufs.html而我看其驱动的实现代码是- static int s3c_fimc_v4l2_reqbufs(struct file *filp, void *fh,
- struct v4l2_requestbuffers *b)
- {
- if (b->memory != V4L2_MEMORY_MMAP) {
- err("V4L2_MEMORY_MMAP is only supported\n");
- return -EINVAL;
- }
- /* control user input */
- if (b->count > 4)
- b->count = 4;
- else if (b->count < 1)
- b->count = 1;
- return 0;
- }
复制代码 似乎并没有实现手册里说到的功能!是我看错地方了么,还是怎么回事?有人能解答下么? |
|