[libcamera-devel] [PATCH 3/4] libcamera: ipa: raspberrypi: Populate libcamera metadata after controller process

Naushir Patuck naush at raspberrypi.com
Fri Jun 26 12:25:30 CEST 2020


For control algorithms like focus, this is needed to return out the
the current frame focus statistics. For other algorithms, there is no
functional change.

Signed-off-By: Naushir Patuck <naush at raspberrypi.com>
---
 src/ipa/raspberrypi/raspberrypi.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index bc89ab58..62730198 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -318,6 +318,8 @@ void IPARPi::processEvent(const IPAOperationData &event)
 		if (frame_count_ > mistrust_count_)
 			processStats(bufferId);
 
+		reportMetadata();
+
 		IPAOperationData op;
 		op.operation = RPI_IPA_ACTION_STATS_METADATA_COMPLETE;
 		op.data = { bufferId & RPiIpaMask::ID };
@@ -336,7 +338,6 @@ void IPARPi::processEvent(const IPAOperationData &event)
 		 * they are "unreliable".
 		 */
 		prepareISP(embeddedbufferId);
-		reportMetadata();
 
 		/* Ready to push the input buffer into the ISP. */
 		IPAOperationData op;
-- 
2.25.1



More information about the libcamera-devel mailing list