From patchwork Mon Jun 3 23:16:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1346 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 76409618FB for ; Tue, 4 Jun 2019 01:16:53 +0200 (CEST) Received: from localhost.localdomain (unknown [96.44.9.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D0034587; Tue, 4 Jun 2019 01:16:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559603813; bh=uwq8QHYM17uy7O0OTiCqblzmomjoyJW7xhYEZ5F3ezs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QD4DDAzAS/4C5EPGKp1W6YJeEbxdY/1AVNgdKpv/2oei5ZQmH800c3WJCaGz4+BTb 6p99nX2dKG+y+nUQWUM+fY6CCzrNxagZD3igh0lsrGHLvLrYD+zVnGRrhKQ5XSbsM8 CGJsWDSE40AQUb6Of1GTWpdYmQWj54UQHzxzwnik= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 3 Jun 2019 19:16:36 -0400 Message-Id: <20190603231637.28554-10-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190603231637.28554-1-paul.elder@ideasonboard.com> References: <20190603231637.28554-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 09/10] libcamera: pipeline: store IPA in pipeline data 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, 03 Jun 2019 23:16:53 -0000 After the pipeline handler acquires an IPA, it should save it for future use. Store it in the pipeline data. Signed-off-by: Paul Elder --- New patch src/libcamera/include/pipeline_handler.h | 3 +++ src/libcamera/pipeline_handler.cpp | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h index 67971b3..a2d9624 100644 --- a/src/libcamera/include/pipeline_handler.h +++ b/src/libcamera/include/pipeline_handler.h @@ -14,6 +14,7 @@ #include #include +#include #include namespace libcamera { @@ -93,6 +94,8 @@ protected: const char *name_; uint32_t version_; + std::unique_ptr ipa_; + private: void mediaDeviceDisconnected(MediaDevice *media); virtual void disconnect(); diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp index b18f14d..d6e68b0 100644 --- a/src/libcamera/pipeline_handler.cpp +++ b/src/libcamera/pipeline_handler.cpp @@ -530,6 +530,14 @@ CameraData *PipelineHandler::cameraData(const Camera *camera) * \brief Pipeline handler version */ +/** + * \var PipelineHandler::ipa_ + * \brief The IPA that the pipeline handler will use + * + * The pipeline handler can acquire an IPA from the IPAManager. Once it is + * acquired, it will be stored here. + */ + /** * \class PipelineHandlerFactory * \brief Registration of PipelineHandler classes and creation of instances