VIDIOC_DQBUF in v4l2

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



Hi! Another question from a newcomer... I'm having some trouble
understanding the use of VIDIOC_DQBUF in v4l2. I know that it dequeues one
frame buffer. But how do I access the frame (the picture) itself? Where is
the data located after the call?

In a sample application from thedirks.org (XCAPTEST) I understood that
after the VIDIOC_DQBUF call the frame is somehow miraculously ;) located
in a global variable
	XImage *capt_ximg[STREAMBUFS];
In computer programming I don't believe in miracles, so could
someone tell me what I'm missing here?

Thank you!

--
Esa Ikonen
esa.ikonen@xxxxxx





[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