| Message ID | 20200326160819.4088361-1-niklas.soderlund@ragnatech.se |
|---|---|
| Headers | show
Return-Path: <niklas.soderlund@ragnatech.se> Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F081C60414 for <libcamera-devel@lists.libcamera.org>; Thu, 26 Mar 2020 17:08:28 +0100 (CET) X-Halon-ID: fea325b9-6f7b-11ea-89d0-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id fea325b9-6f7b-11ea-89d0-0050569116f7; Thu, 26 Mar 2020 17:08:19 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se> To: libcamera-devel@lists.libcamera.org Date: Thu, 26 Mar 2020 17:08:12 +0100 Message-Id: <20200326160819.4088361-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [libcamera-devel] [RFCv2 0/7] libcamera: ipa_manager: Proxy open-source IPAs to a thread X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> X-List-Received-Date: Thu, 26 Mar 2020 16:08:29 -0000 |
| Series |
|
| Related |
show
|
Hello, This is an RFC that tries to solve some issues discovered by testing Laurent's patch (7/7 in this series). The main change is to extend the IPAInterface with a start() and stop() method that can deal with things as starting threads or allocating resources needed by the IPA in tandem with the camera start and stop. The series is a mix of patches to the rkisp1 pipeline handler solving issues uncovered by running the IPA in a separate thread, adding the IPA start() and stop() methods and integrating them with Laurent's work to run open-source IPAs in a thread. Laurent Pinchart (1): libcamera: ipa_manager: Proxy open-source IPAs to a thread Niklas Söderlund (6): ipa: Add start() and stop() operations libcamera: pipeline: rkisp1: Queue parameters even if they are not ready libcamera: pipeline: rkisp1: Initialize IPA libcamera: pipeline: rkisp1: Do not try to process cancelled frames libcamera: pipeline: rkisp1: Call IPA start() and stop() libcamera: pipeline: vimc: Call IPA start() and stop() include/ipa/ipa_interface.h | 4 + include/ipa/ipa_vimc.h | 2 + src/ipa/libipa/ipa_interface_wrapper.cpp | 16 +++ src/ipa/libipa/ipa_interface_wrapper.h | 2 + src/ipa/rkisp1/rkisp1.cpp | 2 + src/ipa/vimc/vimc.cpp | 20 +++ src/libcamera/include/ipa_context_wrapper.h | 2 + src/libcamera/ipa_context_wrapper.cpp | 26 ++++ src/libcamera/ipa_manager.cpp | 48 +++---- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 53 ++++++- src/libcamera/pipeline/vimc/vimc.cpp | 8 ++ src/libcamera/proxy/ipa_proxy_linux.cpp | 2 + src/libcamera/proxy/ipa_proxy_thread.cpp | 144 ++++++++++++++++++++ src/libcamera/proxy/meson.build | 1 + test/ipa/ipa_interface_test.cpp | 24 ++++ test/ipa/ipa_wrappers_test.cpp | 25 +++- 16 files changed, 344 insertions(+), 35 deletions(-) create mode 100644 src/libcamera/proxy/ipa_proxy_thread.cpp