From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-fx0-f217.google.com ([209.85.220.217]:47337 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758068AbZIFRwJ convert rfc822-to-8bit (ORCPT ); Sun, 6 Sep 2009 13:52:09 -0400 Received: by fxm17 with SMTP id 17so1596205fxm.37 for ; Sun, 06 Sep 2009 10:52:10 -0700 (PDT) From: Marek Vasut To: Guennadi Liakhovetski Subject: Re: [PATCH] Add RGB555X and RGB565X formats to pxa-camera Date: Sun, 6 Sep 2009 19:51:44 +0200 Cc: Eric Miao , linux-arm-kernel@lists.arm.linux.org.uk, "Russell King - ARM Linux" , Linux Media Mailing List , Mike Rapoport , Stefan Herbrechtsmeier , linux-arm-kernel@lists.infradead.org References: <200908031031.00676.marek.vasut@gmail.com> <200909060550.23681.marek.vasut@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Message-Id: <200909061951.44629.marek.vasut@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: Dne Ne 6. září 2009 18:52:55 Guennadi Liakhovetski napsal(a): > On Sun, 6 Sep 2009, Marek Vasut wrote: > > Ah damn, I see what you mean. What the camera does is it swaps the RED > > and BLUE channel: > > 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 > > B4 B3 B2 B1 B0 G4 G3 G2 G1 G1 R4 R3 R2 R1 R1 -- > > so it's more a BGR555/565 then. I had to patch fswebcam for this. > > Ok, this is, of course, something different. In this case you, probably, > could deceive the PXA to handle blue as red and the other way round, but > still, I would prefer not to do that. Hence my suggestion remains - pass > these formats as raw data. > Which is bogus from the camera point of view. > The only case when you might want to put the PXA into RGB555 mode, while > feeding BGR555 to it, is you want to use the QCI to set the transparency > bit for you. But we currently do not support this any way, not in a > configurable way at least. You would need to implement some sort of a > "global (one-bit) alpha" control for pxa_camera to use this. Any need for > this? > > Thanks > Guennadi > --- > Guennadi Liakhovetski, Ph.D. > Freelance Open-Source Software Developer > http://www.open-technology.de/