Hi Karel,
On Friday 05 September 2014 06:09 PM, Mácha, Karel wrote:
> Hello Alaganraj,
>
> thank you very much for your reply and your tips. I tried to improve my
> code as you suggested and also implemented several other things, which
> should improve the result.
>
> I set the cameras to 15fps usi
Hello Alaganraj,
thank you very much for your reply and your tips. I tried to improve my
code as you suggested and also implemented several other things, which
should improve the result.
I set the cameras to 15fps using VIDIOC_S_PARM. This reduces the
frequency of corrupt images.
I zero fill any
Hi Karel,
I suggest you to zero fill v4l2 structures before assign values also
check the return value of all ioctl call.
for example,
struct v4l2_format fmt;
memset(&fmt, 0, sizeof fmt);
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = xRes;
ret = ioctl(fd, VIDIOC_