Re: Frame buffer memory management V4L API considerations

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



Chris Worley wrote:
> Should the V4L2 API be modified to return the amount of frame buffer 
> memory used by the video hardware?

Why?  You can easily calculate it from v4l2_pix_format.

> Should the V4L2 specification be adjusted for this consideration?  Or, 
> how best would this be implemented?

I'd manage stuff simply as v4l2_buffer.  Doesn't work with the current
API spec as it requires you have the buffers mmap()'ed, but IMHO that
should be changed to allow the usage of any memory area as video buffer.
That could be the framebuffer mapped by your application, a MIT-SHM
segment, whatever...

With the 2.4 kernel we have the infrastructure to to dma-to-userspace.
We don't have to use non-swappable kernel memory any more to do video
data DMA transfers, we can lock down stuff in memory for DMA using
kiobufs.

  Gerd

-- 
Get back there in front of the computer NOW. Christmas can wait.
	-- Linus "the Grinch" Torvalds,  24 Dec 2000 on linux-kernel





[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