Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp340095rwb; Fri, 4 Aug 2023 13:42:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMPBtctDwU8VX/l9tXUMQ5uOzP2uOPQpZSvqrcdXaBByKJuPSI9Qc7FVub8GfoMjPV51Zp X-Received: by 2002:a05:6808:8c5:b0:3a7:5cc1:69b0 with SMTP id k5-20020a05680808c500b003a75cc169b0mr3314105oij.7.1691181739172; Fri, 04 Aug 2023 13:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691181739; cv=none; d=google.com; s=arc-20160816; b=T5e7R+a480B36Uj3xuB3qi8AHOPLKtIvKsL6GzlRBAGvH/GHInmqlXaYu/ox/7AFH4 W/ACv2KbWCmeSw9oqrHHmGpUlD566FnE6tjmeC9KWPQwWrcbrlt34exX7WcoJS96k7z2 rIvbLpy/P3cIaXzpIXaNLyfQek6B0W3eJ41pkSCh0CXHyHCobPXUVA9/N8Tpfsv1Envu td8W6sYaPE17wqK1NhKnSC9OZZLvyNvGnYZk1JroC4wICS2ItrL/CJN7t2is91gSeUDc QVJv1RIWFOmyeXrJlGZi2RtTUDq+D4ySe7KBA/TUM5tQ6Mv7AmreKti64VKnY88ZLZeq kNWA== 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=nNUtWfQXehPtXvt+RbOS2IMKlnERMbbxD2r56EDp6qY=; fh=x+OCOT2g8fj9awOvQVEBAmU92U+IsZ5SRXLb4J1DncQ=; b=OTfytEc6Iv8188MnlgyuyTcqm3lXKqBjmcc1zXPaN8Bebcohdyw0SmlMxweErHopET RKofXewx601Gm46usGCKyGlnDPz4KMiV9/g531lZPZUQhq3YkHbGGYkZFAioID6z8m0j OwKnX/F/eMXNncwUS2g9PBlQoksxdu8sdZ1bte7Ytz5JTvO6LGwy8KFpVMhA5LfqBpav t2s69EQ3mIRcX/jsyfWiAnfZMmsjXF2vLgyBC693rJ3CHYPWoGRQxu7M3P8VVPUaI0aJ /m/ckmHeOxVTcWhscvbIvHIbsLe81FwAPVWSJAH3w9F3M+s4gHxJI6NLU8cyDzfgEKNC 1pDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=evanNoIK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a632602000000b005649f303b60si2202506pgm.279.2023.08.04.13.42.07; Fri, 04 Aug 2023 13:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=evanNoIK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbjHDT2J (ORCPT + 99 others); Fri, 4 Aug 2023 15:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbjHDT16 (ORCPT ); Fri, 4 Aug 2023 15:27:58 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8930DE7; Fri, 4 Aug 2023 12:27:57 -0700 (PDT) Received: from whitebuilder.lan (unknown [IPv6:2606:6d00:15:bae9::c73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6F65566071CA; Fri, 4 Aug 2023 20:27:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691177276; bh=T+nWXy+s8Yq0uMZoc9sAaLpZ/9LxtX7E47JjruJ49z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=evanNoIKFIYtHmTwKnLhG8kgKOe+Iwx0JxmRF5Bzf50noJcmISXS3nlzu/BRHH9on MqEvJOUzouN/EFmdCqHQUDvtNWcPWqA57Dq/6MB3to8kb9HfFzuhoBHOE/neEj39Kx 0GGqrQqjWo9hVLwudTngy6AqO3zEqLxYwygytNTiOOVe2QNSJBV/eGwehj1XU4e96R CzVp9odcjCCnQlCTHOETNMj9QtMnlkXmMmjXMMkeM2D51jQ+KoOJv7BVCp290wAvPz oDYG6YE/NGAhdRb2GZmKNGlMBIIJeOtvpjJpl0T2COnEKPa6EiFx9JSPYkoYhondIA OqYHunMYnl4Xw== From: Nicolas Dufresne To: Mauro Carvalho Chehab Cc: kernel@collabora.com, Nicolas Dufresne , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] docs: uapi: media: Move NV12_10BE_8L128 to NV15 section Date: Fri, 4 Aug 2023 15:27:34 -0400 Message-Id: <20230804192737.19016-3-nicolas.dufresne@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230804192737.19016-1-nicolas.dufresne@collabora.com> References: <20230804192737.19016-1-nicolas.dufresne@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a 15 bits per pixel (or packed 10 bit format), so move it into the relevant section. Signed-off-by: Nicolas Dufresne --- .../media/v4l/pixfmt-yuv-planar.rst | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst b/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst index fb826923ff1d..1d43532095c0 100644 --- a/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst +++ b/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst @@ -295,8 +295,6 @@ of the luma plane. .. _V4L2-PIX-FMT-NV12-32L32: .. _V4L2-PIX-FMT-NV12M-8L128: .. _V4L2-PIX-FMT-NV12-8L128: -.. _V4L2-PIX-FMT-NV12M-10BE-8L128: -.. _V4L2-PIX-FMT-NV12-10BE-8L128: .. _V4L2-PIX-FMT-MM21: Tiled NV12 @@ -361,6 +359,25 @@ The layouts of the luma and chroma planes are identical. ``V4L2_PIX_FMT_NV12_8L128`` is similar to ``V4L2_PIX_FMT_NV12M_8L128`` but stores two planes in one memory. +``V4L2_PIX_FMT_MM21`` store luma pixel in 16x32 tiles, and chroma pixels +in 16x16 tiles. The line stride must be aligned to a multiple of 16 and the +image height must be aligned to a multiple of 32. The number of luma and chroma +tiles are identical, even though the tile size differ. The image is formed of +two non-contiguous planes. + + +.. _V4L2-PIX-FMT-NV15-4L4: +.. _V4L2-PIX-FMT-NV12M-10BE-8L128: +.. _V4L2-PIX-FMT-NV12-10BE-8L128: + +Tiled NV15 +---------- + +``V4L2_PIX_FMT_NV15_4L4`` Semi-planar 10-bit YUV 4:2:0 formats, using 4x4 tiling. +All components are packed without any padding between each other. +As a side-effect, each group of 4 components are stored over 5 bytes +(YYYY or UVUV = 4 * 10 bits = 40 bits = 5 bytes). + ``V4L2_PIX_FMT_NV12M_10BE_8L128`` is similar to ``V4L2_PIX_FMT_NV12M`` but stores 10 bits pixels in 2D 8x128 tiles, and stores tiles linearly in memory. the data is arranged in big endian order. @@ -379,21 +396,6 @@ byte 4: Y3(bits 7-0) ``V4L2_PIX_FMT_NV12_10BE_8L128`` is similar to ``V4L2_PIX_FMT_NV12M_10BE_8L128`` but stores two planes in one memory. -``V4L2_PIX_FMT_MM21`` store luma pixel in 16x32 tiles, and chroma pixels -in 16x16 tiles. The line stride must be aligned to a multiple of 16 and the -image height must be aligned to a multiple of 32. The number of luma and chroma -tiles are identical, even though the tile size differ. The image is formed of -two non-contiguous planes. - -.. _V4L2-PIX-FMT-NV15-4L4: - -Tiled NV15 ----------- - -Semi-planar 10-bit YUV 4:2:0 formats, using 4x4 tiling. -All components are packed without any padding between each other. -As a side-effect, each group of 4 components are stored over 5 bytes -(YYYY or UVUV = 4 * 10 bits = 40 bits = 5 bytes). .. _V4L2-PIX-FMT-NV16: .. _V4L2-PIX-FMT-NV61: -- 2.40.1