| 1 |
v4l2 plugins |
| 2 |
============ |
| 3 |
|
| 4 |
The idea is a bit the same as the idea for the v4l1 plugins. We want |
| 5 |
one generic v4l2element, and a few child objects (probably only two: |
| 6 |
v4l2src and v4l2sink): |
| 7 |
|
| 8 |
/-------- v4l2src |
| 9 |
v4l2element ---= |
| 10 |
\-------- v4l2sink |
| 11 |
|
| 12 |
Both v4l2src and v4l2sink have a uncompressed and a compressed |
| 13 |
recording-/playback-mode. Since this is all part of v4l2, the 'client' |
| 14 |
of these elements, i.e. an application using v4l2src/v4l2sink, will |
| 15 |
hardly notice this. All capsnego stuff is done inside, and the plugin |
| 16 |
knows which formats are compressed and which are not. |
| 17 |
|
| 18 |
Please note that the v4l1 and the v4l2 plugins are *not* compatible |
| 19 |
concerning properties. Naming has been kept the same where possible, |
| 20 |
but in some cases, properties had to be removed or added to make |
| 21 |
full use of v4l2. |
| 22 |
|
| 23 |
V4L2 API: http://linux.bytesex.org/v4l2/. |
| 24 |
http://v4l2spec.bytesex.org/ |
| 25 |
/usr/include/linux/videodev2.h or |
| 26 |
|
| 27 |
Kernel patches available from |
| 28 |
http://dl.bytesex.org/patches/. |
| 29 |
|
| 30 |
Articles: |
| 31 |
http://lwn.net/Articles/203924/ |
| 32 |
|