From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 8 23:19:17 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B12A1065702 for ; Sat, 8 Jan 2011 23:19:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id E18C98FC18 for ; Sat, 8 Jan 2011 23:19:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=SxACXB9Mn11EL54S050wKy4RMS0erBmsPiBAtaYd9oE= c=1 sm=1 a=v5OSokbmbqUA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=9XpmE5RbNzi1alpyKxwA:9 a=-RBk0yPeZpcHX6-qao0A:7 a=PKGrBAgWE-cWXAtWqnvRrvbdSEkA:4 a=PUjeQqilurYA:10 a=R2yBCW_kNQUA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 70863053; Sun, 09 Jan 2011 00:19:15 +0100 From: Hans Petter Selasky To: Luigi Rizzo Date: Sun, 9 Jan 2011 00:19:20 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201101081841.10690.hselasky@c2i.net> <201101090010.57118.hselasky@c2i.net> <20110108233113.GB80865@onelab2.iet.unipi.it> In-Reply-To: <20110108233113.GB80865@onelab2.iet.unipi.it> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201101090019.20394.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: libv4l1 bug in RGB24/32 formats X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2011 23:19:17 -0000 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 About this. He's the maintainer of LibV4L. --HPS