[libcamera-devel] [PATCH 2/6] libcamera: ipa: Add signal to transferee meta data

Niklas Söderlund niklas.soderlund at ragnatech.se
Sat Aug 31 23:02:16 CEST 2019


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 <niklas.soderlund at ragnatech.se>
---
 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<V4L2ControlList> updateSensor;
 	Signal<const void *> queueRequest;
+	Signal<const void *, IPAMetaData> 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 */
-- 
2.22.1



More information about the libcamera-devel mailing list