Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1366962pxb; Fri, 21 Jan 2022 16:40:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuNwHFOfx3gjvEn3bUiHAkWLQTcJCPOIut+YMvjWvVEMRLbuHBDi0IEz2WUI5MLTC4DMT1 X-Received: by 2002:a05:6a00:1511:b0:4c4:330:b86d with SMTP id q17-20020a056a00151100b004c40330b86dmr3425687pfu.82.1642812018329; Fri, 21 Jan 2022 16:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642812018; cv=none; d=google.com; s=arc-20160816; b=S0AOB7Wy/ZcJyoSNko2oyYCIQ5A9Lb86xoa4ez3zCPt+fjZhGPq7jq3ehCVec/EnG9 O2TQhFbyqvxGmCyRMEi7W4dxmZXXzXLIRYPQqaV1GtA/pW2lm03Q0GQHE8F5rf7fM1rV clLzgl/zVdtmSdTAsgmyVxFzj+meFWnuhOj6BCAdbeK4GmOwGLhsXAa+K6zK18gPS6pg DVFZcOiSiOt8tJD3jneo4OXM9cLPI86y0jEI43m9SvnhCW/OnQHdDGtS213Kt5IeBC6y oQg9NtmZbusu0Xz/jrvUFx3IKHS6HEEGjcow/M0TlC4CbnmlwOtpLv11nTziqPuxqrDN STwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wIdYVBMdFhcyd/m/7QsrcKNbIHRczZwdgh8V4rvuZNc=; b=Vq+qFyKGm8j3UJpa1gv/I9JEw8zRqh4CHdzRe2QQUCD3tZO3SD3Dp0TDNbeYnkE/CO wguo6bckGC8BpG2/hRW967wPSu5HWqsd5d5wx/D4JmNG0Cnemu3jK2598I+7RvSSUDFi /Q1srnCG6mbTSkZl6eZKYpw4xOU+WBbGkmVa/2R8Q6DPr2m5rnyQIcuxP4HJUJaqqFVi ibPOD/ZSRCodiYLl2zWEI8nXLSVkSLm0p0yUhHQUkosxXTp9bIoFtoVWZaoHpZWdMASL 2x3RpJWAn2zN6ARuoeAHJEZbk8H2/hpkm62f4N4DxOIBHDEQG+2JO1OOml7cLYk+yZ4d rb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bDrlMSS9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pc8si5918669pjb.36.2022.01.21.16.40.06; Fri, 21 Jan 2022 16:40:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bDrlMSS9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379427AbiAUISY (ORCPT + 99 others); Fri, 21 Jan 2022 03:18:24 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:48760 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379412AbiAUISW (ORCPT ); Fri, 21 Jan 2022 03:18:22 -0500 Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:d916:876:fa52:7241]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AA5D79FF; Fri, 21 Jan 2022 09:18:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1642753099; bh=gQW6rIcJEbXKCWQJrx+5bX/2dvSKaZOaNpWU2LZIWXc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bDrlMSS9Lp5cwxA9026oLzmTHha1FYcCPzXKMZIt+T/I1DD/7jXVM5RnBjvylWwkd jzyUYbV6HheKkSq7Fhr/qVsoB9iZNMbj4KELF39Yv0qTX2bEm6uWfHlRnbDVuB5iE0 eR1PRXzhcBCCBmTvkCiY/z7mCw6C4EiBO1oYVEV0= From: Jean-Michel Hautbois To: jeanmichel.hautbois@ideasonboard.com Cc: dave.stevenson@raspberrypi.com, devicetree@vger.kernel.org, kernel-list@raspberrypi.com, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, lukasz@jany.st, mchehab@kernel.org, naush@raspberrypi.com, robh@kernel.org, tomi.valkeinen@ideasonboard.com Subject: [RFC PATCH v2 2/7] media: v4l: Add V4L2-PIX-FMT-Y14P format Date: Fri, 21 Jan 2022 09:18:05 +0100 Message-Id: <20220121081810.155500-3-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220121081810.155500-1-jeanmichel.hautbois@ideasonboard.com> References: <20220121081810.155500-1-jeanmichel.hautbois@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a packed grey-scale image format with a depth of 14 bits per pixel. Every four consecutive samples are packed into seven bytes. Each of the first four bytes contain the eight high order bits of the pixels, and the three following bytes contains the six least significants bits of each pixel, in the same order. As the other formats only needed 5 bytes before, append two bytes in the documentation array. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Laurent Pinchart --- .../media/v4l/pixfmt-yuv-luma.rst | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/pixfmt-yuv-luma.rst b/Documentation/userspace-api/media/v4l/pixfmt-yuv-luma.rst index d37ce6027095..c64485b03d27 100644 --- a/Documentation/userspace-api/media/v4l/pixfmt-yuv-luma.rst +++ b/Documentation/userspace-api/media/v4l/pixfmt-yuv-luma.rst @@ -36,6 +36,8 @@ are often referred to as greyscale formats. - Byte 2 - Byte 3 - Byte 4 + - Byte 5 + - Byte 6 * .. _V4L2-PIX-FMT-GREY: @@ -47,6 +49,8 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... * .. _V4L2-PIX-FMT-Y10: @@ -58,6 +62,8 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... * .. _V4L2-PIX-FMT-Y10BPACK: @@ -69,6 +75,8 @@ are often referred to as greyscale formats. - Y'\ :sub:`1`\ [3:0] Y'\ :sub:`2`\ [9:6] - Y'\ :sub:`2`\ [5:0] Y'\ :sub:`3`\ [9:8] - Y'\ :sub:`3`\ [7:0] + - ... + - ... * .. _V4L2-PIX-FMT-Y10P: @@ -80,6 +88,8 @@ are often referred to as greyscale formats. - Y'\ :sub:`2`\ [9:2] - Y'\ :sub:`3`\ [9:2] - Y'\ :sub:`3`\ [1:0] Y'\ :sub:`2`\ [1:0] Y'\ :sub:`1`\ [1:0] Y'\ :sub:`0`\ [1:0] + - ... + - ... * .. _V4L2-PIX-FMT-Y12: @@ -91,6 +101,8 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... * .. _V4L2-PIX-FMT-Y12P: @@ -102,6 +114,8 @@ are often referred to as greyscale formats. - Y'\ :sub:`1`\ [3:0] Y'\ :sub:`0`\ [3:0] - ... - ... + - ... + - ... * .. _V4L2-PIX-FMT-Y14: @@ -113,6 +127,21 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... + + * .. _V4L2-PIX-FMT-Y14P: + + - ``V4L2_PIX_FMT_Y14P`` + - 'Y14P' + + - Y'\ :sub:`0`\ [13:6] + - Y'\ :sub:`1`\ [13:6] + - Y'\ :sub:`2`\ [13:6] + - Y'\ :sub:`3`\ [13:6] + - Y'\ :sub:`1`\ [1:0] Y'\ :sub:`0`\ [5:0] + - Y'\ :sub:`2`\ [3:0] Y'\ :sub:`1`\ [5:2] + - Y'\ :sub:`3`\ [5:0] Y'\ :sub:`2`\ [5:4] * .. _V4L2-PIX-FMT-Y16: @@ -124,6 +153,8 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... * .. _V4L2-PIX-FMT-Y16-BE: @@ -135,6 +166,8 @@ are often referred to as greyscale formats. - ... - ... - ... + - ... + - ... .. raw:: latex -- 2.32.0