From patchwork Wed Jun 5 22:18:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1366 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2CE2B63B83 for ; Thu, 6 Jun 2019 00:18:32 +0200 (CEST) Received: from localhost.localdomain (unknown [96.44.9.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 77BC7566; Thu, 6 Jun 2019 00:18:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559773111; bh=4T0kdIeH0qOe7OtK4s+I90fvGoIWqoGB4QAeW8UnRWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ukjEm1cO+p6TtZoKsT2y/E2kZYA1zhCmzs2fCIUx461naqI8U0Ie2GgGO4fSd14ZN coskJKBb3+o2iGtvIASIPyCtJ1Bszb2AfllV7QHRzkWpnckD+5yxmdQ0++MUukATWy qQk1rpCalWYE0SlTs2S7psOYvxKMPvrNRN7NqYrw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 5 Jun 2019 18:18:12 -0400 Message-Id: <20190605221817.966-6-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190605221817.966-1-paul.elder@ideasonboard.com> References: <20190605221817.966-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 05/10] libcamera: ipa_module_info: add field for isolation X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 22:18:32 -0000 Add a field to IPAModuleInfo that determines whether or not the IPA module needs to be isolated in a separated process. Also increment the IPA_MODULE_API_VERSION, due to the change to struct IPAModuleInfo. Update the dummy IPA and IPA test to conform to the new struct layout. Signed-off-by: Paul Elder --- include/libcamera/ipa/ipa_module_info.h | 3 ++- src/ipa/ipa_dummy.cpp | 1 + test/ipa/ipa_test.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/libcamera/ipa/ipa_module_info.h b/include/libcamera/ipa/ipa_module_info.h index 585f753..cb112e4 100644 --- a/include/libcamera/ipa/ipa_module_info.h +++ b/include/libcamera/ipa/ipa_module_info.h @@ -9,7 +9,7 @@ #include -#define IPA_MODULE_API_VERSION 1 +#define IPA_MODULE_API_VERSION 2 namespace libcamera { @@ -18,6 +18,7 @@ struct IPAModuleInfo { uint32_t pipelineVersion; char pipelineName[256]; char name[256]; + int isolate; } __attribute__((packed)); extern "C" { diff --git a/src/ipa/ipa_dummy.cpp b/src/ipa/ipa_dummy.cpp index ee7a3a8..a8ff88c 100644 --- a/src/ipa/ipa_dummy.cpp +++ b/src/ipa/ipa_dummy.cpp @@ -34,6 +34,7 @@ const struct IPAModuleInfo ipaModuleInfo = { 0, "PipelineHandlerVimc", "Dummy IPA for Vimc", + 0, }; IPAInterface *ipaCreate() diff --git a/test/ipa/ipa_test.cpp b/test/ipa/ipa_test.cpp index bbef069..2682bae 100644 --- a/test/ipa/ipa_test.cpp +++ b/test/ipa/ipa_test.cpp @@ -59,6 +59,7 @@ protected: 0, "PipelineHandlerVimc", "Dummy IPA for Vimc", + 0, }; count += runTest("src/ipa/ipa_dummy.so", testInfo);