From patchwork Mon Aug 1 08:18:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 595724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A418AC3F6B0 for ; Mon, 1 Aug 2022 08:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiHAITP (ORCPT ); Mon, 1 Aug 2022 04:19:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiHAITL (ORCPT ); Mon, 1 Aug 2022 04:19:11 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2053.outbound.protection.outlook.com [40.107.21.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D48F63AB11; Mon, 1 Aug 2022 01:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A6rK/Nn5uGMEeHP5xCnF8AiInhJyX0NvivP3eppmq+nsueURZp5ZrAOMuUG5IkpI1zrRG6NW40MzmUNUGcJvmOD70RNXdcDBfgcZs/iWo+IOJ/1o/QR2KqcdjouQGv6bRSIpBSmew7iv9A1FQB+liKqzyxU1tDvoVxE/5fahN4ZDpd0qiAFxRVCVQwCMn08ng5BpxndlrbfkuPodWQL0ckFQgh0/72Puh44g+QRWhSHQbYblwfl4whtLF46eMf5l8B/2UbuCaYibOnGUiKQ6oKLLEuhFST5lOQvQ0BYxS4vBBaf6ngZMVfExO0vF/YYTNSoIYIxI0NbH97Yz935MCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kN1Qwcq9eoWUxIJU9Yd2T4IGLMbZMN7Zb5GLCZFJBrk=; b=KXMrL+ybI475Kmj3giaHd2Q7ig6tXeL2gqnpUxZpMQkPevyB1jEwYDKy1YRMcdzdnCj5/lLdYXQcr0ZVtLCexPfLM706K+VPVsuPZ3rGIIbUjm3aDZmlFawlQB0UmhG4SHD2IfwCl6he4mcp43KIiMNRWmZ1F4cd2HGWma4rb3/EJ9oYxpMxVdEEWXHt/LZ6ui4hOPT2okOnLtQX1onf/cz3yrKc3lmbNmsZCZy4E/lFRUQuX1B/m0wYCW4UUh0KoHOfhCGTj7/4ip2MGeEnQ29OV3eLyvenRIH16pbDoLivsnPet9LGTpxnxBbCt06iBgJXPrW0Ya2JD4JEIXrNfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kN1Qwcq9eoWUxIJU9Yd2T4IGLMbZMN7Zb5GLCZFJBrk=; b=Rb+QmB/HAKgLd822/3n/OTRl9/GNvjHYGBbqFUx4EW+XoK7jUXqfB9zYx3EMPg0D67kVA+IIYhLaxkw2zNWoP150KeG4lYorhWjj67QEWMADgPAmiFwK5CZ2xA8sYqTqBFjM7qKHQoCbZiu/GUxQKVugZVfMpAfamGtJiU5WcjI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AS1PR04MB9334.eurprd04.prod.outlook.com (2603:10a6:20b:4de::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.11; Mon, 1 Aug 2022 08:19:06 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::5db6:3f08:2e04:33c]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::5db6:3f08:2e04:33c%4]) with mapi id 15.20.5482.014; Mon, 1 Aug 2022 08:19:06 +0000 From: Ming Qian To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] media: amphion: encoder add support for contiguous planes Date: Mon, 1 Aug 2022 16:18:05 +0800 Message-Id: <72174e3feb8427f255dd65d081765bef23b4cfea.1659340974.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: X-ClientProxiedBy: SGBP274CA0011.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::23) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca7ab328-ec26-476b-9e0f-08da73968054 X-MS-TrafficTypeDiagnostic: AS1PR04MB9334:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tyebxqza+X+btEKdd3kVt+Etf/1dO3ndyaEv64IrAeMwcCAIs+qORapNGIe4d7ydgYTiM0p+/RmI2jZRov45TwliWaSPEBQCs+KSc68hb+s0soXcDdA3h/Wy1kU3O2yONY5YfNUvcpofFYFJyyltTuRoQsdB34LAp9+rOC11F11c1Y9/6JFUAVLCw+HmOtGriPGLv1tqHhhucaG5VOv2WotjJ3BsvGa5v6QaLXf2HEhd6tlGqt9aI4CIRDUfjyf/V4QbX4lFiVWxLU5qhh3to6eRVMajM/hx6Fe7D0710BRIy+Sds3nphJDBMotRN6W7ghN66ly8jeRPo9WRUoRBtmQMCdH/gZpiND5gjvHK48ayFQuQlgvGd54shFBoqBS0NDBxyvW3i68CkNpGfo0Y4+ONyQt88CUb/BTIDzpDnQrDrmW5CM2OjiKoS3F0yUt7ghtbgiSktqFDE/QZQvOz0jR2SkmL+7BFXvJeqTGtVT5PWhesbOEDow2tds+QhZK17PYbqxTIcw9Vr7dXcxk3hjkSFV/9d56xMZjt0khC6D0ufviKFN/ShN0LyLfU5psQLnmuSqodel/jOR1dTlPIdQhyzcPgc4VlPofScfGacDMPTaEfV10ixhv0TbA63BPoDX1zzmmNKP1Jn3x6pKsrSCbn31rAvpddLwj4S3UkFyacSYQ2yK4XiQzbPLdJOVtu68WuQPOnBqIPC+5RkrmmeLB22mS/NHFyx1MEstoKGOHMXQu/SLfBbn26gsAbhL6Y1VE30Ae/x51oYR2HmtIWOkytZ2vkkqZwviUUODUs46XnjVkW1hKLPaEWkBf9K2fU X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6341.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(366004)(376002)(346002)(39860400002)(396003)(66946007)(316002)(6506007)(6512007)(52116002)(26005)(6486002)(86362001)(2616005)(41300700001)(38350700002)(478600001)(5660300002)(7416002)(44832011)(4744005)(36756003)(38100700002)(66476007)(66556008)(4326008)(8676002)(8936002)(186003)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GdwMtpUGukYQbj5vOyjIqCWyIMtKSfJ+SUn2Nq5L4pcskQ2D7guopUyBQfhReYIOXrQWecf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UjikWmMVp3JaZ3b+fpwDAz6RjmQZ2psxZgb4TLQOib8NwFJB2AFg6y17kS2vOcNcBY0/mgUYM4IJ59IxAef4BwUytAmbZv6QmRzwtUD9AidnBQIc9e7iqs4XLaR0FgKGR/cc2b0XZRFSIqjuQmxYoBV0VpbsQQ63XVE75+ZyZSmT4d73s4WF456tDNKE0yY6u3qUHb8DDHbZCj3ReOb8DxlJuXyVbCH8949aJOb8QsoKTMaNoNru8Bf0PuNcgh07Vq1aSvneOs7Kl2vBsr6dOjh8EDAvWEKdwgOvyIaQeJQ8yNwwwRCAdFHUumO2SdQ5XTzfawATc9V9B+bFK6fFMy+PtzGc1CHRz+xa7LjoK2Sy4mb2Vyihl0OllF/mgK9lnRHTw27TV9ewkDxcKQI3wdp+qrSQcv/xnS3WjQZeC3Jgbb6NN4f6AkzdBnSx4wVSI6N5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca7ab328-ec26-476b-9e0f-08da73968054 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2022 08:19:06.4476 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eTIYpchjPSNXS3rrFl/8oAv352gw4GD8LsNUQB+9vz0vWZYlp7bfB64CYWRGXo1FUYjqSNJM5J0oNe2Pp7jnRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9334 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org encoder add support for contiguous formats NV12 Signed-off-by: Ming Qian --- drivers/media/platform/amphion/venc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/amphion/venc.c b/drivers/media/platform/amphion/venc.c index 060a1ee78b17..3cbe8ce637e5 100644 --- a/drivers/media/platform/amphion/venc.c +++ b/drivers/media/platform/amphion/venc.c @@ -72,6 +72,14 @@ static const struct vpu_format venc_formats[] = { .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, + .sibling = V4L2_PIX_FMT_NV12, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M, }, { .pixfmt = V4L2_PIX_FMT_H264,