From patchwork Wed Aug 3 02:27:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12935127 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 197E1C00140 for ; Wed, 3 Aug 2022 02:29:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234951AbiHCC2y (ORCPT ); Tue, 2 Aug 2022 22:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233506AbiHCC2v (ORCPT ); Tue, 2 Aug 2022 22:28:51 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130057.outbound.protection.outlook.com [40.107.13.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5504525C76; Tue, 2 Aug 2022 19:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oKSKhnKxC7zl2+6Sg+GrnNyn7ovAXDeOpw103bjTIs1Qc3CfsG8BfPveNm2NfU9TJ5ux4Evh+WVeC0DXbXzVEMCbRdyYgTF02WZawAWT+BEr5vxZfcLpcIZ6KMQsTN/3bU9UvLKCkRW64onFRq1zXfuMZeLCUP3rlfgEBzlNoUY8SCLBI1cj1CjMC/QbTSXCxTKQ9KdZFBoJo8UK4ddK8d6rynfHOyCpvOE4VgnqeCu6NcYpMw15pQ/rVDwJhoOydag8JmzGyAXYOllyLzjsI9xksIsTpDT4Hv78aXCr6pktkyec9m0gqjtDeRmPLPWG0WrWN7qy50VyEseXRduToA== 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=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=N/1HIJPJvbmTEFusxcrlsBoLWGt7EkvUjvG6GoupRiSeUouCbwXl8e3uJaXEyjYwPrhhBpr19LtLzn+L8iUav3oVCPQlWBTeseZeh13Bo6MyAGyH6fqirY+520t7HGwhjqAMabnUmMMxVRnn5z37TGWOBuUH/6Uzap+nZTYSDofKvXavSqWuYXCiCAz/fs7pfI/lz+dlE3bKuYjV1BA+8gi/8EYXMs3SZldJOC7i6QX03Fnd9l1qX0NmODW2UDdDCmHl3Od9JuJAvFIL+3ISNcicHG48SFgqykL60C67t3+nkL46dSygv4+7XXlbHAmJIdTbh2JT+goMO4LGTOXLiw== 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=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=aVIz6JfCyAY4Qge+GipsQO8Igu+7yJ2Q24eA0YK/jTG3rr+coOtlN2QvIAAPnRub3LSPkW4C9RIwPk7oYZJuycIs9anDm6QHnd+ZrwunPudGuEsd/AFpcPwFRNV6ig8tH0x7jOt0HcmxbB8VclttIKHeS4Hla+JmG4XPuZG4eIQ= 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 DB6PR04MB3077.eurprd04.prod.outlook.com (2603:10a6:6:8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.13; Wed, 3 Aug 2022 02:28:45 +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.014; Wed, 3 Aug 2022 02:28:45 +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 v3 3/4] media: amphion: decoder add support for contiguous planes Date: Wed, 3 Aug 2022 10:27:21 +0800 Message-Id: <61100d063b37d3f8aace352d2cb272ed8dd321c2.1659493105.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: X-ClientProxiedBy: SG2P153CA0022.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::9) 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: 00044e0f-3a37-4b3e-a1c6-08da74f7e38b X-MS-TrafficTypeDiagnostic: DB6PR04MB3077:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xg9eZ2wmL30JE9neHZLONPxlPp49IMhR7HifJzeQKg7C/P9ZkfY0EnoSF/6tLPyE0VtwOaf12JaBP2Alr5Q/NrbNKFIOE4+4TwI9c0HTM2hDWWWwomVI3PNRUR1rmI0PoQQL0nZmUiTiCYKg7UAcywbYWMEMzFfdskk+C+PNRpVOiXmaoq72FAeLvox3yV9KQquV6XczrdwaW564XMXLjR81gi85IfoZ91ZJ7WiPwQaokrZh578inYZpAa4/e/ngOCZUTiTMb1UHIAPG6oc8LXFNq8pxdl4gBeNXnO5tjtMJL2I73bEoVoi6doQeZbm4Ai651ys+13tb07ByM+II+CgyeCd3V2VreEBKbHsIXagP528MgVxou1i6x2uIYX9V58sJnBAiE1+Hozng1ETlZteBH5fS64/vhHYuh+12cPx2BVyqTXn8mcA/oZFHfAA0gQZUf+hxtmxu/cDOx/RAfh25HfO9lCliZt/cF3rVr86XSuU3WmUcQ0Uuh5pxYyecDwXlxGSq7K8vlFoaHxEGoU+39fadmYAAQJTo8LnA/qe+iSMj51xd0m3pBglIQ39rqcSBPfkCj+douZOX5hkSq3m1BW/leDg89o5N8sUndXfqZJjeWAauLoX7MuYPfo8FmdPJBOyGzN3t9p2an4qRr3gPiIvz6Ww5n/EDDR5IPu726q1ATThzVe64Gr3IZsPpiof6S1PpOjvi7NwswcLjbCQFZY7KqELHeIQGGNf07sSVV62kFNUZvS9FLIrUk58T973y1KqYynEP+2VgE/CY1RPEZyD/2wHg1ZQghFQqVM/EV9WgJKs42JVoW6PQMD0h 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)(366004)(376002)(136003)(39860400002)(396003)(346002)(44832011)(5660300002)(8676002)(4326008)(66476007)(66556008)(66946007)(8936002)(7416002)(2906002)(36756003)(86362001)(38100700002)(6486002)(478600001)(41300700001)(38350700002)(316002)(186003)(2616005)(26005)(6666004)(6506007)(6512007)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PU8Fp4sj2DJXkDWEsosfLSm0IebrQTQjAsRe/J/2QIc4ERq5EChu0W4SIC/jGoB3Qs85624SDwDSTJxKOd9ANWteWildn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ds45Y25K6e/ezw5GhnbpXHyl3he06+GTJUL/99TTMpBM52vzst3E1jqmvVsyNhvX/AhI7FDDFB5SDQNhkjHvLpJGldkuZDtk1fY6CHcXJFu15IeX/fpGwbUywvKMmPLMo7t/OQZ5G31rLU6u6jCPBJouHF/uSbUEiiWGtnl8Cv20MuGuEGS3RBgRee/Xw4BC9kHRY78dC9DIB4IK6bsxyf74Ajx/+iw+sISX7PkqGAGzJ7Fw1Rflsbj/G8E4RNp0UJczglUgx1xvXDQa6q9XmwxBjDhFjEkJct5UnvsPvUQtdDfdHLMtwd4R97DMZ945u4k5NQhLxsslgf0fj7EzzhEmGdnVpt/Z/5V5sFCRXPA6VWxTrTZreSbfnmB8MCGdrvUbfOnMLS+B84rdyRsvImpoTOkuDzobG1OUob9HeiEr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00044e0f-3a37-4b3e-a1c6-08da74f7e38b X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2022 02:28:45.2638 (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: eIn35qM3+CknkGKf1evZhQUCwt0MUR0ju43HPOIQ8bGl184NI1nNC4xJkOGPnMGIUW1iG6cPKE1xfK/stPinSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3077 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 --- 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,