Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5104690pxj; Tue, 22 Jun 2021 15:24:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnxw8NOQPjSleNKKSkavQu79lCikfUAaaqaE0NdRj8t2DuSqfYVYwmxsD0WFW/Jp7Xnojd X-Received: by 2002:a05:6e02:1a0c:: with SMTP id s12mr611489ild.52.1624400647949; Tue, 22 Jun 2021 15:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624400647; cv=none; d=google.com; s=arc-20160816; b=XJmL9u9vGL1H5mUV0KjhmXSoRiOdAP22PoVaE7xFZi+dxMxqZSoSzL045b5wS5sAYv a8w5es41OT6UgBThKgWZQ/0QBfWHwUJDgd2axYr1uLWFoLMvw8NMxkqNW+pbm8i4qkA0 w1Ihq/8cbSEfTnUpZRgVfinCIOmOtKNUAuu4ncnfOntCoCpuPtUW+c25TMVQeaMKSWxC dOCu9AphCYySANkpRo81X2iT7CFnTslK621W6vvWc+eSI++oaMwJQrji5i8CHsxC6qEL OiYaOiP8pVt/WxOHfjM3TOchlGrNwSD81Sv6/iIttDMnphpglKY5S/XfZhM0NRIQqfB6 OADw== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=veT1xCRCztHMeOXYPRCxA0CTX/KbBRW0qNNOOw2mt80=; b=YHNMsLkG9ZDYf20094toDtDCnNsny+4wT4Y+T7Ssl/LwENjAiPaC3cDicST/YovErG T2gDoWL+yUIrsELXOfhVSx73zo+wE3kvzf52FndiEFV+0/zzjXYukAhhE7ps5nIUH4oc PkcPlHKLX7hyDGf0c32TdJNzSod1p+RdXqdMusKEV+4HrPiZpi1R87Mja6B6C7KCdPw9 cOtIsBh69+mM5nqlbA8yCglUXdavLtnEAPRcIrLY1mUIMFJkvaxLD/XiUiCX7U6xN6Fu u3eg4d37SP7hYc4xldUynRjkyqVv75q8q2P7r0NiUNjjaKhxlnXUFTbE6+2MJWP3aoMw Icpg== 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 187si23210212iow.86.2021.06.22.15.23.56; Tue, 22 Jun 2021 15:24:07 -0700 (PDT) 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 S230274AbhFVWZd (ORCPT + 99 others); Tue, 22 Jun 2021 18:25:33 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40840 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbhFVWZc (ORCPT ); Tue, 22 Jun 2021 18:25:32 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id D68571F42BE0 Message-ID: Subject: Re: [PATCH v3 4/8] media: Add P010 video format From: Ezequiel Garcia To: Nicolas Dufresne , Benjamin Gaignard , hverkuil@xs4all.nl, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@siol.net, emil.l.velikov@gmail.com, andrzej.p@collabora.com, jc@kynesim.co.uk, jernej.skrabec@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 22 Jun 2021 19:21:23 -0300 In-Reply-To: References: <20210618131526.566762-1-benjamin.gaignard@collabora.com> <20210618131526.566762-5-benjamin.gaignard@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-06-22 at 17:24 -0400, Nicolas Dufresne wrote: > Le vendredi 18 juin 2021 à 16:38 -0300, Ezequiel Garcia a écrit : > > Hi Benjamin, > > > > On Fri, 2021-06-18 at 15:15 +0200, Benjamin Gaignard wrote: > > > P010 is a YUV format with 10-bits per pixel with interleaved UV. > > > > > > Signed-off-by: Benjamin Gaignard > > > --- > > > version 2: > > >  - Add documentation about P010 padding > > >  - Fix the number of bits per component (16) > > > > > >  .../media/v4l/pixfmt-yuv-planar.rst           | 78 ++++++++++++++++++- > > >  drivers/media/v4l2-core/v4l2-common.c         |  1 + > > >  drivers/media/v4l2-core/v4l2-ioctl.c          |  1 + > > >  include/uapi/linux/videodev2.h                |  1 + > > >  4 files changed, 79 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 090c091affd2..af400d37c8fd 100644 > > > --- a/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst > > > +++ b/Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst > > > @@ -100,8 +100,13 @@ All components are stored with the same number of bits per component. > > >        - Cb, Cr > > >        - No > > >        - 64x32 macroblocks > > > - > > > -        Horizontal Z order > > > +    * - V4L2_PIX_FMT_P010 > > > > Do we have support in GStreamer (or elsewhere) for this? > > I believe you wanted to ask for patched framework to exercise this ? Since both > FFMPEG and GSTreamer have had that format for ages. For GStreamer: > > https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/gst-libs/gst/video/video-format.h#L102 > Ah, great. This sort of info really could be in the commit description as it's not always clear if a new pixel format looks sane or not. > No V4L2 mapping upstream, but this is a bit normal, can't upstream a mapping for > something that does not exist yet. > Well, if you are happy with the patch as-is could you ack it? IIRC, Hantro and VC8000D produce this, so we'll use it sooner or later. (This information could be in the commit description as well). -- Kindly, Ezequiel