Received: by 10.192.165.148 with SMTP id m20csp483105imm; Fri, 4 May 2018 01:00:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqM8Pd2GYurDdPUthzYv8mAVMNZWn4eNH2zudfzxGuTCBWVR+0Y457ZmX2U0WaBn06wwoSB X-Received: by 2002:a65:4dc7:: with SMTP id q7-v6mr11972794pgt.48.1525420852519; Fri, 04 May 2018 01:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525420852; cv=none; d=google.com; s=arc-20160816; b=tHsGZdGAVPplNz0acQdYYEZUftputyWACRtonzj+xcyTEV9+2u5c/rD99yLgH+BNmk CXHsTb2U4WVCXCP/eHsFKIjUjwLDdmWBSr4fFUMewtAdsqKceohZvkVAggD2CT78pUhY 6NibLjW1ynHrOPwi/tEqITLBjPUq5hOYU9tSeUul/4PTkZ7ot6nOFm7arV2LDraq2vgb d2F5mEzB8cWrtl8XZ+QwRCuli37SDV9l2EX3SZGflt5tkHe12nRf22OIVLUvMY/vGHaY OCy07GRNmwE9QLmHRUtGnP/KemghsPHUZduHp4MJL8B/XxGfdMwEAK9E+IRV3Z3PD11X VfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=le68yvPzKK9sTZnoVbgncLQQbTQL+Uy4V7mL6xcaPWQ=; b=fQBYck6CCsSbFCAmMU1R+JwHYAtdwHBSsjDyDwxGy7hxf1snDSDPYoK/ps2TPtwfqK BcdBZhzo7zDXQ1hPsGKhPvCJMK8cbtAZAVXtvH8oYkzEIovhOacLaj5U87R+hgRRzFQX S4bIClY89478X8SS0w/6gMDhnYS9j6e2j18AV4oaeAkyZlPo+OjzqrCcKMpyoE4eZVdI WhkU4nSHBZVCicxxQzUXyNYF+2AFwxY/vXDsLQH25gqB6l+ECrDBGnRIhX7sq5OFUO2Z Jbfx/ufxAuREYYoxQn/WwsOa/CFTWADOdtzYDHXvYH9ICRwXcbgkibkyWJbqvrKFOcCI rgqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22-v6si2354262pll.393.2018.05.04.01.00.38; Fri, 04 May 2018 01:00:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751382AbeEDIA1 (ORCPT + 99 others); Fri, 4 May 2018 04:00:27 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50324 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbeEDIAZ (ORCPT ); Fri, 4 May 2018 04:00:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1EA0F207D4; Fri, 4 May 2018 10:00:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from aptenodytes (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id E57FC20A49; Fri, 4 May 2018 09:59:59 +0200 (CEST) Message-ID: <18af23e5efe2cdef5ed4b51c6dbf1ddeef8ffd5f.camel@bootlin.com> Subject: Re: [PATCH v2 06/10] media: v4l: Add definition for Allwinner's MB32-tiled NV12 format From: Paul Kocialkowski To: Hans Verkuil , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Philipp Zabel , Arnd Bergmann , Alexandre Courbot , Tomasz Figa Date: Fri, 04 May 2018 09:58:41 +0200 In-Reply-To: <198e991c-1052-5bfb-f397-0e7d388b3c00@xs4all.nl> References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> <20180419154536.17846-2-paul.kocialkowski@bootlin.com> <198e991c-1052-5bfb-f397-0e7d388b3c00@xs4all.nl> Organization: Bootlin Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-pjmmlWeTN8CeAiJmte1x" X-Mailer: Evolution 3.28.1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-pjmmlWeTN8CeAiJmte1x Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, 2018-04-20 at 15:59 +0200, Hans Verkuil wrote: > On 04/19/18 17:45, Paul Kocialkowski wrote: > > This introduces support for Allwinner's MB32-tiled NV12 format, > > where > > each plane is divided into macroblocks of 32x32 pixels. Hence, the > > size > > of each plane has to be aligned to 32 bytes. The pixels inside each > > macroblock are coded as they would be if the macroblock was a single > > plane, line after line. > >=20 > > The MB32-tiled NV12 format is used by the video engine on Allwinner > > platforms: it is the default format for decoded frames (and the only > > one > > available in the oldest supported platforms). > >=20 > > Signed-off-by: Paul Kocialkowski > > --- > > include/uapi/linux/videodev2.h | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/include/uapi/linux/videodev2.h > > b/include/uapi/linux/videodev2.h > > index 4b8336f7bcf0..43993a116e2b 100644 > > --- a/include/uapi/linux/videodev2.h > > +++ b/include/uapi/linux/videodev2.h > > @@ -669,6 +669,7 @@ struct v4l2_pix_format { > > #define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') /* > > Depth data 16-bit */ > > #define V4L2_PIX_FMT_MT21C v4l2_fourcc('M', 'T', '2', '1') /* > > Mediatek compressed block mode */ > > #define V4L2_PIX_FMT_INZI v4l2_fourcc('I', 'N', 'Z', 'I') /* > > Intel Planar Greyscale 10-bit and Depth 16-bit */ > > +#define V4L2_PIX_FMT_MB32_NV12 v4l2_fourcc('M', 'N', '1', '2') /* > > Allwinner NV12 in 32x32 macroblocks */ > > =20 > > /* 10bit raw bayer packed, 32 bytes for every 25 pixels, last LSB 6 > > bits unused */ > > #define V4L2_PIX_FMT_IPU3_SBGGR10 v4l2_fourcc('i', 'p', '3', > > 'b') /* IPU3 packed 10-bit BGGR bayer */ > >=20 >=20 > Add an entry for this to v4l_fill_fmtdesc() in v4l2-ioctl.c. >=20 > It also needs to be documented in the spec. Noted, I will look in that direction for the future versions. Cheers, --=20 Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com --=-pjmmlWeTN8CeAiJmte1x Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAlrsErEACgkQ3cLmz3+f v9Eo6ggAoR88fJeRrCVgfkKekIdhUwc2A3nqbtb8cf5+rhbpEJMDIQ4RR04kSmZM Zis03s0N/UZI58R4tUacf5O39UmdZAtszhzMXlSMzRenkyasLlByzxZZh/YltkP6 lwonoIfYLzJ7ZvXJBQAJhNyn3VMORNvC399xGQoMI89TiEBzypJf/+9+pbWxVoNj 0l+++VoyywDTRdjOG2YQeJRPe52lkEKXXs4Gn9qx9rdMgIzj5aMnOQf1Q8HutidQ 5OMDBxXZQImnTS3yfr0Su8Jw1ER3z1ZKGK3SX01IFVgNcx60pGqACZ1YFbj+G/Jr Jf1OLlJDi6PZ5pKpZpxx9Qa0o6HONA== =DzS/ -----END PGP SIGNATURE----- --=-pjmmlWeTN8CeAiJmte1x--