From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga01.intel.com ([192.55.52.88]:36594 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbcE0MsA (ORCPT ); Fri, 27 May 2016 08:48:00 -0400 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: g.liakhovetski@gmx.de Subject: [PATCH 1/6] v4l: Correct the ordering of LSBs of the 10-bit raw packed formats Date: Fri, 27 May 2016 15:44:35 +0300 Message-Id: <1464353080-18300-2-git-send-email-sakari.ailus@linux.intel.com> In-Reply-To: <1464353080-18300-1-git-send-email-sakari.ailus@linux.intel.com> References: <1464353080-18300-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-media-owner@vger.kernel.org List-ID: 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 --- .../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) -- 1.9.1