From patchwork Mon Oct 10 09:22:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Roumegue X-Patchwork-Id: 17565 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 29CFDBD16B for ; Mon, 10 Oct 2022 09:23:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 943AD62D56; Mon, 10 Oct 2022 11:23:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1665393807; bh=6o2TTDWcRkrV7pkFTo+WevmuouRWmPkN4W48DhnaW9E=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=mBvDBQ2wy3aHHmEpFdixPOcb4Nad9CqLvH5GwWupPgt9ATOVI3il7HxDx+CT2DWGh TQIwBWhGwi9ZffjJ1SImwYgvIkyhgRG5QZUPKJy9/eAwSFlXuc7L/R8gplYG8WxnqG XWkeVdHToNTdAhZLsNm1hO+/zoq3Whjsa8Z1PSp9VTJlAPespqMgMS9aSYsR9CnM5A mxI6BMgeDNAKw4ZeO92rL8w638MvOsbuE5OtZHKuB9dhYUpXPgvFIFCesCP5MtCgGI Qqo80hFzEcjgwMK4gD53kTQWkniEmDujUZGfh8+H0Fw7oyf+0XUgG9WU+zkNY+ptze lVCRjRGntrwyQ== Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80072.outbound.protection.outlook.com [40.107.8.72]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8837E60485 for ; Mon, 10 Oct 2022 11:23:25 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="VSCxS5Vg"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gMKHcYMH57CCB3l5fFzYYEt5twiAyzmriQrHGAcmah7gl1mOcRFmcs+nlbfzGbKtg+V4Pmht1fI8VE88yGfMLxxWg+wV+iCEQ2R97+xS1yHxlSymTiER0uFIIK7TAK0/RHbiROPoivH2PaNn6aKIajY4RbRCnPV1MCtipP4m0kbRKzP9a1wpBGHW8aBD2gyuuCJmbd/gfUnbYNzLBns425QUCcIyyIGlEssvMgEaMRWIPKScZD8LmnVUwsfCYE5rV6TIEJjE6IHti2NzedJlS6GhqtBkr3MClhD3jc4JcmG7asVdHs6IVegDhM1humeGZBCjWzgFDHzImOfIvAeZig== 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=eSka/lygQ4yz9WaZTrLiunzjknY/ShgyEHcLbEiU6PA=; b=PQjDxt2xig7Dmac8I8/DSvvp7eRr89Acid0uBrHp2cclha0tnCCK358ZN08SJKYYajGegFG7p2+c4zJI4QVlai0sRJe15d5W9BtISU/ZLRVY21WKN1CpS+eNTHJREwEkzXqMxrmXyiVqr4i2wL83agDBJa8ShysVDJ0G7CPlvagnMQyRJD8MWE3tKXNl/tXYi73QQMXe8oIrCLy2Wna5Ekq6xkPhzZ2B/+9m3HqWUHrW4fY6ATqgpg7WU30l3vBDv9t9l3Got95kqY3RrpNUWFvcExR1vLNY3kbCFHrDVetwgDo3m4+IhYTg3ZlLJn1jjwKpVGs9bvPGEqBbZbHSrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eSka/lygQ4yz9WaZTrLiunzjknY/ShgyEHcLbEiU6PA=; b=VSCxS5Vgza/oxCsU3kn6y1cNdkBgTqM/ngBwdMF7HAUgauv96SKMBEZxVj8OdFErvgiDGta0hnN4s/I4bFFoVbkQFHLvu2bBZwsNwSnyaA4HriWv9W0uQzU+9HsbSC5M848SYAJux39AmOC6NlLQkeiOUFeORTTgGXtyNqxxylc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) by AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.32; Mon, 10 Oct 2022 09:23:22 +0000 Received: from PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::4f72:a35a:8c60:63f1]) by PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::4f72:a35a:8c60:63f1%6]) with mapi id 15.20.5709.015; Mon, 10 Oct 2022 09:23:22 +0000 To: libcamera-devel@lists.libcamera.org Date: Mon, 10 Oct 2022 11:22:56 +0200 Message-Id: <20221010092256.400870-1-xavier.roumegue@oss.nxp.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: SJ0PR13CA0059.namprd13.prod.outlook.com (2603:10b6:a03:2c2::34) To PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8703:EE_|AS8PR04MB9126:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d42e633-4397-4af1-6079-08daaaa11387 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d6hm6NE8pVoI9d8DkcGZrCBTTKgsb/GD4qCGjgE1fjo/CEy7P5NTL+goeo27hvEzbpNrnzdbUNrcDYLscj3SJjBijN2SSfhxTngX2IYnByCSFzs5M7Enlpry4RuTfc6ks9KPvNKXMpAaV8yHWlv/J0mPSbAgzI1eYXAMEfNRW4EWcFTgGQZdFpPIQAqpEc0Ci1QmiWJJnT+MhHTelG0ImF+FeFyt8bkyjZi2Yi3A37CnycS+Mgt2xhgYVkcaBteRP08bJZH6a64aq47oCB7biuTNWQfwct06KdcngF81D+c0THguxhpPliJxfv0plqDzzvwAFDB/7SDGn0wLPGwvcTx4Y2yaPNvUgQ766ZfqZ0LFQ8x4iwwt2KPD0MQB4I8JfIMChx4qSGrGoLHTpDgvPvzw+9ORHs/2JFPZr/3wMsCv1tlRxHEUWklcujL+ohi3OYwax+9xrCGQd+ytxkLrlpBw3Q26s34s1hqRM6gLHYf0LnyubEEku8r3Wq9MuLLuw4VcKHQcB1uwo2v3e8WfNfi3bioybfbqMAOWdp+Yh+fFrlKp/ZdN6dqvM+hQmYvCAkhasucNg6ffbsY5RjiS0ZJncwtw0yoDoVSY60DXlEEjHe5D2kbOjfjVq0AluJMblSwfio53zQviVglu8BBHY7kQqxeFJ3EyR4P/biZ4EZwCm2ZgODJgLNFoyWLeLiR+3RYW0mPv9cMePJL6w/xkwpD5yr90eF6V/n+HGwHwnFKfT+fsZke+TTPQJkBhygxO X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8703.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(366004)(346002)(396003)(39860400002)(376002)(451199015)(66476007)(6916009)(19627235002)(316002)(66946007)(4326008)(8676002)(66556008)(6666004)(38100700002)(26005)(38350700002)(478600001)(41300700001)(6506007)(6512007)(5660300002)(86362001)(6486002)(2906002)(8936002)(83380400001)(52116002)(1076003)(2616005)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tL65bKO3Oz5dUH7OUANtz28VcQiaNoezZ4ao9xuVte8wRcAxleMPbaQ7+Vi3ha1T0KZw86secYsCOhNUTkgczICv+FZdta/42LdJSPAlbCLcULk4ywqqYd/oIRr1qXb0J73THZMa3kzWky/YNzSz2jlgfgMuq8rCsHUVRFpP66F3bZDWOn5oG57biN4NyP4wAXjewRoDMlJTBaqhEqqPbbFDlvukuLQis6pGNmLr3J1NRauhmt0ZuGSsbgcAm4BbJpvZWzzihzKnnDpXfioU3VfK3lK+dFqo4YMqpqxzNaeTDOWUspDPKZB6idp8K5gJdVEG07YcLzzc1nvkqye0eYce0MQsw96K70ZSfkmc5IFf1TgS+3k2ozWFZx8u/pf2Ke9975AEBDtgqGX0Yk125jNsUq7F4n2hSgEkvgHF4LZhrBDsriJFwzUIADjaATJZd5Ra3Fd/mqtqy3Yr0pBGOSBROJkGsmzxe79ncc5uncZCozrEl6Z6S3/kdHKV1q1OGST7jsSOlknIZZ8IqTOlekYTh9TLFUBxkoSZLuQ/rDmG52YWau0+k5XlMjrcRUFyrFN4oBS9tW4spw1v50e0dIIwb2KMSHySDH+4O1mK+l9UK7RgXRmNvq/6Cq/1oZohqatYljIqlufhMIfXxZirBxAFQdwXBQqsmAZKyKWknuTWC3sp+I/eQUd8ucCKJg16gKtqmns3hN7GhRMQJRflHe3FZpY/YbGK/8lJjT2GI4FbEhrzRrgTTlDiCxnns0nM7nfR+R6jM3G6xDyiv+ZDJYcXOBADcul8n+1NcXrWM6qggogc66KuQBttIBQqYUcLg1RFp+3cBAarrB0oYfv1io6/zicjXNlL3WV1+IACl75XL4sTRv22DJ0v7CR4Ar4LIPVDWFt++zehXAc3QER0Kd/RzFt22teGCTdBN0Pce9geOVP+2lkGsctFulOXbtfdz0nU1VT/JtZ9jlhCg5ylKIiLJwBkw0Q8UYeVDU+mKC4Klt7dNrH6N+fphy8HWsbTvQ/gBwQUZFuCbgTVVQlclEQgPK4elajN4CpZMPm4+bcsciN8yTmQvVo36bB63S6s1mcJTpH/ZuojPvS0Gttf6eAMmALaNbjpYKoBsTwvUurIazjoeiXB4JZDzjZekWKGOrjDxCc9UDuKYm/P7dI2uBjD/es2hAFWnbkEApj9sBbnmx1zX/xUyLqbotzAStflpILBcbquoMpuptMOI5qx+dDl/Y6Cvu5rDs6PGgTdOH80GUIsdZWvlKsB7eKJ+jWxapKjJM+ENH8m/lBQr6V6NBWfIenHFPjn/rkPj5Qc/kGCizABhJPX2Du0pajci9XXQRrW8OTTbsvXZn9itYP6IV6q2ibIScmpOfadg6vTpEIs5rlqkflMY9Yk9CtnPff9C+2Xm/6fWQ/bvTU3oCoLa1isXDPl9qn69rWEhQ+1vBr/69xcpSnwnMcZBmzOKqmh9YFnbdbtrTn4eLPJ+CQKYjQTEh/HbKF02I75XKwsCLOOpf2Z00JRtnHm95RksAm7uyyE9PNICcdxSa/L06LStVr0XbZWVTn9s2x5Sv4OP5DFSrPR59Bt8tHpljJ/mQs9 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d42e633-4397-4af1-6079-08daaaa11387 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8703.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2022 09:23:22.5615 (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: LIr0z7xUMbVfibczUlrbCvsDEPV4U636Lkk4sTFkq4oW/ZcNby/9SAhpYAeYJZvMJ0AFAfSjNAEWeptVddQ4bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9126 Subject: [libcamera-devel] [PATCH] libcamera: v4l2_subdevice: Add JPEG_1X8 and BGR888_1X24 mbus formats to formatInfoMap X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Xavier Roumegue \(OSS\) via libcamera-devel" From: Xavier Roumegue Reply-To: "Xavier Roumegue \(OSS\)" Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Xavier Roumegue The warnings "Unknown subdev format 0x4001, defaulting to RGB encoding" and "Unknown subdev format 0x1013, defaulting to RGB encoding" are thrown while using simple pipeline handler with NXP ISI hardware. The JPEG_1X8 and BGR888_1X24 media bus formats, supported by the ISI driver, are missing in the V4L2SubdeviceFormatInfo structure storing the correspondence between a media bus format and a colour encoding. So populate the structure with the missing media bus formats. Signed-off-by: Xavier Roumegue --- src/libcamera/v4l2_subdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp index 9ef95963..f34eea24 100644 --- a/src/libcamera/v4l2_subdevice.cpp +++ b/src/libcamera/v4l2_subdevice.cpp @@ -68,6 +68,7 @@ const std::map formatInfoMap = { { MEDIA_BUS_FMT_RGB565_2X8_LE, { 16, "RGB565_2X8_LE", PixelFormatInfo::ColourEncodingRGB } }, { MEDIA_BUS_FMT_RGB666_1X18, { 18, "RGB666_1X18", PixelFormatInfo::ColourEncodingRGB } }, { MEDIA_BUS_FMT_RGB888_1X24, { 24, "RGB888_1X24", PixelFormatInfo::ColourEncodingRGB } }, + { MEDIA_BUS_FMT_BGR888_1X24, { 24, "BGR888_1X24", PixelFormatInfo::ColourEncodingRGB } }, { MEDIA_BUS_FMT_RGB888_2X12_BE, { 24, "RGB888_2X12_BE", PixelFormatInfo::ColourEncodingRGB } }, { MEDIA_BUS_FMT_RGB888_2X12_LE, { 24, "RGB888_2X12_LE", PixelFormatInfo::ColourEncodingRGB } }, { MEDIA_BUS_FMT_ARGB8888_1X32, { 32, "ARGB8888_1X32", PixelFormatInfo::ColourEncodingRGB } }, @@ -133,6 +134,7 @@ const std::map formatInfoMap = { { MEDIA_BUS_FMT_SRGGB12_1X12, { 12, "SRGGB12_1X12", PixelFormatInfo::ColourEncodingRAW } }, /* \todo Clarify colour encoding for HSV formats */ { MEDIA_BUS_FMT_AHSV8888_1X32, { 32, "AHSV8888_1X32", PixelFormatInfo::ColourEncodingRGB } }, + { MEDIA_BUS_FMT_JPEG_1X8, { 8, "JPEG_1X8", PixelFormatInfo::ColourEncodingRGB } }, }; } /* namespace */