On Wed, 28 Aug 2002, Stephen Crampton wrote:

> I was getting around 4 fps with a Webcam 3 until I enabled compression
> through the driver.
> 
> I'm using ioctl(VIDIOCGMBUF) and mmap to implement shared memory and then
> ioctl(VIDIOCMCAPTURE) and ioctl(VIDIOCMSYNC) to read frames.  I use two
> frames in the following sequence:

Can you provide a little more detail on how to use mmap()? I have done the
actual mmap part but how do i use the buffers? Also - i am using v4l2 - is
it different from what you have specified below? Can i still do this?
 
> // initialize
> ioctl(VIDIOCMCAPTURE, frame0);
> 
> while {
>   ioctl(VIDIOCMCAPTURE, frame1);
>   ioctl(VIDIOCMSYNC, frame0);
>   ioctl(VIDIOCMCAPTURE, frame1);
>   ioctl(VIDIOCMSYNC, frame0);
> }

Thanks
Brian



_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to