Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2510243rdb; Wed, 4 Oct 2023 03:39:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+QROkJSkPfFoN/sZCKc1ker06mpycoOM+SDYgdz4uhkvExuaflU4LBb21gxuCoh6AGE57 X-Received: by 2002:a05:6a21:328e:b0:15a:f4e:620e with SMTP id yt14-20020a056a21328e00b0015a0f4e620emr2091204pzb.59.1696415947974; Wed, 04 Oct 2023 03:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696415947; cv=none; d=google.com; s=arc-20160816; b=Ya51G0KQc7Ucc0N8QjKKH45Ii5a4HvJrEiNK/H3pgxvvRqGHVkieoAsnsMl8+X03Px Z+bF4wxrODpxigsMVicZ5vXDo+lfoI4DYEz/9t4y5bq81McT5xa8T+eDgN8e8MrBnyPd utvJkbi8gJ1l11hzTxLcIayIfF/e/d1kKAXecs05q8JNj3U/n/i126LGCwNubqMIFVBb VdwShu5a1Yt9Pgr5SBqbPteZDFMegGi4p1GH+bpGB/a6gWh7zG65/NMvqWIM9TD5Nlpa e5OnocE93o7r/HNMReBW5KXvx6+3h7wqCGC0XY6hg5OV+nc3zY1DY51RSUsVco72K4T2 VncA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fjq+jjfSImcfRAA7FzJY437jVyVi0XlHt5CTjFzYrtw=; fh=ErwLDw9+98Mb4Q3i5RoHr7UOS7Ns3CK5YbB+qheGbUs=; b=BI9ptxNXYth7r5dqwMnLQDzqWxXXVl95Oqqdwtw7mktLBrB3fB7PHq4vf+PaHQASks 3vrD3ESjq59ATzBCY5maPqTx+r4mtgvyEUbWu9zD7xudZ34z0Segt3dRqQKEzOfG8Jis 3qSy2IRSqoF2aQEeuu4wn13Q3bDVX6+/LkPPq7FWUJumzZsduvKV0NlMN4JaA6GEnRpu ijoF+9BRsFesvEVD2CQ6ro1HESxYWNzJ8YNlcxCunXyZ90xt252YeledPzJIlz9RUWOK zIah2niRFb+KfjTnmcoehlJS47zBdv9oHzPq1qDiyafTeywK7V+ZLOUFyKGPITLOubc3 /fpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=NRSQjjrA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f10-20020a63de0a000000b00584c5117901si3610540pgg.59.2023.10.04.03.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 03:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=NRSQjjrA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A6B1D833F8C3; Wed, 4 Oct 2023 03:39:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242147AbjJDKjC (ORCPT + 99 others); Wed, 4 Oct 2023 06:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjJDKi6 (ORCPT ); Wed, 4 Oct 2023 06:38:58 -0400 Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48740A1; Wed, 4 Oct 2023 03:38:52 -0700 (PDT) Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 394AUYKP021867; Wed, 4 Oct 2023 12:38:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=fjq+jjfSImcfRAA7FzJY437jVyVi0XlHt5CTjFzYrtw=; b=NR SQjjrA/XRnESwsdxvz2P8AvhmE2xg1Y4oai5qw9ea/nQtwaWPLj8xqCTO+omlKYC rsIOSg+4tBi+P1JuDbcqLepc6K66JkFhW9tYlwRj7j7anQyYfzmGu1jMG0RTMkcr siEpfIRZSDUhHDIBOl+TRbXOYGIB7+qVc6J8BllBNRvJFQmVY8WqEWs87x2+uVvH b4fx48ELNA8/vvtaQn8er0QNGvupTKFSj/TKPQqpbKD42mQwKne3NIwIdIXZvUax ANdxlCCUXYeSybsYdAlv1hXmuT5CX49J8EkFDSU2XvBqUvmtbd3RgFB0ERe/hpbk hlZ4BVHvzRH0WKRkTBJg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3texmj69k5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 12:38:33 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 59C03100057; Wed, 4 Oct 2023 12:38:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4E2C723151D; Wed, 4 Oct 2023 12:38:33 +0200 (CEST) Received: from localhost (10.201.20.120) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 12:38:32 +0200 From: Hugues Fruchet To: Ezequiel Garcia , Philipp Zabel , Andrzej Pietrasiewicz , Nicolas Dufresne , Sakari Ailus , Benjamin Gaignard , Laurent Pinchart , Daniel Almeida , Benjamin Mugnier , Heiko Stuebner , Mauro Carvalho Chehab , Hans Verkuil , , Maxime Coquelin , Alexandre Torgue , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , CC: Hugues Fruchet , Marco Felsch , Adam Ford Subject: [RFC 6/6] media: hantro: add NV12 single-plane support for STM32MP25 VENC Date: Wed, 4 Oct 2023 12:37:20 +0200 Message-ID: <20231004103720.3540436-7-hugues.fruchet@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231004103720.3540436-1-hugues.fruchet@foss.st.com> References: <20231004103720.3540436-1-hugues.fruchet@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.20.120] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_02,2023-10-02_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 03:39:07 -0700 (PDT) Add support of encoding from NV12 single-plane frame. Signed-off-by: Hugues Fruchet --- .../media/platform/verisilicon/stm32mp25_venc_hw.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/media/platform/verisilicon/stm32mp25_venc_hw.c b/drivers/media/platform/verisilicon/stm32mp25_venc_hw.c index 2176eccd1f79..d66f20bee9eb 100644 --- a/drivers/media/platform/verisilicon/stm32mp25_venc_hw.c +++ b/drivers/media/platform/verisilicon/stm32mp25_venc_hw.c @@ -21,6 +21,19 @@ */ static const struct hantro_fmt stm32mp25_venc_fmts[] = { + { + .fourcc = V4L2_PIX_FMT_NV12, + .codec_mode = HANTRO_MODE_NONE, + .enc_fmt = ROCKCHIP_VPU_ENC_FMT_YUV420SP, + .frmsize = { + .min_width = 96, + .max_width = 8176, + .step_width = MB_DIM, + .min_height = 32, + .max_height = 8176, + .step_height = MB_DIM, + }, + }, { .fourcc = V4L2_PIX_FMT_YUV420M, .codec_mode = HANTRO_MODE_NONE, -- 2.25.1