From patchwork Mon Jun 20 16:20:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 9188197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 539A1607D1 for ; Mon, 20 Jun 2016 16:36:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40DF7271FD for ; Mon, 20 Jun 2016 16:36:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33C3F27B16; Mon, 20 Jun 2016 16:36:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8ECB271FD for ; Mon, 20 Jun 2016 16:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753300AbcFTQgT (ORCPT ); Mon, 20 Jun 2016 12:36:19 -0400 Received: from mga11.intel.com ([192.55.52.93]:18776 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753087AbcFTQgT (ORCPT ); Mon, 20 Jun 2016 12:36:19 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 20 Jun 2016 09:23:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,499,1459839600"; d="scan'208";a="1001670049" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga002.jf.intel.com with ESMTP; 20 Jun 2016 09:23:49 -0700 Received: from nauris.fi.intel.com (nauris.localdomain [192.168.240.2]) by paasikivi.fi.intel.com (Postfix) with ESMTP id 79604209CA; Mon, 20 Jun 2016 19:23:48 +0300 (EEST) Received: by nauris.fi.intel.com (Postfix, from userid 1000) id 366D320098; Mon, 20 Jun 2016 19:20:12 +0300 (EEST) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl Subject: [PATCH v2 1/7] v4l: Correct the ordering of LSBs of the 10-bit raw packed formats Date: Mon, 20 Jun 2016 19:20:02 +0300 Message-Id: <1466439608-22890-2-git-send-email-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466439608-22890-1-git-send-email-sakari.ailus@linux.intel.com> References: <1466439608-22890-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Hans Verkuil --- .../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)