Re: V4L2 - RFC: DMA to userspace API

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



On 26 Jan 2001, Gerd Knorr wrote:
> (VIDIOC_S_FMT).  Then ask the driver using REQBUFS for buffers,
> indicating whenever you want to use your own userspace memory buffers
> or mmap() the memory from the driver.  For the second case you'll
> have to mmap() the buffers here.  The you can queue the number of
> buffers VIDIOC_QBUF which you aquired using REQBUFS, start capture
> with VIDIOC_STREAMON, get/requeue buffers using VIDIOC_DQBUF/VIDIOC_QBUF
> until you are done, and finally call VIDIOC_STREAMOFF and REQBUFS(0).
> munmap() the driver memory if needed.

For a bt848, when are the risc program(s) generated?  When REQBUFS is called,
or when VIDIOC_QBUF is called? 

> Packed pixel formats can use the v4l2_pix_format.bytesperline to
> specify any padding they want.  Planar formats can't have padding
> (any objections on this?  If so: why?  I can't think of any useful
> application for this...).

What if you want to overlay the video into a larger image, except you're
using planar mode?  What about clipping?





[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