Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4593789pxv; Tue, 27 Jul 2021 11:05:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5mcZ5OUkywCZOjC8a5qwmq+BSC0I1dUYkE6RpFuAqVJ8Ot2xtcfRhcEMRg/Bfg3emeI3G X-Received: by 2002:a5d:85ca:: with SMTP id e10mr12428319ios.193.1627409114791; Tue, 27 Jul 2021 11:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627409114; cv=none; d=google.com; s=arc-20160816; b=jWRTivWkYG3k9XONtBk7tthm8ioIoCYv011RPkIKYQHd4Un2zLLHlvAQsGl2z7Fwgy n6S2lkQSSKoPSF94nF5su8ZQafwJP+5fDE1mVLDOMWRSPzRRk8JhGAHOxzUcV96oaKmg u3wY9F9WpLYINiJQSXtv+UsZr9CwQW9MXTiiRDeowuKIh3S2rj83mNNbYguiY4zs3DE+ TNvRht1xWB1vCFGFv3kOsBwbhG8BECNHxTARuKTk00i3SeuQ8aqwkn9HpJrRjfquec/1 SPl+Z5514CaGip9BLsHHdw/WLxxA2IV/dDRgjuBPMn+3tE2X1ullUMCDMFSS71TzBiD/ fShA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GafHAUNL+sjy6ExfCuaS6GjWzGJjdmYtQPnrrCad7po=; b=UNU+dmhp3MYJn9sqR8UcUMlkeMxbBPb6RwGZpsT4uCSxUqeLqxgyLjyKULMhr9kTaY /NFF7AjWgcFy3zR1882/B+ryekVCG9gjNrBYz7WWVN3Jq44hSKhGub49V7Bnatnng1vG Dfj7CgUYHXaDZg0blxl7Xd49csKUFC+f88ci6Wfc+Sx9mON+tNKa5pYH3AayLi8HFZL4 8D81vgzILeHrqcPDnuOWkVCisQvgNCU/1gB6djDylz7liiWJSf7ErnbE1GZ9cINT93Ng MbjfJy3Jz2XRhG6/mExwRkpMC9oe1T7bzzrNSLxRN/ISo5G8ZgIrAcUVaiW6tpTzlEii tyAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b="zacsEf/g"; 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 y5si3984002ilb.113.2021.07.27.11.05.03; Tue, 27 Jul 2021 11:05:14 -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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b="zacsEf/g"; 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 S231223AbhG0SED (ORCPT + 99 others); Tue, 27 Jul 2021 14:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbhG0SEC (ORCPT ); Tue, 27 Jul 2021 14:04:02 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938F3C061757 for ; Tue, 27 Jul 2021 11:04:02 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id j2so15604654edp.11 for ; Tue, 27 Jul 2021 11:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GafHAUNL+sjy6ExfCuaS6GjWzGJjdmYtQPnrrCad7po=; b=zacsEf/gWmzsXeehztjZnAoEle5BSIO0okfN91EJ/wjaatGdrk6jZ5Ec6LYkCaZhGZ 1BVrfglwyuL/oIdTpFkYASBgm8YmEdy6hrkV9JDCpOXvcLKEnR3lVkMNrdL8QomzGWOT Bqbkx1dphhm+Unpsk6ymc3zBH0DPN4n3jb7UpHrCuFTSUQXuyHsRho/6bKxOHANT+ugZ F+WwVEf+Xq8iUSOIV3CgUcow9G5smWAlZS3ziJ9nuXSxNlIQU6/dw3kJKSADATTl7JOE aq6ZsQBDVb/+wx4eHmMCN61j/MPiwzzPSjSpkp8Teu1vTcPtfVNCkwwUw+MIhhzPP6uO yGeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GafHAUNL+sjy6ExfCuaS6GjWzGJjdmYtQPnrrCad7po=; b=f590Y9mJjV6W5mDYjRPY07RL5ke+sIXCj2LeRFTBZTOSKsDOVJSIHvY1L8U2fcmTP4 bSB7qiJsaqyMXWNkewZkrNpHOpv7qM9U6pCkK1VkWcgcJuo/rSdcNXbeeX7MjwWe4BRn kESnvEXEmUwqbR0uAgeDClB1enFTYYrrOdUabk77nbp+wfItT/nINPooiaYhY0waJ7Px VJhnhmKOkm/jpzyNnRX7u68TKfDWPJVwTC90HmTVoZBseYlCzHHpbN4y1loKA7qRTL82 6fnbpuh9duel9JzQiHBi3zqDbcvRNZhueQsyDwGev7nUpiN3O7rE7SpL5WKAj+xiHgCy gEPg== X-Gm-Message-State: AOAM533rp/5sKD8F6RWBXdcwLMThZG6LQzMNIRSVQkIas7G5Tmlynf69 HHzWBsd5xJTYLwjsMuyt01MW/N8NZKBgpB9DlFOxGg== X-Received: by 2002:a05:6402:17d3:: with SMTP id s19mr29021761edy.49.1627409041203; Tue, 27 Jul 2021 11:04:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ezequiel Garcia Date: Tue, 27 Jul 2021 15:03:49 -0300 Message-ID: Subject: Re: [PATCH v5 02/14] media:Add nt8 and nt10 video format. To: Nicolas Dufresne Cc: Ming Qian , Mauro Carvalho Chehab , Shawn Guo , Rob Herring , Sascha Hauer , Hans Verkuil , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , aisheng.dong@nxp.com, linux-media , Linux Kernel Mailing List , devicetree , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Jul 2021 at 14:58, Nicolas Dufresne wrote= : > > Le mardi 27 juillet 2021 =C3=A0 11:20 +0800, Ming Qian a =C3=A9crit : > > NT8 is 8-bit tiled nv12 format used by amphion decoder. > > NT10 is 10-bit tiled format used by amphion decoder. > > The tile size is 8x128 > > > > Signed-off-by: Ming Qian > > Signed-off-by: Shijie Qin > > Signed-off-by: Zhou Peng > > --- > > .../userspace-api/media/v4l/pixfmt-reserved.rst | 15 +++++++++++++++ > > drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ > > include/uapi/linux/videodev2.h | 2 ++ > > 3 files changed, 19 insertions(+) > > > > diff --git a/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst = b/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > index c9231e18859b..2deae49210a7 100644 > > --- a/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > +++ b/Documentation/userspace-api/media/v4l/pixfmt-reserved.rst > > @@ -256,3 +256,18 @@ please make a proposal on the linux-media mailing = list. > > of tiles, resulting in 32-aligned resolutions for the luminance p= lane > > and 16-aligned resolutions for the chrominance plane (with 2x2 > > subsampling). > > + * .. _V4L2-PIX-FMT-NT8: > > + > > + - ``V4L2_PIX_FMT_NT8`` > > + - 'NA12' > > + - Two-planar NV12-based format used by the video engine found on= Amphion decoder, > > + with 8x128 tiles for the luminance plane and chrominance plane. > > + The number of bytes in one luminance or chrominance row must be di= visible by 256. > > + * .. _V4L2-PIX-FMT-NT10: > > There is a large spread of "vendor specific" format that aren't really sp= ecific, > or complex enough to be worth being marked as vendor format. As per my re= ading > of this description, this is linearly layout 8x128 tiled format, with no > compression or anything (well unless you forgot to mention). As a side ef= fect, > we should give that format an explicit name (NT8 is cryptic). What about > V4L2_PIX_FMT_NV12_8L128, my colleague is about to send a proposal in that > direction. That would be NV12 with plane tiled 8x128 bytes and layout lin= early, > row by row, left to right. We already have cryptic formats like SUNXI, HM= 12 that > are literally just that, simple tiling, and we endup having to use obscur= e > vendor name whenever other HW uses the same. > > (this comment extends to the other formats here) > Here's the proposal Nicolas is talking about: https://lore.kernel.org/linux-media/20210727145745.25203-1-ezequiel@collabo= ra.com/T/#t V4L2_PIX_FMT_NV12_8L128 makes sense, please also add support for this format in GStreamer. I think that makes it easier to confirm the layout of the format. Thanks! Ezequiel