libv4l1 bug in RGB24/32 formats

Hans Petter Selasky hselasky at c2i.net
Sat Jan 8 23:19:17 UTC 2011


On Sunday 09 January 2011 00:31:13 Luigi Rizzo wrote:
> I noticed that a couple of my webcams, when used with libv4l,
> claim to return RGB24 data but red and blue are swapped.
> 
> Looking at the code in
> /usr/ports/multimedia/libv4l/work/v4l-utils-0.8.1/lib/libv4l1/libv4l1.c
> it seems that the two routines that do conversion format
> incorrectly map RGB* to BGR* .
> 
> The attached patch fixes the problem, I think it could be committed
> to the port.
> I am not sure if the code modified by the patch was
> inserted deliberately (one mistake may happen, but two complementary
> ones are really unlikely).
> 

You should contact:

Hans de Goede <j.w.r.degoede at hhs.nl>

About this. He's the maintainer of LibV4L.

--HPS


More information about the freebsd-multimedia mailing list