[Gambas-devel] v4l2 patch for gb.v4l

Silvan Calarco silvan.calarco at ...531...
Fri Feb 20 04:32:01 CET 2009


Hello.
attached is a patch I wrote for a customer who needs support for a v4l2 webcam 
(it's a Logitech QuickCam 9000 Pro) in gambas. 
The patch integrates the example code from v4l2 api documentation 
(http://v4l2spec.bytesex.org/spec/capture-example.html) in a way that should 
be backwards compatibile (v4l1). The patch is at a basic and ugly level and 
only supports YUYV to BGR24 pixel format conversion (the function is taken 
from libv4l though the library could be used for most pixel formats support), 
but with some work it might be of wider interest so I'm posting it here.

Silvan

-- 
mambaSoft di Calarco Silvan
Web: http://www.mambasoft.it
 
mambaSoft Store @ http://shop.mambasoft.it
openmamba GNU/Linux development @ http://www.openmamba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gambas2-2.10.0-v4l2.patch
Type: text/x-patch
Size: 24760 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090220/2777cbf6/attachment.bin>


More information about the Devel mailing list