Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5598839rwb; Tue, 9 Aug 2022 00:13:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5JS9y0DSP8JLqjszFnHUd6yLVIW2sxdcjecOYVn9Pjkd+HlNrqkt5vA3TODPhd9Tttpmb/ X-Received: by 2002:a17:902:e80c:b0:16f:8663:6c57 with SMTP id u12-20020a170902e80c00b0016f86636c57mr21776840plg.102.1660029219018; Tue, 09 Aug 2022 00:13:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660029219; cv=pass; d=google.com; s=arc-20160816; b=01MqU7dkaPK9oVPF+PeRzoMqviMpm+mjBhEWWO4J1ZT/1x3wINvZA3ckUMZ/1mwe6a NR34ph6I8BbiKs7NB26FNhgOEdEY97Q0uUTL3wHkXjyPqtoQLHDeAv6Hzb2OiP6Q3qNm RiTnhqEtc1t/xsjZbRN6z62kYhlbKiE+6TsQPJxCG9VCjv9TDS9ahZmwCO7woSS1Kbs6 AAqLsEatrRtNWL82WSKNmatZmixmAd3c12weQOgscSMVtovdErp6VUrjOd0NDAf6q1mw vDeyefPVL2lGkbYMj1OsOJbz1WVo+/2Z9c1zkhpS/UqVvVonRQ7KQadV+dNvbgj5ZMQl B2Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=yULMOGWML5aeG1noMCzhPKuvADFrUVQezEdQe79dBjYZZLd8bYlv90jCDyeVYJeb3y CglCpK1ERWUEinMDmR4qBK+3a98TNUlP+Zfckwy5ayOhqDuoKBNxbDvpiEuyqwi2zzLz b75vpyC10/cpcyiyf3bf/fUVGL69hdqppM5eSfjpUDeWLm5P55nAUI6jzx2KpR2OI4A6 oy/z7Q4UhaC1jrzxQb1a1hVn9YIshjDEXYQm9HQG/dLyw/kXverMA1XmvniI9ch9QsbM ET2+Z589HbULoms9EUZ8SNpvNkxmSIhTRvwK+FvWCHe/84L8iH2TILX9xS4qt0qOl08S ivXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ChXeilC3; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd13-20020a656e0d000000b0041d70afeebasi5875579pgb.652.2022.08.09.00.13.22; Tue, 09 Aug 2022 00:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ChXeilC3; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238688AbiHIGvn (ORCPT + 99 others); Tue, 9 Aug 2022 02:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236322AbiHIGvh (ORCPT ); Tue, 9 Aug 2022 02:51:37 -0400 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00062.outbound.protection.outlook.com [40.107.0.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEFA9205C9; Mon, 8 Aug 2022 23:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OHbj26kaLOhQkDwtWaGmiy8EHywHmPmlo5cRhguwq5TUsKNVg+78c3yOT5MFJ4j/fZQLunttiird3UEyKKXPCNY+w2qmxPWzWbCsHNgSMgg2F0jwxx6pJzGEcrcflce6hel+n1JmRGN5aqfdr3RNlq81TEyskBa7sRExm+NOxJHt7hPJnJ0aRLEFchsaczWpz7374Yz2qVlsT+xTUwVgBlgfduBN9bjEWSynoLg0XuKHxanS+QI/4TkEXtsxV6TA/9pk0SH1hXlLw1dj2wRr8mD/fmKwiXo2oGW9nKYsDEQxZRVzpdEkU4MFCSZTOX/m+QatxnCiJXFAW5xNizNGNg== 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=aodOJuHFxMqUUsNk2zo9WTk3jLY0ecot6a2XwbdgGBax+Q8YoKGiUqaTcPj+ugQCQBWHnReeKf+OD1aEW1yLq8jJM48d5CuEhr5N5bhB1b0Y6T+UNrw5ZXZYPbdxlFHdWEvtrE264xjO+OpCVIVUMUxjcoOjzmWR4LEbqNE0bn2w8f7HSXDak5sNsQy10+4rwNT00i0lpeXzCuZoK2on3hS1pRGgsFg8oP6QptG3It9y3bz8mmKW5XTPFh+lm9Lj4jLSoKVSwrw217qtAMYIer2qHOQUoTeLgle/+IySQmvyO0Mxqs7mLKqLNCFahQsZT8j+DaZhcKZRHO0aj5USyg== 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=ChXeilC34RqpVEcLCHrtv27e/DJmQ2E+uuiOKwDavmDCTdPQEfCB0ZzPAh264uKNnCNSPzkauATntH5/ZfVUq6L/x34AYSi8c4841rELFoIQ63o/aMhsDN+8jFdGKBk4HXLsbXwetbsTDpIrHlSaiWmtmFsofxEr19dBfm15NdU= 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 PAXPR04MB8991.eurprd04.prod.outlook.com (2603:10a6:102:20e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.20; Tue, 9 Aug 2022 06:51:33 +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.017; Tue, 9 Aug 2022 06:51:33 +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 v4 3/4] media: amphion: decoder add support for contiguous planes Date: Tue, 9 Aug 2022 14:50:40 +0800 Message-Id: X-Mailer: git-send-email 2.37.1 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0038.apcprd01.prod.exchangelabs.com (2603:1096:4:193::20) 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: ac55b891-3508-4f3e-131f-08da79d39876 X-MS-TrafficTypeDiagnostic: PAXPR04MB8991:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MnOVxiwtLJoX0IvPmCyX6yJHOeSLYIWo41GhkmDv34V3t8S6pewsho7dMir88I2uwh9MaUTzYFn83pASw70zptScKjjORaRuZKJPTyPo9puOncMC5WevjdMEYdO7+BSkhDxl/6+ItF9xN/0AgV5Z7dJIS14VTIRTPiLIXhwXIAXbxbTzpT4IZBeQvNBWWfejMJ0VCfmxCBg7Wne4/1zVH0w2U6CE33Q8KWiCmF3gqwI2vWHmy/nVrzTH4gz74os/pREkNSeKULoMQAbETBjNLVD/myUQVIJyh5vF14HEJElK8Tx0rO8Cq2ELO8wBta4/HQbC+4lcH38bxWC+JiY1A4xZVwTxEgOWOmMp/hos1CWZN8M84wO86rnANstDtoY2id4UCzaqMK8qwQTCz1DqTP2LxujxoAhcUZ7lTvwGUtLzD9iJYfyWIrk/x1GMGWo+c+WL5dLQWm/vdTRFPJtPnnivOun+/Cu63UgWFmwgU3oElb2Lc4qMiWvxHadvWxM3OXBnIBhoI5DhhxK1EKUNbpd0SjoqD3586EqOlDOn8V/45FWmUesMPnVxBSndJ3uf/p5imbegbM8lZw6slh0Gw/pjWNPgtnWOIbvShXxdjnofy2rwVDm5aRTZt29V45ZVAwUau8Q0w/03yO9deMsoFSQ0ZWt944srbw0g9Q57Yy4bOduKdPeu5Udknjea/buJAMirqdIPRJ/cZu25K+j/phB8f56gnJjxn8+FMBLTStlRkWlVnHNEmjPD1QAVCvavHSucawlf4zjXgkqdQ95hTgBbshrVSB1Yc6A87KrUQpsTAa0SOAKIQBzu2avXr3xD 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)(396003)(366004)(376002)(39860400002)(136003)(346002)(7416002)(36756003)(38350700002)(38100700002)(2906002)(86362001)(66946007)(66556008)(66476007)(6666004)(8676002)(52116002)(6506007)(6512007)(26005)(4326008)(316002)(6486002)(478600001)(41300700001)(186003)(2616005)(5660300002)(8936002)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tf9+eFokNDz0IA99vozIlX+iGu5EZuB8ztF2o5uYQUEcAIFskFZT2UH4jKfc?= =?us-ascii?Q?knwdZVi+83QfyALZNK7Wo7a4rhCBvzcq/aQmOLaYKaZLqEahYZKrl71NTnWp?= =?us-ascii?Q?8Bfej/Y8WPBMJhE4VjHrzW/ybP7Od1aBgp+fVuaBt2ksQQRTZTtJIIMKZZjn?= =?us-ascii?Q?kftwfiVnAl8q6scXZVVguYhunffqb4ZdeznmCY+LRIF7ccW10PRWIQ5hjbeC?= =?us-ascii?Q?BJ7ARhOSrZv9ieT6wjGZUVcOQj3DT/StKxD5tCH1kaEY7a3jqLiVZgFk6pdd?= =?us-ascii?Q?hHMcSG9+lsf2HWHtCmRjwfoX5ez096Zl/sq4RNWpNhp2oW1lm6eLHBrqLXKV?= =?us-ascii?Q?pbhbBMgpCxI5FT0zS2OndtOb0JQtpHtIXC69CVgeJU923zI4M/mnDJmVN9ZY?= =?us-ascii?Q?+Xe6VuRP7ps0x3zvQqc8L3fbO2lVZ1+67TZfxWnsrN2o7HoSO43PoxkBpb13?= =?us-ascii?Q?GKhQVJOz4PjX9bDXYVUsV3STkyp4WWXI+JuyIrGDf93xxRAupc84Q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so8zQP+rveIxp17LkwY4Is6WCZimf+i6ycjl/paZFsTnk19OyZ?= =?us-ascii?Q?C8uT5d5WWMUU6s1IvCSN0a+9k12H7HO49XsjJdQVdmokBMZoqGKIxzQjvkz5?= =?us-ascii?Q?+PMEnSpVoTBxBvigGY4gXrBIJVCK2FnddakrB/byni3Mi+czl9+PMdRAd1qs?= =?us-ascii?Q?yh+US3ugbOUaQS3dV89dhUeI2Zpzn2AD+tBhVMmu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac55b891-3508-4f3e-131f-08da79d39876 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2022 06:51:33.1937 (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: 1oeUskWQg/XMpPILP+1kI8xQ1zsN/jGwyUjoIsNBBxH1kgc2AkHvSlttPA3VCqXqJhb/GqNS/OeTp7D/V9j4ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8991 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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, -- 2.37.1