[v2,00/10] media: imx-jpeg: Add support for 12 bit extended jpeg
Message ID | cover.1675230665.git.ming.qian@nxp.com (mailing list archive) |
---|---|
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1pN6DN-00DUyK-L4; Wed, 01 Feb 2023 06:03:26 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbjBAGDX (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Wed, 1 Feb 2023 01:03:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbjBAGDW (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 1 Feb 2023 01:03:22 -0500 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2062.outbound.protection.outlook.com [40.107.249.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2551438B73; Tue, 31 Jan 2023 22:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G+JnFFYkqc1sNOovT8Q1zcekx9BuurqHcnw3hv8eGXuto0iXZ9jX4wcFwIpVsiCNi4n2k+RaD2iFY8zb7/Tz4IlEiV8O35+vPZQXVZjJ9svUmVzRMP+lHoUZig9N+YYjXLGFkY4mDxISMJ+pUX2roHnOVZvgoP6X0u8lhR4JY712SZoo25tILljC1oTAgswCSLwfj/nc+mW6WBR+80rCmsmHOpiAFaJwA02Je9MUtqRYH/i9sXiC6tQJvtM2J2064cSRPxK/XyzpUcWxWz53FLu4Z44iTbAhWeDofLI8saRL+lOyqQ5686NoRdYrmjFXoFLp1QiOLVmVX7uwny3slw== 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=bvdvpM5dE7xZYJvDkp/k2QjR0vZ4lDiCkOJNMP1oh/k=; b=Exi8LjAoRni4wXE/HwxZmBdeIl8GcO2XdAW+Mn3mbi+eBI1bxJeRf5aHAXiEY+e0MTrbakn4Yu7spBl/fDBPKNRaaHaeyraZ5HAqECv06HjLOLhYglZVJjvl+NEAJ13Jzd65zvwYcYEBSvv7U09iOHNPnmxBNv7df73RAsO25jlKm/xi3T1kXjK4hxdDGN1n2ZmheexnzUPKgObFPooBqWlvZytFErTv0EJoeEK4NYhceHZvnpZ5zNJAQH2HaZcqB+IGiQaAMaJev550Imukrc6ZWDSqL2kLcpl79SxZ70IeXvWeLEA5DF/bWglJm6bk/d84fcPdcQZSq3tWMYPavw== 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=bvdvpM5dE7xZYJvDkp/k2QjR0vZ4lDiCkOJNMP1oh/k=; b=eu7ys2PHgJhFDpNBHUB8EliOeJuJAZTXdm3PPlnoEae4Fdx3XhT4RuzLVgHwY8r79XncOCw9ow3NasvoqKqjwawulbYQRlD8qsJZhPDT2e/5YG6eBWXYkfrPy5TgjoxopTlBvC+6Seo5UzkA/HfeI4PQUZT1vvyNAxrhu6hRHPg= 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 DB9PR04MB8429.eurprd04.prod.outlook.com (2603:10a6:10:242::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Wed, 1 Feb 2023 06:03:17 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.6043.036; Wed, 1 Feb 2023 06:03:17 +0000 From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, mirela.rabulea@oss.nxp.com, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiahong.bao@nxp.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 00/10] media: imx-jpeg: Add support for 12 bit extended jpeg Date: Wed, 1 Feb 2023 14:02:22 +0800 Message-Id: <cover.1675230665.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0012.apcprd02.prod.outlook.com (2603:1096:4:194::7) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|DB9PR04MB8429:EE_ X-MS-Office365-Filtering-Correlation-Id: f056cf38-5094-49ed-bb66-08db041a0305 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JUWuf8keXgWGfClq1KvqFAG2cSANtCr1Xy12NGRs54IB7Y7g9yrqB+rqcmmaH1kPTHnmwjMlhPVRUYhqGhZaZCzGXVhme3BYcKG++T5lSDfDXl5X50ZZiMjsAPcvlPYXzKPd0UWinGuozc2Kju8ctpwRlUBn78o8i6ZkzpoZ7kao+7ykIt35JhOKjPALk2p1zaHAMPxZHVNpjCiE1du0LaFoJcnP91+5TqSmRI8rlqftQWAXPTFiBogcXymX3BmMndUpbBG/OBQHqCp+0bpFCe8ZycdacZD6rbrTKEzzUIs1y+NeOJ0aceTnSZ3qsWEQatdbEZpNsG7u5ZJpXGOgcfMHlnKVK2XJf6/jwal3SVc+bAr2X0u+XqXzZNNbKVQzGDZXYmKjpzNUmMTaSe4YguPbVKQy/euNi/px85AzGO9GiTr0LaQV80a96v9pMMNmwT0xi+SYTZE0nUMa+xwbPkf/DEy5HTulRAw7pdTtGNNjSfgqljR7JES6392usyxQHr231C7F7KqbuCSUy/TcEmvncTyBvglvy2jNLPpYre3W8maZ/EJZK54H6El9y9d+L5BKjRlG9QQz+npSC3lJDiYiFDHo898zmrsqvEh6VjZ36NgWnbd/A14UZJFDSP6ryUOhM6eUEks8RovieCDT3KqORA9qlgNUgq0F+36BDmT42Uhi3R9aafO5j1omyzoXnQcpfyDWX8lc7uT721WP0A== 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:(13230025)(4636009)(366004)(39860400002)(136003)(346002)(396003)(376002)(451199018)(38100700002)(52116002)(2616005)(38350700002)(36756003)(7416002)(8936002)(86362001)(5660300002)(44832011)(316002)(41300700001)(2906002)(83380400001)(6506007)(6512007)(8676002)(4326008)(186003)(26005)(478600001)(66476007)(66556008)(6666004)(6486002)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WFQSJbOlq3ja8WunFBDEGaHhpXuy3Fgm0HCkMVx/aFFsyEfffu0dY0A1iH4drBqbld9/Dl7yuIyqlH5wwpWbDFWutzyC6yKz2TJwMtHoYZ8pdCwLbhFIcvofh0Eb0BdpRRqYH28km/VONr3L/qXKm4nAGmLA8x6fei/ax2JQbDz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j4exi0PnUsV/DQt4nqz3eWzuOdj6S4AdoJBwS5/eS31HFd3lfc+63wjyFw6fZbq/jk9DvHTIdRRMwPq4kYiJHkq3inMN++Lw6fYN+bb0+F7/2LUTk/DvFgKpD8xIAG4KCJCfyQ3NGg4cBBznCHr7s9xhZ3BtkggaVoS3RiiIItXLrQc3hyEkoHHUPI90n78vC6Ij01LeBEV40FV6n8cV3Yx9uzinFdL5/86TsPadLzLqlGmddmROhzzaCVJOI4/EAC9cPANjtk2P8w6G6fsRgkyc+m7E7J3FrbfgqO1ZtBCelWZjamHjlkXvdXh41SUIgF8hGMDSV5CbMiScHD82m9cdLpZnEek7ohBo++Tj0OdQGinS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f056cf38-5094-49ed-bb66-08db041a0305 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2023 06:03:17.5831 (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: MrYksgRGvA3rXfjEBvAphMBuxuVmUAmFm4ZutanIRZMaRxW/Q5g3PWRiMJfNpxi/w5Q2uGG9PZb7o9RuMM4ncw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8429 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 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-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no |
Message
Ming Qian
Feb. 1, 2023, 6:02 a.m. UTC
the imx8 jpeg codec support ISO/IEC 10918-1 Standard Baseline and Extended Sequential DCT modes. it can support 8-bit and 12-bit per color samples. Currently we only enable the 8-bit jpeg, and we can enable the 12-bit extended jpeg with the new defined 12 bit pixel format. v2 - correct the new 12-bit format naming according to Hans's comments Ming Qian (10): media: Add P012 and P012M video format media: Add Y012 video format media: Add YUYV_12 video format media: Add YUV24_12 video format media: Add BGR24_12 video format media: Add ABGR32_12 video format media: imx-jpeg: Refine the function mxc_jpeg_find_format media: imx-jpeg: Clear slot next desc ptr if config error media: imx-jpeg: Decoder add support for 12bit jpeg media: imx-jpeg: Encoder add support for 12bit jpeg .../media/v4l/pixfmt-packed-yuv.rst | 70 ++++ .../userspace-api/media/v4l/pixfmt-rgb.rst | 44 +++ .../media/v4l/pixfmt-yuv-luma.rst | 11 + .../media/v4l/pixfmt-yuv-planar.rst | 94 +++++ .../media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c | 19 +- .../media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h | 5 +- .../media/platform/nxp/imx-jpeg/mxc-jpeg.c | 326 ++++++++++++++++-- drivers/media/v4l2-core/v4l2-common.c | 6 + drivers/media/v4l2-core/v4l2-ioctl.c | 7 + include/uapi/linux/videodev2.h | 9 + 10 files changed, 565 insertions(+), 26 deletions(-)