Re: Buff-Streaming VS read()/write()

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



>  In this scenario, an application could push data into
>  the driver at whatever rate the driver will accept it
>  as controlled by the write() (e.g blocking or select()
>  use). And likewise a application could be
>  simultaneously retrieve available data via the read()
>  interface at a rate controlled by the driver.

Using mmap() instead of read()/write() avoids copying around the data.

Also read() is expected to return a fresh captured video frame to the
application, not an old one from some queue.  But without a queue read()
wouldn't be able to capture at full frame rate.

  Gerd

-- 
#include </dev/tty>





[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