Received: by 10.192.165.156 with SMTP id m28csp867371imm; Thu, 19 Apr 2018 08:50:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/omTasbs6DV16ZFYW0rDDEXUI2PQm86W5HVoZxvScT/vfN1H8CuQgtyZeomXOLzcyXdiED X-Received: by 2002:a17:902:7709:: with SMTP id n9-v6mr6728158pll.385.1524153056871; Thu, 19 Apr 2018 08:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524153056; cv=none; d=google.com; s=arc-20160816; b=XK4USopvu8teNfIuzzA09PAVa4x2hGmJoVMNT1hirGetg49uPu1bZoeiqO4ydUea29 +H/DgPE1FcJPA7Zixz0tmWUbZhiOlrxeLezTt2fsadIkYSEHeqYBZHs0Whw7jUnpYCNY vzqk00YwV32BRwHnmW/UJE1RjiONkJf2fks6k0AvHx5Gts1bFuhkYEPqKmimXd+547/Y 5EPDnGZaWeDbUfgKOqw+zzGVzYWZEXBvSpBzCu4SDFLiglvLLK6E5/q/e5HPvEdF52S3 1VfEzwv0WUjmMrinczzhebulMsSmWPV7OR0hwiy7KB09l0kQ5ozBy3gfFFK2/h6ZL4MN gw5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Shtt15iauIXcPVlu8CHJVTFGleUXFFH7Kho7w9qnUGM=; b=zEwbme6PZt2uSNVdchHZdYtaQ3cBDhnf+CEvOdAbB1gNO257Z2cvA7EIF4tXY3ZK/x HyqNtdS+QxJ0W2BCuUnec4Ef/p2uV0Ign0byRQmrrgddFVj4azX/br81fWW3k6Vgg8Jw eAtIB8gJmK7u/pFwkfDugcGzS4wMhf5vCNHzp58zT4c/TH5NOX8zFIqIvfhghDxmEwN0 eKsgmBbkt2o6I8LXpWiGPC8sYPgMwaigVVOUiZBslNTMhCkF1CdLY2JZCrwLpLlPxRvn 7radimVX/I1hrZEAsduzxfMGML6N6rsjcVqONj0s4wuVVpsj/CRETn71OTTKZb4qLCbK 8mrg== 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 k2si3221526pgr.200.2018.04.19.08.50.42; Thu, 19 Apr 2018 08:50:56 -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 S1753466AbeDSPsf (ORCPT + 99 others); Thu, 19 Apr 2018 11:48:35 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42907 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbeDSPq5 (ORCPT ); Thu, 19 Apr 2018 11:46:57 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C4F8320867; Thu, 19 Apr 2018 17:46:55 +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 localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 5945A20824; Thu, 19 Apr 2018 17:46:55 +0200 (CEST) From: Paul Kocialkowski To: 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 , Paul Kocialkowski Subject: [PATCH v2 06/10] media: v4l: Add definition for Allwinner's MB32-tiled NV12 format Date: Thu, 19 Apr 2018 17:45:32 +0200 Message-Id: <20180419154536.17846-2-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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). Signed-off-by: Paul Kocialkowski --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) 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 */ /* 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 */ -- 2.16.3