From patchwork Thu Sep 8 18:48:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Roumegue X-Patchwork-Id: 17347 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 361EBC327E for ; Thu, 8 Sep 2022 18:49:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 87A56620B5; Thu, 8 Sep 2022 20:49:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1662662964; bh=FB3nfyXG1YQcIC5wBNUpIeHSm6djyUS5KTbtuPULw1k=; 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=o4nq0t0aetVOct4Gfsj8yb5DceXGlfzNbaV9EfYmRF9o9aHU7B3s13CXdBAxD81MK GI2qy+dOiFp4wE4WYN25kKMgjMZKBOU5NtP+jRieSfzFAmL6rVhi3dwcsFPNlFCPa2 /nhKhlPanHQEJLdVw7YxSKr7ikjV5hCrs4qu3h0VwZqVwvqYJh8ceTIXgZyCtcjhNR q5zHdZEsvzSTA73+gHLArne7mZAHFEjxfJYf34IFFbOmyAPS1/bZbVz3QAcnv2SdGu C+v/QQ/iL8M/Rcf4nMcV5s4tmdqLbFYdcrUKfue4+FAsSZLcpwkwZqu6aVvCRmZ1/O KKmGPt+nUYmow== Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6DB26620AE for ; Thu, 8 Sep 2022 20:49:20 +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="YodUHMCo"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OnwrPdqvVlCO1mRwwztKLD1Do8GT+ZrYH+IeRn1FcIjz37KeoNOWCGKq1ekjqdCGkF17QATeLIUKlU4OnHck8eFLzgwP5UsRNfwldXVeqalZT1NRLMChhJsjpJ9m6jOdCYorHC2HjdVCjmimTDs69XiiX1MiN6/B6LEH6Cpdsq7Fy5dmRbgi9O4bm3nIQoP9k1eIeXsWjQGmzA155BYfST8a5irfqSaJhWRnUbdYAvhh8JIBhIHp28upJ9eoQNVzrwsPxuLT5E5uHBOzdiv9caVIzLJ3jNz4/1rhpLR3y6v3DXPtK4hOnmLn53kS7t0zhggOu5LypO+7rysHbVSA/Q== 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=8jKM5ZP5uwYAwjwiCv1bawvH7kctQWX4l2NUDOkGw3M=; b=S0Lm8rniBRBUbLoH5KjZtxjG0/jNWBkLWq4GGT0fioz6crVWg3bv0a37qV80hdmPAUL6M2N92h+fsw528nBuAd2AyEgBnM8yosSpaNwY9Il55G5yNu7vpjeHaiP7tZuQElF3iIbplUnkDo+PLrWMxwN50Z0Xa2bDPPGyZRtrbdMp0pCSDCurB8DDHf8jDL6Q3UFpgU/ttBonFla7d3Qf4L2/unjUVVtauMAqqzkALknuzNEose7hoqsiK+Ndeyf+KyM6I8w/ZEMwJbouULSsR+qJybjJGGhq3iIoSnHnaOS0FXcUpbqiVkXPzaIkvojaAhfY0UhXbl2j4yLqVvEcAg== 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=8jKM5ZP5uwYAwjwiCv1bawvH7kctQWX4l2NUDOkGw3M=; b=YodUHMCo2pH1IEBVi8F1+rN1jI2DXJIYMAqM/j5Fg2AwJgU2F9SR6yaWFIoQ9vozkk5Inc6OVY+pzSFqbvh6DM+GUUUWtZoKdgwJD6UBY9b+nBdPFEb7sDKqGlfARFbWTDfd5swlAXa3rd8vp1DJAcXtrDr7XWQTlTyaLXa1w+c= 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:19 +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:19 +0000 To: libcamera-devel@lists.libcamera.org Date: Thu, 8 Sep 2022 20:48:41 +0200 Message-Id: <20220908184850.1874303-6-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: 3cdfa62f-789b-46f3-3cb1-08da91cad623 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: j2wXAQGaQGhbivu0DlOLfEPybkD7bszmixXS1//e+ZPBZ3yp5+iD9l1viZKUXTJK7cPYOr1z1bX1Qc/VOfbmBKN5zZ1wau2xF3BIA67WO4G5PlcZr86RditWGre/hPBPNlFk5SCJJFZ7BnX20UezYEowJheF4cy5gtmDm0Iu1vAmTGUcIjqBmYqhxZwhztcl4kRWBGbySZQNGw7a7HwWshjT6/0RWZgBbGKo+j1Vh1zTAfdx/85y0VDSHhvrqi/2IhRcnMVelFCKv/ciOzX2aeHcS9wUzQq6FDPDIjNflroGwxEG00E/MORkHDIYNAY/EKSYfm6B2udGpOG/fA5iIMA2P808ffCWACpa8gbQiCUy2Ct60ECuYtkIuoJD/nVFjUNvO3gJwfc06qF1G40yGLW1f7kNTEWhHxic88LI5obH3BYXT+2/FSC6kGvP8HIUjF59878y/ZT1tIJ+9lEolwH0U9EoxSn+Uc7axZFuOhmLMknAHytyofVrYTHKTwri2LOEjtmCiM9P+RyY/cTVwPucEW+BXaIZbsW6npAeD2Y8OrA7+EunJM+xV8LGeZDOEScfwJDMtJ/1eZEiTZPlXXME5PvdUn57r0+dw51ygBXwHaj/S8Z8zG++oBw1V+nrtsXCxHjSo2qNey/O8Zp0ChS+e7dcbD6PtNbBglUUkibVBChuikT//wQquLAaLHWoio17OO+d7g1Xx9/DXJCzYw== 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)(4744005)(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: a/ubE7UXrzOdX/67/7zQ/xnnw+onlaijSEuYCG0FM/DGgSdD73TcCxoPVdkLkBKkBJSGXo5MdPE7+kvenvVo68d/o723BZdC2N/UxmYl9WCVd1W0uOXHrseIXcdhmf+Z+0DXpp09TeYTsVjqhp+NQrrQTkvbw1k+bB6lS7DxfAd4pfKrBFPG0cY8H5Hicqpk3Eg3DJn6p9WBIvWth6yD91p4T17Rpb8C/4ZXjHq6ghzMFwBQGhZvb95NwabtsDwLxwGdbicIGsgvNrtOtjn9A6rCB6RJIS2eiAZlh5oX9PoiQn5Nxlveizb1IT9Gn8/fWXHxWfxE/CDIbAiHDunQ33DDsZquMOeWwo5Cg9DKvN3FXl5A8eX7C/z2EiZFWNj4SUYQkkO/11y0k2wSEnr+VSM5Ga1erCktyKbb+wjm+Erc9Q65xFdSLUo63DMJkcRBGDsNXkZ0rslCoYyEFtEu8IKiUmKOcDEvhcL5y993nutxua48TeZcDK2GOUl1jFoq9/NUiVLqRKNtTM/NgM5aSzVIkHJL/TNcMsbZhxE2N2eFA1J7s0gXnqj+wbcCWRUTNtffGmJkY/iF1S5Y1HdBn/DfpaAUFcAWC1TcSmNLyi1yeKVKGchvthla3PuOH3ZhWZzhmkLO7RHfEJlL7EK/A0LuuwlH72XLlItEpRV0lZTqrN1+cXbl/o8OuuUgQCODycrLMU6mNNef27s1Vi+nPtpAll3fpj9Yo7hLYdl6fL0wKnuWm9Intnpno3TNYvhl11azV2r7HKpGcfwyzXkutz8os8AXWiK2jFhJPRo07oW0szRa/QOkJmlOF/ZnlARKH67/o3IkpCzCqLQmyiA+VufHhj9wIMdAAWeZAi5nlssgqY5ZC6dyXVIbtsK+SAqiaeyiLTGVHDukY6Gcm8KDN8oSdnQI1HGYROKuFL4rMvACWvLuPs6aRMrMwqiSaSJ70dYv7Qr4mbux9muijVSB3hSNOjoSy9EXxZImBPEV2NKq/NrQ3/wcUPxcAEardioVRbxtViWL4gBWC94mhV9tixJQPDBRSTZwHO4m1ya+rSWcw1jC77DzI+ENugxSae4TI2HoZ6p1xRKRWESO8f/ca9JypVoERchLl0WoY3ys7RFgsW/YnQu5nJSvrvlpilmuD5X0mQ2GK8/dCcpvPA6Y5vxvH+y7dH9D0Y67qNVrPuQBTXH8r0UM+ziPpP1cV+OOWUsJLoc8cw0Za6Uzfr716rIJgrJBzDNtwTmUrtWBel6zfXDbWRlrL1BI6TXkt/QDziopUZT4LSFVVUA70PFI2yNDfHGV/rkT937mPDUH5t0WzbvzGstN0qiZdMCPpscx/+eqmrRd76BWgwjKIahSRXeVLJ+aG8aCi+n0WW3gI5VNbahnVADUI6T2FPSpSr3WPEnOIjNftrCpFRztJaiP3d7r6VnFAY7t1UWURLqgCkui+ot64blsbtK0PhrVNpkrzzMvtxefsr1Ti3YljfyMmnoHdic7MnuSTOx386lCNnrHLnlD2PFnTqVCeb2okI5D/co6mK6X2KZRirAMheQ9+o/asXiHBEAfcmhFKrRFHMjst7HGQWesBpuzN8IBn0DeobNrRrComk4LOgGH3iR3BEv5/w7pfRsimnqaD0oDBvNIZ4pZYcNpSO9WNa9SQKao9CdQofn/G3uzmeEThNCNWA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cdfa62f-789b-46f3-3cb1-08da91cad623 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:19.1213 (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: zFSGSUckNnwuJf2QiOJFj41THb94spl4Te0+u5AQpXfTCfE0jWNkwaaSXdsASokc3xwPV/dXIaMLbpn85ofcTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8852 Subject: [libcamera-devel] [PATCH 05/14] libcamera: converter: Add queueBuffer() helper 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 --- include/libcamera/internal/converter.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/libcamera/internal/converter.h b/include/libcamera/internal/converter.h index e2237c57..ea1deab0 100644 --- a/include/libcamera/internal/converter.h +++ b/include/libcamera/internal/converter.h @@ -55,6 +55,12 @@ public: virtual int queueBuffers(FrameBuffer *input, const std::map &outputs) = 0; + int queueBuffer(FrameBuffer *input, FrameBuffer *output) + { + std::map _output = { { 0, output } }; + return queueBuffers(input, _output); + } + std::string deviceNode_; Signal inputBufferReady; Signal outputBufferReady;