Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3588636pxb; Mon, 25 Jan 2021 22:32:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUA3WAF0v8T+uS4DZpLk3Gv051TJFJMikBADediJyNhTarfj0PRmkHQ5eYvJf7QWwsNleT X-Received: by 2002:a17:906:3a13:: with SMTP id z19mr2642993eje.317.1611642719877; Mon, 25 Jan 2021 22:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611642719; cv=none; d=google.com; s=arc-20160816; b=mqlZFbbmYYeYQD5vChG+tgG6vSu1vH7igNi11NIgWCh9q75ol2qwlFtmGgxcgtka/X aFybUqL534g7exxO6R+3GNtzhoV86PLEqr63xlPUZ/QB+hCqLJELRt3MlcGp4l/IM+fZ QjaqjQvqMJfjJAPKG3meYB1DTV6v3G4+tjr8J48ssQW+hYwfez+wZ68TquRM9v5qvr5t 9WGdHVDT2j+Eabda+t5dEDCEf2yw0krXfudboQ5jbfBuKlIb6NuFNuEE4b9pO7TfEaM7 uDaigDQveVCgY68NOZ8p+nBFXCca2ueeLMOMniNVY22Vniwu/hc7n9vHDRe9a/LmLE0u YBdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=tmgL2D1GlXyuuVvIxVbJjtWImMDqnn+MlbSKYvHXbVs=; b=KgTrLx0ZyBxLnhCVHEYdcaOXZSq44I+p85G7gCdJR5adaqoAfCZ7RuhDdOO/cHdk+f 0f8gxGDtyg5fDMtyEWm/55nGNr1rrUbdWjwE1fGLpPKd1pdbP1+/vGIHmPONAS/SvnKQ 6dDJ4hmZdG9mYSolV4QSC/lfKQ88FcPQK+NWCGJfN+lieXFdy6g+0J2+DIWEcZQ8Mc28 mKMLKuggZxtHaYXTh0Qd7yZJSY3b3gN9YqzF0K5Kt6jsys6BTSPFkEx8d8DELH+v1VQ9 etsYe7SD/90UYXjdrZyewXdFNAp1HXFcgZl38aOaL3R2Id3aJ3ilii0XUKES2e2QREGS vtXQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si8280723edk.250.2021.01.25.22.31.36; Mon, 25 Jan 2021 22:31:59 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727410AbhAZGaD (ORCPT + 99 others); Tue, 26 Jan 2021 01:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729232AbhAYODO (ORCPT ); Mon, 25 Jan 2021 09:03:14 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FEDC061574; Mon, 25 Jan 2021 06:02:13 -0800 (PST) Received: from [IPv6:2804:214:81d7:a6cc:f83c:66c3:4225:e59d] (unknown [IPv6:2804:214:81d7:a6cc:f83c:66c3:4225:e59d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 211021F452BD; Mon, 25 Jan 2021 14:02:09 +0000 (GMT) Subject: Re: [PATCH] media: doc: pixfmt-yuv: Fix 4:4:4 subsampling info From: Helen Koike To: Laurent Pinchart Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl, hans.verkuil@cisco.com, kernel@collabora.com, linux-kernel@vger.kernel.org References: <20210122182723.327438-1-helen.koike@collabora.com> <7f650d51-d419-53cc-0ad1-b241a10ab801@collabora.com> Message-ID: <9468d3e1-ac8b-8de7-5632-1da9119c992e@collabora.com> Date: Mon, 25 Jan 2021 11:02:01 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <7f650d51-d419-53cc-0ad1-b241a10ab801@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/21 10:57 AM, Helen Koike wrote: > > > On 1/23/21 6:56 AM, Laurent Pinchart wrote: >> Hi Helen, >> >> Thank you for the patch. >> >> On Fri, Jan 22, 2021 at 03:27:23PM -0300, Helen Koike wrote: >>> YUV 4:4:4 is not subsampled, fix this in the docs. >>> >>> Fixes: da785536e007 ("media: doc: pixfmt-yuv: Move all semi-planar YUV formats to common file") >>> Signed-off-by: Helen Koike >>> --- >>> Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst b/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst >>> index 7d4d39201a3f..bcb4ef24c334 100644 >>> --- a/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst >>> +++ b/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst >>> @@ -396,8 +396,8 @@ number of lines as the luma plane. >>> NV24 and NV42 >>> ------------- >>> >>> -Semi-planar YUV 4:4:4 formats. The chroma plane is subsampled by 2 in the >>> -horizontal direction. Chroma lines contain half the number of pixels and the >>> +Semi-planar YUV 4:4:4 formats. No sub-sampling. >> >> "The chroma plane is not subsampled." ? > > Ack. > >> >>> +Chroma lines contain the same number of pixels and the >>> same number of bytes as luma lines, and the chroma plane contains the same >>> number of lines as the luma plane. >> >> That's not quite right, the chroma lines contain twice the number of >> pixels and bytes, as there's one Cb and one Cr value in the chroma line >> for each Y value in the luma line. Actually, it is the same number o pixels, but twice the number o bytes. Since a trio (YCbCr) compose a pixel. At least this is how I understand comparing the logic of the text description of NV16 YUV4:2:2. Regards, Helen >> >> >> Maybe the text could be reflowed ? >> > > Ack. > > I'll submit v2 updating the text. > > Thanks, > Helen >