From patchwork Mon May 27 22:35:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1326 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5C02D61908 for ; Tue, 28 May 2019 00:35:53 +0200 (CEST) Received: from localhost.localdomain (unknown [96.44.9.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A631AD85; Tue, 28 May 2019 00:35:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1558996553; bh=sbtYDBvv8TNHx3Xz8YtLPRboM979wclK7p3+mnnOifs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JFBEalsIpOvOx4oAaEbTBnRmYvq9eZSrfEVnA30RzNUXlfnjR/p55fC6KrOH7EFg4 Ju50yFxUlSxhl1AL+zWoby4alVCjtBymZMdwUiwWguDg3CQnhu9srS4T11Kb2nB8oV UYsYW3sXFIKv4GiNxx3nT6la/j+f6keyd0TjIZbw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 27 May 2019 18:35:40 -0400 Message-Id: <20190527223540.21855-9-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190527223540.21855-1-paul.elder@ideasonboard.com> References: <20190527223540.21855-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 8/8] libcamera: pipeline: vimc: add dummy IPA X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2019 22:35:53 -0000 Make the vimc pipeline handler get the dummy IPA, to show how an IPA can be acquired by a pipeline handler. Signed-off-by: Paul Elder --- src/libcamera/pipeline/vimc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp index d3ff527..1df5e5a 100644 --- a/src/libcamera/pipeline/vimc.cpp +++ b/src/libcamera/pipeline/vimc.cpp @@ -9,10 +9,12 @@ #include #include +#include #include #include #include "device_enumerator.h" +#include "ipa_manager.h" #include "log.h" #include "media_device.h" #include "pipeline_handler.h" @@ -252,6 +254,14 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator) if (!media) return false; + IPAManager *ipaManager = IPAManager::instance(); + ipaManager->addDir("src/ipa"); + std::unique_ptr ipa = ipaManager->createIPA(this); + if (ipa == nullptr) + LOG(VIMC, Error) << "no matching IPA found"; + else + ipa->init(); + std::unique_ptr data = utils::make_unique(this); /* Locate and open the capture video node. */