Re: Is it possible to share a video device?

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



Hi Jordan,

On Wed, 2002-08-21 at 16:23, Jordan Lederman wrote:
> Is there any way to do what i'd like to do?

In short: no.

In long: yes. You'd need to change the kernel driver to not grab
directly into mmap()'ed buffers, but in an ever-lasting buffer queue and
memcpy()s these buffers to the mmap()'ed buffers if userspace requests a
frame. Then, you can give a frame to more than one application. However,
using memcpy() in the kernel is ugly, especially on these high-data-load
tasks like video capturing. Besides that, you're wasting precious memory
for the driver's buffer queue. So it's not a very nice solution.

But you could always give it a try. ;-).

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
-  // \\   | Running: Linux 2.4.18-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^





[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