简体   繁体   English

DQBUF 的 ioctl 的 V4L2 参数无效

[英]V4L2 invalid argument for the ioctl of DQBUF

I came across a V4L2 problem.Below is the code.我遇到了一个 V4L2 问题。下面是代码。

v4l2_buffer queue_buf;
CLEAR(queue_buf);

queue_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
queue_buf.memory = V4L2_MEMORY_MMAP;

if(-1 == ioctl(fd, VIDIOC_DQBUF, &queue_buf))
{
    perror("dqbuf:");
}

When run on ARM 2440 with linux 2.6.24 , arm-linux-gcc 3.4.1 , the error is "dqbuf: invalid argument".But on my PC, it works well.ARM 2440linux 2.6.24arm-linux-gcc 3.4.1上运行时,错误是“dqbuf:无效参数”。但在我的电脑上,它运行良好。 I don't know why it happened.我不知道为什么会这样。 thx.谢谢。

v4l problems are very specific and I had trouble finding help myself, some time ago. v4l 问题非常具体,前段时间我自己也很难找到帮助。

So here are some links where you should be searching for help:因此,这里有一些您应该在其中寻求帮助的链接:

I hope this helps.我希望这有帮助。

regards.问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM