From patchwork Sat Apr 29 23:34:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhi, Yong" X-Patchwork-Id: 9705975 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 6592E60245 for ; Sat, 29 Apr 2017 23:35:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 580D92793B for ; Sat, 29 Apr 2017 23:35:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D003282E2; Sat, 29 Apr 2017 23:35:13 +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 E3A812793B for ; Sat, 29 Apr 2017 23:35:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033667AbdD2XfL (ORCPT ); Sat, 29 Apr 2017 19:35:11 -0400 Received: from mga07.intel.com ([134.134.136.100]:43999 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936774AbdD2XfL (ORCPT ); Sat, 29 Apr 2017 19:35:11 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 29 Apr 2017 16:35:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,393,1488873600"; d="scan'208";a="1141823467" Received: from ababella-mobl.amr.corp.intel.com (HELO dallas.amr.corp.intel.com) ([10.252.132.161]) by fmsmga001.fm.intel.com with ESMTP; 29 Apr 2017 16:35:06 -0700 From: Yong Zhi To: linux-media@vger.kernel.org, sakari.ailus@linux.intel.com Cc: jian.xu.zheng@intel.com, rajmohan.mani@intel.com, hyungwoo.yang@intel.com, Yong Zhi Subject: [PATCH 2/3] [media] doc-rst: add IPU3 raw10 bayer pixel format definitions Date: Sat, 29 Apr 2017 18:34:35 -0500 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: 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 | 61 ++++++++++++++++++++++ 2 files changed, 62 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..8a82f30 --- /dev/null +++ b/Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst @@ -0,0 +1,61 @@ +.. -*- 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 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