From patchwork Mon Mar 8 07:48:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11504 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 5909ABD80C for ; Mon, 8 Mar 2021 07:48:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A90F8602E5; Mon, 8 Mar 2021 08:48:39 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Q0QxwHzR"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id ED67660106 for ; Mon, 8 Mar 2021 08:48:37 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 021DD8A3; Mon, 8 Mar 2021 08:48:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1615189717; bh=V2BcryI2PIXIWQ6PjSljvm21oxChyom19OpSFwfPaJQ=; h=From:To:Cc:Subject:Date:From; b=Q0QxwHzRJbc5awkwSZxIWNRE6FlnFnRdRSIDBy+tkoplz0I8RTrRaUCTr05hzs+Y5 WkTAaZlpmau1TSAo0BlyaXSTWCjg9UVai0MHmjmcSGM5qSETV8nPxNeMP0e2ouEvo6 vZzIRD0Bt4L4rxqo3ZFtPmeibdfIX/Z/lcwZSQ8A= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 8 Mar 2021 16:48:25 +0900 Message-Id: <20210308074828.13228-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] Expand mojom-based code generator 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch series expands the mojom-based code generator to support custom parameters to init(), and makes the first output parameter directly return if it's int32. Also show a demo of this will work using the raspberrypi pipeline handler. Paul Elder (3): utils: ipc: Support custom parameters to init() utils: ipc, raspberrypi: Make first output parameter direct return if int32 DEMO: raspberrypi: Use custom parameters to init() include/libcamera/ipa/raspberrypi.mojom | 5 +- src/ipa/raspberrypi/raspberrypi.cpp | 44 +++++++------- .../pipeline/raspberrypi/raspberrypi.cpp | 10 ++-- .../module_ipa_proxy.cpp.tmpl | 22 +++++-- .../module_ipa_proxy_worker.cpp.tmpl | 8 +-- .../libcamera_templates/proxy_functions.tmpl | 17 +----- .../generators/mojom_libcamera_generator.py | 57 ++++++++++--------- 7 files changed, 85 insertions(+), 78 deletions(-)