From patchwork Thu Sep 8 18:48:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Roumegue X-Patchwork-Id: 17354 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 5F3F5C327D for ; Thu, 8 Sep 2022 18:49:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 02BEC620F6; Thu, 8 Sep 2022 20:49:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1662662970; bh=rmLgdn4iUD4c+bmGTBHSxUb9oFz7MeEW9myZdWo6Ws8=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=fPpYRZEfs/stYRMneD4ty9o3s5gEBcpSD6VVC9BVrEcArA2qfC6lnO+n5/f28YNWA dngDwoOpwsZH0Ga+4kmivRPor7ccSg82jNLSQLQ5vqaPI2dEKc2c3XhHu25MpY04hd 8MQSlfzGKLQuUJXAJTyE1a1EUa7yMf7Rje29AWSrb3WlShTQwlFGWwWtHHSuETOsaQ 3dyn1B/b9VNJaxT1ojIn4vFOtD247Qkjg/mnsrLtClkfLFJ1qzfzr2VP1PZfJNeVMV 5NnH54f56QIB6lrYa1xzlqVBpqtTXOHia2wSMvGc4Wu6SWf0a7guBf4Zbf7LqF7rcH hT4vtv/FQQy8Q== Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60053.outbound.protection.outlook.com [40.107.6.53]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 29257620CA for ; Thu, 8 Sep 2022 20:49:23 +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="QHEOZEGw"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gY8Wki2a2Dl2hVDOjK6ixcyQeZmj7E4cn+iWw0v6A7IhmxvoKodbbF6vLjeePMTJ1eh9/dicHYLiu1Wfj019eGHQ3cLAQYkQt8Abe3srXEt+ywnWDrGameeaSx9XaX6suO82J3t+pcL8zJs8tBEEjXsVh0Ade9SU0U8JpGTjcPUNEN+zaL0Tok+YaAam98QtxbM2Sh0p/zKqA6/LSO4s2PgprF2MWHga1MNVBsmu0xEgkoa0qPpb7aUOqYluGkVk0k2k0tcfPHBGoFa0Y4bjTGq0CuhrnYuZiwdjiC/1WBVpdbOZPJNmur5efopU7gB1tBFovL53nvaZ7oV2WBz2GQ== 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=ZJbLeDB8vBcQlF+9hWh7JOPM/7UiPOm7k+M6Q73hYb4=; b=m1SunRiNRTMh6ye53MLTYTCWyZWxDr/CaSTqmUnIGumWbvNXD5BOwAlOh/J5R86W39TENouGe3QjGV+ZeDyuQHnDUZXoML5v89aR10z4lsZsScVXJeBebaHM+2fMnfFIWjod2ndF0BFfvkl3nypjjofK/BsOjIT5nWijVXtKujkoQd3Re/ikEcy9OZEOsK69h1KkuikZ4W4oRPPtrNn89oIEu4w0jqdLqbAjS+l2mdNCgKC4KLkl+fI/nzgrlwGa/2oezwF6nZx2NgTE5zzNdNo3gXUOUdnJEcjGu0t0B8A6wPiLgpfM2/yARYChbr7QqY2AUOQuwCWCiJEojuGYRQ== 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=ZJbLeDB8vBcQlF+9hWh7JOPM/7UiPOm7k+M6Q73hYb4=; b=QHEOZEGwEILvxlLkDMRsUDfhWo3Ly2MJa9ygj1RJ7tDTvLU8XaEgjZjOoMTlTxR09ijvo+Fcx+bFY3wAcxopGtMAaRg0dZ2o/sSopDtO47l25F1yQhhz27g4+4wthQmB2MLQxiMow/54HPoymCW0CSG+W+k+zfxE/RtPepR8NsA= 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 AS8PR04MB8852.eurprd04.prod.outlook.com (2603:10a6:20b:42f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.19; Thu, 8 Sep 2022 18:49:21 +0000 Received: from PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::485:adba:7081:715a]) by PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::485:adba:7081:715a%3]) with mapi id 15.20.5612.019; Thu, 8 Sep 2022 18:49:22 +0000 To: libcamera-devel@lists.libcamera.org Date: Thu, 8 Sep 2022 20:48:48 +0200 Message-Id: <20220908184850.1874303-13-xavier.roumegue@oss.nxp.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220908184850.1874303-1-xavier.roumegue@oss.nxp.com> References: <20220908184850.1874303-1-xavier.roumegue@oss.nxp.com> X-ClientProxiedBy: PR3P250CA0001.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:57::6) 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_|AS8PR04MB8852:EE_ X-MS-Office365-Filtering-Correlation-Id: ad736311-d593-4b95-ea27-08da91cad7e8 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: KVJAqqRqulWX5sBUrPiRsvUvakjbIHz7NYQza/ithqt5wlQp79PEmQw/IVf863M+aKavzs8IfFii/LEf66vLWwiDgbIdc5wCfQX6B+J9VSbjRgdjqKlFQpnNdPDBs8G4FaBR01c5PKTb5MVd/eSV5Ugy3HpzNCVBQ+CZaFDEQXwubBchA3KqvCuvFW/19lsJf+cPK8HvyNkAlDXx12wrZcS29WdZIgirBvSdDNrHQ8tTeN51i19BtUg+LBbjb1xyXiEw4j491LUy1qXbfgzcTXX6QOW4shPS99EfLpcEtQy8LOUBLud/SkrQC9EAJaWo22aAiXK5l0hEiyz+ukg4Pt7jOAw6rphSCq+U/gWjLaqCV/yOyDD6OndSZcHhIYfTbj+ySGG14+MbqT1A7x0d6zOcxwSmk+3uCPfIf3Ncg4kkRCXDFChPGZIwNzeFbkc00By4uxwLGI/LIe0isrGXg//vQ/ozAYDqnbn4v/qGrkkEHJ3SPfIx8c851yc7dQlNyzZviGMZ5He9Clvyl+IYBPIcTzunUE74hc1OeRtFiY9NSclJFdQTCoCV/5JZSe/J/0p/dK7NQoj+lDlywSKuOT0D5W5bnl1zrwpFF3C8Pl7UAupt6Ggc27etCyy1kwq8WBqJVOcXNtEM4IOHZj6x5EXVwSKy39bW2DzEg33YaHS+L2fqCFzRfxTVb1XP8GOVTzho/JVdKR18UZH1LL4NTw== 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:(13230016)(4636009)(39860400002)(346002)(376002)(396003)(136003)(366004)(38100700002)(66556008)(66476007)(66946007)(8936002)(44832011)(5660300002)(4326008)(8676002)(6916009)(316002)(41300700001)(186003)(1076003)(2616005)(2906002)(478600001)(6666004)(86362001)(6512007)(52116002)(6506007)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nMayd8jABfQyWFLPd5atZhC4E7wVn/aBeEkEVWHrN8/Hj4ambuVbXmmHRRvclFk/pvkkh/oX3yhtAb4QTscGgbegbXnUQDdvhGR7IOSKsfvXdRtHCMocONqPKNBbCoUE3KwWCA+jI4eSt06+ZZ7Voj3sby/srhAC3UTOC/KYAgshRXr0PcU/nKqM5WQuwpZtgR1/jBXpxfyzEO7BxtmzY4utgdW9ICGMJMksgO+QMgoNCLLDN1M1seZ4zAJdpofQvhewj9kVP5iG9E683kiLT3tjLih0XTYasXPq+N1D1SqFxp9T3GHmQIAZIcmi3sO2bU3YqAPSVHf3PoLxDo3z9SDB+Qh4Ckpdvnf/77HKDsK6NDmWJzHBIaigZ7FxIb0ojW4BMHjpm0kUHj34tyNUAP+eqQ8/dqflRTZB7MR+oWBvZfB8iamgQT4Ra3KoZjEUQxnVipXQeYWOXtTtoAPBIgO5gxAAkhPJ8GuuZI/XZBwREwFHuSBNfjmCGxlgPGakL1sRf11QLI/HF8chdssfjsPI33AVqHQrPcneIO91WLkDBNMLhqvJ3d+iVX9rLDJehwVIGzXwzr70fkFFI8hdgrWZDgC+0x5d4Oxu9xeitT1mLQxuhXbGTiL2yBLjMc6qmjcLv8R5fugmRNhkgyoAUHTkFMMohUmYwnusCGCpeXgExggwa3VFvEJOEn4pwm2TK+PG12aNRzEsBiflV9lF+Y5/6nE0z/4kWy++hhNyq2rOoY/ZEa1VYiYh6gkk9FetYeoGkxGCGCYOnsrZjZ69HozEIjlirlHUtCYqfqfdXorK+WXzERIU8e37C69Tod0okohc1uAcOXjIjBW39nUByyQW/vLkcTbjFTF47hwBxDDyL0ldenc1yrLxd+Uusi/IaP+T0RYUS/dVplND+sdY5SV8fGy1vQKOVKZ/8AZ8/Z3bDqnNogMP5ocMIrlUsPFj1DlQlrgJOglOeyklkD4M2sIy/zJqHfs/Z6iD/Gfra2pDD00Fd3K/WxzUAOvUpWCoB07ZMjkolY0c3xYbccCQRV/LWI18KZItr+iZ4Iy0Cf4rVX71coZLSSAJ38zuJt5uNJWVcmlMpT6MPtFuyj4hBx1KQUbCgMM08Ka/gGfdHb9mWG+aNoCWW6J5mX4O+/SD05Os+vylbUVDW5lsmi2Oa6LCAKgxW+/NchzmJxvlBeD00755h9yAwvxYJ4vYijV2axPEAgzG8ZHL62hE75JeLd49xqMfht1Mn77oMf8SDMqVpUn3Kx+OX50JdXsNhvbxXR4fmyLxHyjvjTkHap1Dg5bG5chfp2Nx0bMkW9oAFEin8H74mb7DjT2axioSGz6VqNrehJuwaLzboAQYg2dAQF5uAdVobYD/W2CRrRsnoOsJrqE+J1oPgMt5enkL3tNtcT6iqA0njkKBrSoFhJ3vF9spKWywXwO6Kt37OCCGHV3ggxxjHfWsz8h94eJ0+FroGqztpymEmRbJsVvqo95CHI4aTBDgg90KZYz3MJjxFwM3K7cV/TH0vC8jz8MCSUZBudnkQANQjyp4BeTQ7wr8X8hGfoE4XEJr8kETenA6E59i9o3ucmH4Ad7mo57m5UP4x/vZsiQq9EFfzhx1pN4YkOyC3WVNIr+yWhH9I+cwBLgED9744ssgNIWi9OYL/kCYRUl433LuaU3k7cBS7ks86g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad736311-d593-4b95-ea27-08da91cad7e8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8703.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2022 18:49:21.9382 (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: TC/QbVYT+RmV6gzCKyOEtUN05BV5/JTPI8bh4IiX0TZo3X5vJ/3ZA+hpVPrs69j537aGBVaPU13Kgs9DoxXozA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8852 Subject: [libcamera-devel] [PATCH 12/14] libcamera: pipeline: simple: Load a converter configuration file (if any) 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 via libcamera-devel From: Xavier Roumegue Reply-To: Xavier Roumegue Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Signed-off-by: Xavier Roumegue --- src/libcamera/pipeline/simple/simple.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index a5970234..31d10c56 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -498,6 +498,14 @@ int SimpleCameraData::init() << "Failed to create converter, disabling format conversion"; converter_.reset(); } else { + char const *configFromEnv = utils::secure_getenv("LIBCAMERA_SIMPLE_CONVERTER_FILE"); + + if (configFromEnv && *configFromEnv != '\0') { + LOG(SimplePipeline, Debug) + << "Getting simple converter filename as " << std::string(configFromEnv); + converter_->loadConfiguration(std::string(configFromEnv)); + } + converter_->inputBufferReady.connect(this, &SimpleCameraData::converterInputDone); converter_->outputBufferReady.connect(this, &SimpleCameraData::converterOutputDone); }