Hi Justin, I have some questions about your code:
> for(frame=0; frame<vm.frames; frame++);
> {
> mm.frame = frame;
> if(ioctl(fd, VIDIOCMCAPTURE, &mm)<0)
> {
> perror("VIDIOCMCAPTURE");
> exit(-1);
> }
> }
1. Why did you do this routine if you going to make a MCAPTURE again in this
routine:
mm.frame = frame;
if(ioctl(fd, VIDIOCMCAPTURE, &mm)<0)
{
perror("VIDIOCMCAPTURE");
exit(-1);
}
frame++;
if (frame>=vm.frames) frame = 0;
2. Why did you make this routine to make SYNC (is it not enough with the ioctl
call??) and why didn't you put &mm but &frame???:
> {
> i = -1;
> while(i<0)
> {
> i = ioctl(cap_fd, VIDIOCSYNC, &frame);
> if(i < 0 && errno == EINTR) continue;
> if(i < 0)
> {
> perror("VIDIOCSYNC");
> /* You may want to exit here, because something has gone
> pretty badly wrong... */
> }
> break;
> }
>
Hope those are not stupid question... sorry.. I am not an expert..thanks in
advance.
Edgar
_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list
- Re: [V4L] frame buffer Benedict Bridgwater
- [V4L] Oops..I forgot to copy the source code Edgard Alexander Sotter
- [V4L] un subscribe??? Brian Duke
- Re: [V4L] un subscribe??? Eric Jorgensen
- Re: [V4L] un subscribe??? Brian Duke
- Re: [V4L] frame buffer Gerd Knorr
- Re: [V4L] frame buffer Justin Schoeman
- Re: [V4L] frame buffer Edgard Alexander Sotter
- Re: [V4L] frame buffer Edgard Alexander Sotter
- Re: [V4L] frame buffer Gleicon S. Moraes
- Re: [V4L] frame buffer Edgard Alexander Sotter
- Re: [V4L] frame buffer Justin Schoeman
- Re: [V4L] frame buffer Edgard Alexander Sotter
- Re: [V4L] frame buffer Justin Schoeman
- Re: [V4L] frame buffer Edgard Alexander Sotter
- Re: [V4L] frame buffer Justin Schoeman
- Re: [V4L] frame buffer M V Vinod Kumar
- Re: [V4L] frame buffer Justin Schoeman
- [V4L] Reading images Edgard Alexander Sotter
- Re: [V4L] Reading images Gerd Knorr
- Re: [V4L] frame buffer Edgard Alexander Sotter
