Date: Sun, 9 Jan 2011 00:19:20 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: freebsd-multimedia@freebsd.org Subject: Re: libv4l1 bug in RGB24/32 formats Message-ID: <201101090019.20394.hselasky@c2i.net> In-Reply-To: <20110108233113.GB80865@onelab2.iet.unipi.it> References: <201101081841.10690.hselasky@c2i.net> <201101090010.57118.hselasky@c2i.net> <20110108233113.GB80865@onelab2.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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@hhs.nl> About this. He's the maintainer of LibV4L. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101090019.20394.hselasky>