Re: Low performance with FlyVideo98/bttv/v4l2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux