From patchwork Tue Sep 24 17:25:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 2018 Return-Path: Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1FFD262379 for ; Tue, 24 Sep 2019 19:23:41 +0200 (CEST) X-Originating-IP: 213.45.248.89 Received: from uno.homenet.telecomitalia.it (host89-248-dynamic.45-213-r.retail.telecomitalia.it [213.45.248.89]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C87CC60005 for ; Tue, 24 Sep 2019 17:23:40 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 24 Sep 2019 19:25:01 +0200 Message-Id: <20190924172503.30864-20-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190924172503.30864-1-jacopo@jmondi.org> References: <20190924172503.30864-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 19/21] POC: dummy_ipa: printout deserialize control value X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 17:23:41 -0000 Verify the content of the received controls in the dummy request queue operation. Signed-off-by: Jacopo Mondi --- 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 + #include #include @@ -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; } };