[libcamera-devel] [PATCH v2 3/3] ipa: ipu3: Set output frame duration metadata

Paul Elder paul.elder at ideasonboard.com
Mon May 24 11:41:23 CEST 2021


The sensor frame duration should be set by the IPA. Hardcode it for now.

Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh at chromium.org>
---
 src/ipa/ipu3/ipu3.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index f5343547..64524042 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -269,6 +269,10 @@ void IPAIPU3::parseStatistics(unsigned int frame,
 	if (agcAlgo_->updateControls())
 		setControls(frame);
 
+	/* \todo Populate this with real values */
+	ctrls.set(controls::FrameDuration,
+		  static_cast<int64_t>(33334));
+
 	IPU3Action op;
 	op.op = ActionMetadataReady;
 	op.controls = ctrls;
-- 
2.27.0



More information about the libcamera-devel mailing list