From patchwork Wed Jul 17 10:09:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 20694 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 4DECAC3243 for ; Wed, 17 Jul 2024 10:09:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 736E56338D; Wed, 17 Jul 2024 12:09:42 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sNlV+8HQ"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 650676337E for ; Wed, 17 Jul 2024 12:09:30 +0200 (CEST) Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0B360B0B; Wed, 17 Jul 2024 12:08:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1721210932; bh=bBdgHxb/bKL2OPNxdQuIixlBev03dXKtpNPMIy6GDDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sNlV+8HQQfC7LZ196grkUh8YC6yXytY91odhWLBPQkw1zs3Oi7V26fG0dFf/MOWKe RU26kPyMvo/uIsXn6XhwWtbY5unfslXt0PO5n4nbQpz3Jj3YVRoE+YtHzkYzb8gCII 0FIYnIXaMnP6AyNvz/U7mGHgqIeb1uMgfnUG6Tt8= From: Jacopo Mondi To: Umang Jain , libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi Subject: [RFC 8/9] dw100: fixup Date: Wed, 17 Jul 2024 12:09:11 +0200 Message-ID: <20240717100913.16640-9-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240717100913.16640-1-jacopo.mondi@ideasonboard.com> References: <20240717100913.16640-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Signed-off-by: Jacopo Mondi --- .../libcamera/internal/converter/converter_dw100.h | 2 +- src/libcamera/converter/converter_dw100.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/libcamera/internal/converter/converter_dw100.h b/include/libcamera/internal/converter/converter_dw100.h index dc41f365b5c7..ee82b99e8d9d 100644 --- a/include/libcamera/internal/converter/converter_dw100.h +++ b/include/libcamera/internal/converter/converter_dw100.h @@ -18,7 +18,7 @@ class Stream; class ConverterDW100 : public V4L2M2MConverter { public: - ConverterDW100(std::shared_ptr media); + ConverterDW100(MediaDevice *media, Converter::Features features); }; } /* namespace libcamera */ diff --git a/src/libcamera/converter/converter_dw100.cpp b/src/libcamera/converter/converter_dw100.cpp index 3061fc71dd80..09ede8d0c216 100644 --- a/src/libcamera/converter/converter_dw100.cpp +++ b/src/libcamera/converter/converter_dw100.cpp @@ -29,9 +29,16 @@ LOG_DECLARE_CATEGORY(Converter) * \brief Construct a ConverterDW100 instance * \param[in] media The media device implementing the converter */ -ConverterDW100::ConverterDW100(std::shared_ptr media) - : V4L2M2MConverter(media.get(), Feature::Crop) +ConverterDW100::ConverterDW100(MediaDevice *media, Converter::Features features) + : V4L2M2MConverter(media, features) { } +static std::initializer_list compatibles = { + "dw100", +}; + +REGISTER_CONVERTER("dw100", ConverterDW100, compatibles, + Converter::Feature::Crop) + } /* namespace libcamera */