From patchwork Tue Oct 28 20:15:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Wang X-Patchwork-Id: 24870 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 0DCBDBE080 for ; Tue, 28 Oct 2025 20:15:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 38E6360817; Tue, 28 Oct 2025 21:15:38 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ouHYRgS9"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0469B606DE for ; Tue, 28 Oct 2025 21:15:36 +0100 (CET) Received: from rui-Precision-7560.local (unknown [209.216.122.90]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7215811D5; Tue, 28 Oct 2025 21:13:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1761682428; bh=/XZgJDbVY0HfCPhaQ4pLnEGwoVRoIu1I+Hn5f1+ysJg=; h=From:To:Cc:Subject:Date:From; b=ouHYRgS9+c/Lhyk4dwISjaF+xevh2wfCijOs/BE3iC0lqWXzfmaxPAM6h3477mmzV /jp9f4aEeuWhGV+bU7EPhDS6xF7kA4nZNxyqcAa8WaQ9Rf2TxG3hjuUZLjMeosBtwi 84izFIH8ikCcc0KVbz7a+o/RSlQKwIN0EE9C6TfI= From: Rui Wang To: libcamera-devel@lists.libcamera.org Cc: Rui Wang Subject: [PATCH v1 01/17] ipa: rkisp1: algorithms: add Denoise base class shell Date: Tue, 28 Oct 2025 16:15:02 -0400 Message-ID: <20251028201521.2739865-1-rui.wang@ideasonboard.com> X-Mailer: git-send-email 2.43.0 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" Introduce the abstract DenoiseBaseAlgorithm class as a shared foundation for the DPF and Filter algorithms. The base class provides pure virtual hooks for control handling, manual overrides, and mode transitions, plus common state members for enable/manual/dev mode tracking. Derived classes must implement the pure virtual methods to provide algorithm-specific behavior. Signed-off-by: Rui Wang --- src/ipa/rkisp1/algorithms/denoise.h | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/ipa/rkisp1/algorithms/denoise.h diff --git a/src/ipa/rkisp1/algorithms/denoise.h b/src/ipa/rkisp1/algorithms/denoise.h new file mode 100644 index 00000000..8f109db4 --- /dev/null +++ b/src/ipa/rkisp1/algorithms/denoise.h @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2025, Ideas On Board + * + * RkISP1 Denoising Algorithms Base Class + */ + +#pragma once + +#include "algorithm.h" + +namespace libcamera { + +namespace ipa::rkisp1::algorithms { + +/** + * \class DenoiseBaseAlgorithm + * \brief Base class for RkISP1 denoising algorithms + * + * This abstract base class provides common functionality for denoising algorithms + * in the RkISP1 Image Processing Algorithm (IPA). + * + * Derived classes must implement algorithm-specific behavior. + */ +class DenoiseBaseAlgorithm : public ipa::rkisp1::Algorithm +{ +protected: + DenoiseBaseAlgorithm() = default; + ~DenoiseBaseAlgorithm() = default; +}; + +} /* namespace ipa::rkisp1::algorithms */ + +} /* namespace libcamera */