Message ID | 20231004103720.3540436-7-hugues.fruchet@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp35138vqb; Wed, 4 Oct 2023 03:39:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwdYrxnXWHGArv7BE0D6HZtSkUjrndYfa2GTmTOY/OPc4Patk/ZOl6blJKg+kmRAvIHD7q X-Received: by 2002:a05:6808:1da:b0:3ae:5447:5346 with SMTP id x26-20020a05680801da00b003ae54475346mr1891206oic.52.1696415951845; Wed, 04 Oct 2023 03:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696415951; cv=none; d=google.com; s=arc-20160816; b=yVLNq+HCu0DnGcWCNPwBv4iqpPMK5tItQUaWXcMufH4h9imY3145iT2XfCwq5pZ9i1 v6Oc4rpoW2Mz2uCUt+NO/ihWVIOGl0ebNPc2OmJDlX7DzoUxwF0gFK3S4UxHltX3NMUZ TQywt+N+ml/rwXUQCaxBhzsjYZ1PEC8D4OBTJaaVfMcKJ+qH8HwkSIQTbLcIl2zM0UOl Ek/p+/8r9VS6exmc/4dq+u+pAjJmAuWSuNpJjggBvbwKpyPDfqapHcmG4+qq4utJKqrs M4UkKE2FNBeQz88sI+vj7oX2wMowz4HuSDON+v7GsFyUc2TnnSkUBClApJAkslwfBJnP o0Ew== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b19-20020a6567d3000000b0056a1a149034si3569957pgs.650.2023.10.04.03.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 03:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 1B222820E517; Wed, 4 Oct 2023 03:39:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242196AbjJDKjD (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Wed, 4 Oct 2023 06:39:03 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <hugues.fruchet@foss.st.com> To: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Philipp Zabel <p.zabel@pengutronix.de>, Andrzej Pietrasiewicz <andrzej.p@collabora.com>, Nicolas Dufresne <nicolas.dufresne@collabora.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, Benjamin Gaignard <benjamin.gaignard@collabora.com>, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, Daniel Almeida <daniel.almeida@collabora.com>, Benjamin Mugnier <benjamin.mugnier@foss.st.com>, Heiko Stuebner <heiko@sntech.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Hans Verkuil <hverkuil@xs4all.nl>, <linux-media@vger.kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, <linux-stm32@st-md-mailman.stormreply.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-rockchip@lists.infradead.org> CC: Hugues Fruchet <hugues.fruchet@foss.st.com>, Marco Felsch <m.felsch@pengutronix.de>, Adam Ford <aford173@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 03:39:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778821052964733795 X-GMAIL-MSGID: 1778821052964733795 |
Series |
VP8 H1 stateless encoding
|
|
Commit Message
Hugues Fruchet
Oct. 4, 2023, 10:37 a.m. UTC
Add support of encoding from NV12 single-plane frame.
Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
---
.../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,