From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lb3-smtp-cloud2.xs4all.net ([194.109.24.29]:48586 "EHLO lb3-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754527AbcFTRFo (ORCPT ); Mon, 20 Jun 2016 13:05:44 -0400 Subject: Re: [PATCH v2 1/7] v4l: Correct the ordering of LSBs of the 10-bit raw packed formats To: Sakari Ailus , linux-media@vger.kernel.org References: <1466439608-22890-1-git-send-email-sakari.ailus@linux.intel.com> <1466439608-22890-2-git-send-email-sakari.ailus@linux.intel.com> From: Hans Verkuil Message-ID: <576821D9.5090303@xs4all.nl> Date: Mon, 20 Jun 2016 19:03:21 +0200 MIME-Version: 1.0 In-Reply-To: <1466439608-22890-2-git-send-email-sakari.ailus@linux.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: On 06/20/2016 06:20 PM, Sakari Ailus wrote: > The 10-bit packed raw bayer format documented that the data of the first > pixel of a four-pixel group was found in the first byte and the two > highest bits of the fifth byte. This was not entirely correct. The two > bits in the fifth byte are the two lowest bits. The second pixel occupies > the second byte and third and fourth least significant bits and so on. > > Signed-off-by: Sakari Ailus As mentioned, this needs confirmation. I wonder, isn't this specified in the UVC spec? Regards, Hans > --- > .../DocBook/media/v4l/pixfmt-srggb10p.xml | 32 +++++++++++----------- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/Documentation/DocBook/media/v4l/pixfmt-srggb10p.xml b/Documentation/DocBook/media/v4l/pixfmt-srggb10p.xml > index a8cc102..747822b 100644 > --- a/Documentation/DocBook/media/v4l/pixfmt-srggb10p.xml > +++ b/Documentation/DocBook/media/v4l/pixfmt-srggb10p.xml > @@ -47,10 +47,10 @@ > G01high > B02high > G03high > - B00low(bits 7--6) > - G01low(bits 5--4) > - B02low(bits 3--2) > - G03low(bits 1--0) > + G03low(bits 7--6) > + B02low(bits 5--4) > + G01low(bits 3--2) > + B00low(bits 1--0) > > > > @@ -59,10 +59,10 @@ > R11high > G12high > R13high > - G10low(bits 7--6) > - R11low(bits 5--4) > - G12low(bits 3--2) > - R13low(bits 1--0) > + R13low(bits 7--6) > + G12low(bits 5--4) > + R11low(bits 3--2) > + G10low(bits 1--0) > > > > @@ -71,10 +71,10 @@ > G21high > B22high > G23high > - B20low(bits 7--6) > - G21low(bits 5--4) > - B22low(bits 3--2) > - G23low(bits 1--0) > + G23low(bits 7--6) > + B22low(bits 5--4) > + G21low(bits 3--2) > + B20low(bits 1--0) > > > > @@ -83,10 +83,10 @@ > R31high > G32high > R33high > - G30low(bits 7--6) > - R31low(bits 5--4) > - G32low(bits 3--2) > - R33low(bits 1--0) > + R33low(bits 7--6) > + G32low(bits 5--4) > + R31low(bits 3--2) > + G30low(bits 1--0) > > > >