Hi,
after some more research into the entire V4L topic and after looking into the 5dpo package which contains an almost complete V4L2 implementation (but unfortunately no code for V4l1 and I need both versions) I have made a little unit that solves my problem in a very simple way:
* It is using V4l1 API only
* It is using the libv4l1.so wrapper library for V4L2 compatibility
* libv4l1 will also transparently decode all known image formats and encodings of the V2 cameras (V2 does not allow decoding inside the driver anymore) into uncompressed BGR24 or YUV420p on the fly.
I have made a little camera application with it (similar to xawtv) and it was the first day in my life where I could see how all my cameras (V1 and V2) could work with the *same* application (some worked only with xawtv, one worked only with mplayer, one did never work before at all).
This unit will be part of a small application that I will soon release under GPL. The Unit is licensed under modified LGPL.
Attached is the v4l1 unit. Enjoy!
Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v4l1.pas
Type: text/x-pascal
Size: 20500 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110502/790865b0/attachment-0001.bin>
