Re: installling bttv in linux 2.4.4

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



Anders Gnistrup wrote:
> 
> 
> Ok. that cleared up my overview. Thanks.
> in fact I have downloaded all bttr drivers but I could not find the "the thin red
> line".
> 
> I have attached my code.

You should really be doing a *single* mmap() of size indicated by
VIDIOCGMBUF, and then using the frame offsets into that to retrieve the
captured frames.

Also your capture loop seems a bit convoluted, and I don't think you're
giving yourself any time to copy each frame after you set the condition
variable before you start to overwrite it with the next capture. Try
restructuring your loop like this:

frame = 0
capture(frame)
while (1) {
  sync(frame)
  next_frame = (frame + 1) % 2
  capture(next_frame)
  process(frame)
  frame = next_frame
}

Hope this helps.

Ben





[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