From patchwork Wed Jun 7 01:34:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhi, Yong" X-Patchwork-Id: 9770469 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 D063360353 for ; Wed, 7 Jun 2017 01:34:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08E2201BC for ; Wed, 7 Jun 2017 01:34:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A53E720499; Wed, 7 Jun 2017 01:34:59 +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 5A9A420243 for ; Wed, 7 Jun 2017 01:34:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbdFGBe4 (ORCPT ); Tue, 6 Jun 2017 21:34:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:25742 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbdFGBey (ORCPT ); Tue, 6 Jun 2017 21:34:54 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2017 18:34:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,309,1493708400"; d="scan'208";a="1138705004" Received: from pjmarcia-mobl.amr.corp.intel.com (HELO dallas.amr.corp.intel.com) ([10.254.82.5]) by orsmga001.jf.intel.com with ESMTP; 06 Jun 2017 18:34:53 -0700 From: Yong Zhi To: linux-media@vger.kernel.org, sakari.ailus@linux.intel.com Cc: jian.xu.zheng@intel.com, tfiga@chromium.org, rajmohan.mani@intel.com, tuukka.toivonen@intel.com, hverkuil@xs4all.nl, hyungwoo.yang@intel.com, Yong Zhi Subject: [PATCH v2 2/3] [media] doc-rst: add IPU3 raw10 bayer pixel format definitions Date: Tue, 6 Jun 2017 20:34:38 -0500 Message-Id: <1496799279-8774-3-git-send-email-yong.zhi@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496799279-8774-1-git-send-email-yong.zhi@intel.com> References: <1496799279-8774-1-git-send-email-yong.zhi@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 formats added by this patch are: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Yong Zhi --- Documentation/media/uapi/v4l/pixfmt-rgb.rst | 1 + .../media/uapi/v4l/pixfmt-srggb10-ipu3.rst | 62 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst diff --git a/Documentation/media/uapi/v4l/pixfmt-rgb.rst b/Documentation/media/uapi/v4l/pixfmt-rgb.rst index b0f3513..6900d5c 100644 --- a/Documentation/media/uapi/v4l/pixfmt-rgb.rst +++ b/Documentation/media/uapi/v4l/pixfmt-rgb.rst @@ -16,5 +16,6 @@ RGB Formats pixfmt-srggb10p pixfmt-srggb10alaw8 pixfmt-srggb10dpcm8 + pixfmt-srggb10-ipu3 pixfmt-srggb12 pixfmt-srggb16 diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst b/Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst new file mode 100644 index 0000000..618e24a --- /dev/null +++ b/Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst @@ -0,0 +1,62 @@ +.. -*- coding: utf-8; mode: rst -*- + +.. _V4L2_PIX_FMT_IPU3_SBGGR10: +.. _V4L2_PIX_FMT_IPU3_SGBRG10: +.. _V4L2_PIX_FMT_IPU3_SGRBG10: +.. _V4L2_PIX_FMT_IPU3_SRGGB10: + +********************************************************************************************************************************************** +V4L2_PIX_FMT_IPU3_SBGGR10 ('ip3b'), V4L2_PIX_FMT_IPU3_SGBRG10 ('ip3g'), V4L2_PIX_FMT_IPU3_SGRBG10 ('ip3G'), V4L2_PIX_FMT_IPU3_SRGGB10 ('ip3r') +********************************************************************************************************************************************** + +10-bit Bayer formats + +Description +=========== + +These four pixel formats are used by Intel IPU3 driver, they are raw +sRGB / Bayer formats with 10 bits per sample with every 25 pixels packed +to 32 bytes leaving 6 most significant bits padding in the last byte. +The format is little endian. + +In other respects this format is similar to :ref:`V4L2-PIX-FMT-SRGGB10`. + +**Byte Order.** +Each cell is one byte. + +.. raw:: latex + + \newline\newline\begin{adjustbox}{width=\columnwidth} + +.. tabularcolumns:: |p{1.3cm}|p{1.0cm}|p{10.9cm}|p{10.9cm}|p{10.9cm}|p{1.0cm}| + +.. flat-table:: + + * - start + 0: + - B\ :sub:`00low` + - G\ :sub:`01low` \ (bits 7--2) B\ :sub:`00high`\ (bits 1--0) + - B\ :sub:`02low` \ (bits 7--4) G\ :sub:`01high`\ (bits 3--0) + - G\ :sub:`03low` \ (bits 7--6) B\ :sub:`02high`\ (bits 5--0) + - G\ :sub:`03high` + * - start + 5: + - G\ :sub:`10low` + - R\ :sub:`11low` \ (bits 7--2) G\ :sub:`10high`\ (bits 1--0) + - G\ :sub:`12low` \ (bits 7--4) R\ :sub:`11high`\ (bits 3--0) + - R\ :sub:`13low` \ (bits 7--6) G\ :sub:`12high`\ (bits 5--0) + - R\ :sub:`13high` + * - start + 10: + - B\ :sub:`20low` + - G\ :sub:`21low` \ (bits 7--2) B\ :sub:`20high`\ (bits 1--0) + - B\ :sub:`22low` \ (bits 7--4) G\ :sub:`21high`\ (bits 3--0) + - G\ :sub:`23low` \ (bits 7--6) B\ :sub:`22high`\ (bits 5--0) + - G\ :sub:`23high` + * - start + 15: + - G\ :sub:`30low` + - R\ :sub:`31low` \ (bits 7--2) G\ :sub:`30high`\ (bits 1--0) + - G\ :sub:`32low` \ (bits 7--4) R\ :sub:`31high`\ (bits 3--0) + - R\ :sub:`33low` \ (bits 7--6) G\ :sub:`32high`\ (bits 5--0) + - R\ :sub:`33high` + +.. raw:: latex + + \end{adjustbox}\newline\newline