From patchwork Thu Aug 25 01:38:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 600526 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 06992C64990 for ; Thu, 25 Aug 2022 01:46:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233004AbiHYBqW (ORCPT ); Wed, 24 Aug 2022 21:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235727AbiHYBog (ORCPT ); Wed, 24 Aug 2022 21:44:36 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80087.outbound.protection.outlook.com [40.107.8.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34199E111; Wed, 24 Aug 2022 18:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QppFJpYd2VQ4O7VZc3HIvKWhAiMsOBGFhdlxlOy0fxwp4VWTMwv5dSM36YfqtLSQ6pj3nr8WtCymeEA8i+ciWscqmyKEsn3OvMetGRmpOuuYNMwJrmiZvD/b8nrSxF8hGAl8IphuVg5RWPVD9rFMQG24Wg3WrCqnI/UG7gjs6rwEKgwSU7C/nPJmRcdEdvwP0oDvSUK9dJeAkvigUK4G78aG7q9+N4uZGG77hT2tuPcAG4hQohtRoLe5JWZTU/PD3AU1jEoYK3Q9S6ZQFmqg3cr6B4Snx2szXZPer0DgTSao7KMyEOj0fQx2MfNcUjLbzfccUGxQ1jM7lhWC35P/Sw== 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=rch1E4cmHaaGRNWOPA+W2O+I/XHm8NIZi7EBnWeVgmE=; b=W4CROm5oqE14JEU7bInaEY204wnJg8iuIqBcIW186h6negb2tyL+Nfdm0svpCnvJDRBRtG/IkhxfAPcnAIXo9pYNzEyownZI8yumsip+6uKADxjWqTBkt3smmrebU4U5w7ITPdP8X07fCI6DilCDdWu9v5j5R4FriGH9K63xB5CGzVAeepSmMcwabxn3spdbXn0JYCgVrtrK0bQhjiCM6E/KH42WLBx7WqS1vNnwBMmNkw2FR/T1QojfDIuFQ2ae+rCOK49SRUp7cXuj4396OoD3GZB4Ltipc9stvBQZKCoKCUm+++WJoQNnlSwazM//9OSYhUNkgcjcrKf5/bD/tg== 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=rch1E4cmHaaGRNWOPA+W2O+I/XHm8NIZi7EBnWeVgmE=; b=YBugTwIvIQJrEjZ5lr8LllMobWjGWE8HHZ4WIDpjZ3wm9fJy+iYDxQqjdLvYwLZl8KotN1lkPF7bWQfw9zV6tCjg5lv3c6SA8YhbZJ9NzddYBfOvX7Us2DRYpP1ZZWVADfFI5WJcfyn8V+GqDh1+gvNdbFy7orS/IjISh6Z/rqM= 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 AM0PR04MB6162.eurprd04.prod.outlook.com (2603:10a6:208:147::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Thu, 25 Aug 2022 01:39:24 +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.5504.027; Thu, 25 Aug 2022 01:39:24 +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 v5 3/4] media: amphion: decoder add support for contiguous planes Date: Thu, 25 Aug 2022 09:38:31 +0800 Message-Id: <3263e00d9b31f9f4d8621fedbb37a08d7a33a960.1661390673.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR02CA0020.apcprd02.prod.outlook.com (2603:1096:4:195::7) 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: e6f95814-98aa-4f60-9b1e-08da863aa39a X-MS-TrafficTypeDiagnostic: AM0PR04MB6162:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nRKGh4SWmqsKJruDwjL4lAddreFSS6FZv53YV76JVYx/OT5Gsmi2GVJCl9CM7yjSbnvvFDhmjTRD5YBVMg2jd2HaI4iaL72F8g0TBLiAPRi15qjMchILQYPAp3rTwGkR+knlFV7WFccQeyQ36j73w0lsGfqdaZfTg8NJIiDz3xgVKw31c3a6y3dvNnpEEsxgVDlf6jbxZo4nqzX+c3FnVR6uMc+Ih93UGkmNb1DNWY2fsvj7ynf0XCs1IdtcokXVLew6smb7fzyvLBRKyP6EjVo+uJt0ZrDj/2iNohWrKugwJmz7TvOLksCpWD4f66T+0wsW4dcKE45vyiWIaiFqX9cbaA2Ummaawp7N9iGmBGgxfm5tORpmobAKcSQzeU8Ao9ipgjrHN2dQt+vwIcBpgjicTRAT01YaCZy935GUe8Ghyh5wyeuj0zGpQUXdoDfYfe/1MV1UuhLywp26S/EfnZjOiwkgQLSFpdGh9Hz3OJhOgVQtvVnD4pTMU2QEEwQWnPk0jVfl4PuDLkJyJ9Qo5M/1AoL0EKKV0UDHoSfV5ej+9or++zc95hX7hSySuP0KZPcik9TH9k2tJKFclu/WAq0cR5TEuDG8m8H1WiKLcYpWs5vNQNUCXskW1NEEYpxrwKF/4YyUL7t0vYaQg+mVjUkbIr2FTSevZ8CQ9Q9HPi8M8UspnJKvvaQremsNYtbM0Evas3Ee6oyuFRexYeYgYKDsPnbu21HTfhn+ACnoX3NtAcD+37LYz//vluAwWOqWXrVF4UZPkb6/vetOLBsLGg== 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)(346002)(136003)(376002)(396003)(39860400002)(366004)(6512007)(66946007)(38350700002)(38100700002)(6486002)(86362001)(6666004)(26005)(478600001)(6506007)(2616005)(52116002)(41300700001)(186003)(7416002)(8676002)(2906002)(4326008)(66476007)(66556008)(36756003)(44832011)(5660300002)(316002)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7LlbIGEFz3JPBfoKtBKxAeiNVoae2+4Y4BHw8hqibmjD+sBNdPqOnADoXkaJTrDBVQuw0bTUp3Mvv6d5d2mrY7PzifH/3jB/0xz13HI2RzimvIHcbP5ECP1kKI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K6j6L6q7awlNUoRJt1OPnagY0ahQ3zXjgzDHVHdPE6s3wtIMnnGLVB3PxN9DaXsjNurJ6zjnY4EP+b5LtQ5bdSe0V/hWONj83rPWJ20QegQYQ35lRG4HVd45Qh/Ny4vovDmHpXPJtRLLdgtus56nl3ny9RfdoH49mOLiuMQTokiLumxC7FjiH08jYl6EIAyVCOk07FhPh5T1TdhylDA65vfnO33LDYcZ1k75piod0AVqYJcVWIzAks33B2t+fDoVIydXKEEJGXP7DjCrV1lyuOc1dFvLM7aL2Nv9YjcSe/7uKCiKqkRgmBPy21baKRuZjFoDml68FEhQfpUoLUbnTWOf+HLGeGfpkskDmb51VMmnLccZ7fyDh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6f95814-98aa-4f60-9b1e-08da863aa39a X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2022 01:39:24.0202 (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: sD7z8/o8Y5KwsTU7CeR0s5pmaqpvL5PE53nLUPevfLOU/tW4MCcGgD1sYiunK8QOPbnadidsi6KheOhTHaTCCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6162 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org decoder add support for contiguous formats V4L2_PIX_FMT_NV12_8L128 and V4L2_PIX_FMT_NV12_10BE_8L128 Signed-off-by: Ming Qian Reviewed-by: Tommaso Merciai --- drivers/media/platform/amphion/vdec.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/media/platform/amphion/vdec.c b/drivers/media/platform/amphion/vdec.c index 48ab664fa7ef..9c3324717cbc 100644 --- a/drivers/media/platform/amphion/vdec.c +++ b/drivers/media/platform/amphion/vdec.c @@ -72,12 +72,28 @@ static const struct vpu_format vdec_formats[] = { .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12_8L128, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12_8L128, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M_8L128, }, { .pixfmt = V4L2_PIX_FMT_NV12M_10BE_8L128, .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12_10BE_8L128, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12_10BE_8L128, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M_10BE_8L128 }, { .pixfmt = V4L2_PIX_FMT_H264,