Re: Slow image capture using mmap

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



Justin Schoeman wrote:
> 
> Kali Griffin wrote:
> >
> 
> > //Capture Loop
> 
> Before the loop queue both buffers with CMCAPTURE.
> 
> > ioctl(fd,VIDIOCSYNC, &ONE);
> > <memcpy buffer 1>
> > ioctl(fd,VIDIOCMCAPTURE, *video_mmap);
> > ioctl(fd,VIDIOCSYNC, &TWO);
> > <memcpy buffer 2>
> > ioctl(fd,VIDIOCMCAPTURE, *video_mmap);
> 
> Should do the trick (but remeber to fix the frame value in video_mmap).
> 
> -justin
> 

Hi !
I've edited and uploaded that example you sent to us Justin. Added some
comments .
URL:
http://planeta.terra.com.br/informatica/gleicon/video4linux/videojustin.c

regards


-- 
Gleicon S. Moraes  

Writing about music is like dancing about architecture.
                -- Frank Zappa





[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