[libcamera-devel] [PATCH 19/21] POC: dummy_ipa: printout deserialize control value

Jacopo Mondi jacopo at jmondi.org
Tue Sep 24 19:25:01 CEST 2019


Verify the content of the received controls in the dummy request queue
operation.

Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
 src/ipa/ipa_dummy.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/ipa/ipa_dummy.cpp b/src/ipa/ipa_dummy.cpp
index ec79ba83ce58..e26ec16e33a1 100644
--- a/src/ipa/ipa_dummy.cpp
+++ b/src/ipa/ipa_dummy.cpp
@@ -5,6 +5,8 @@
  * ipa_dummy.cpp - Dummy Image Processing Algorithm module
  */
 
+#include <iostream>
+
 #include <ipa/ipa_interface.h>
 #include <ipa/ipa_module_info.h>
 
@@ -22,6 +24,16 @@ public:
 
 	int queueRequest(ControlList &controls) override
 	{
+		std::cout << "Request queued to IPA!" << std::endl;
+		for (auto it : controls) {
+			const ControlInfo *info = it.first;
+			ControlValue &control = it.second;
+
+			std::cout << "Deserialized control:"
+				  << info->name() << ":"
+				  << control.getInt() << std::endl;
+		}
+
 		return 0;
 	}
 };
-- 
2.23.0



More information about the libcamera-devel mailing list