From patchwork Sat Aug 31 21:02:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1904 X-Patchwork-Delegate: niklas.soderlund@ragnatech.se Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2FE2560BB2 for ; Sat, 31 Aug 2019 23:03:00 +0200 (CEST) X-Halon-ID: b55c4361-cc32-11e9-903a-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [84.172.84.18]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id b55c4361-cc32-11e9-903a-005056917f90; Sat, 31 Aug 2019 23:02:58 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Sat, 31 Aug 2019 23:02:16 +0200 Message-Id: <20190831210220.29819-3-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190831210220.29819-1-niklas.soderlund@ragnatech.se> References: <20190831210220.29819-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/6] libcamera: ipa: Add signal to transferee meta data 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: Sat, 31 Aug 2019 21:03:00 -0000 Add a signal which will be emitted once the IPA have processed the statistics and translated it into meta data libcamera can understand. Signed-off-by: Niklas Söderlund --- include/libcamera/ipa/ipa_interface.h | 2 ++ src/libcamera/ipa_interface.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/libcamera/ipa/ipa_interface.h b/include/libcamera/ipa/ipa_interface.h index 38e16ff37214f7b9..eace4d3ea97943d0 100644 --- a/include/libcamera/ipa/ipa_interface.h +++ b/include/libcamera/ipa/ipa_interface.h @@ -16,6 +16,7 @@ namespace libcamera { class Buffer; class Request; +struct IPAMetaData; class IPAInterface { @@ -30,6 +31,7 @@ public: Signal updateSensor; Signal queueRequest; + Signal metaDataReady; }; } /* namespace libcamera */ diff --git a/src/libcamera/ipa_interface.cpp b/src/libcamera/ipa_interface.cpp index be9eab3cda32379d..3222ae09e5750030 100644 --- a/src/libcamera/ipa_interface.cpp +++ b/src/libcamera/ipa_interface.cpp @@ -92,4 +92,14 @@ namespace libcamera { * controls. */ +/** + * \var IPAInterface::metaDataReady + * \brief Signal emitted when the IPA is done processing statistics + * + * This signal is emitted when the IPA have finished processing the statistics + * buffer and have created an IPAMetaData object which are ready to be consumed + * by the pipeline handler. The request cookie and the meta data is passed as + * parameters. + */ + } /* namespace libcamera */