From patchwork Fri Aug 12 22:33:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17108 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 E882ABE173 for ; Fri, 12 Aug 2022 22:34:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0B2DE6118B; Sat, 13 Aug 2022 00:34:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1660343647; bh=183W+U7snQimRgXYq+Z/vwpty50LvTQUiiyeVDO8p60=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=yojAJ5tSJKxb5qe9IW/a8DiT0SAF1g4phRJUECBm4JOHdpRMh6eNgrI+aHBz3Znh2 +sypkedCMA0F2oRAgopzE9++K1enH1Vznr1bqZotVdWAUSHXJYR+6onCllgir50Ukm qv7MG65oApgJ0BmXOiql3oyaGNWzcHkwbsyfZUSu5xFtdCF50029sscYtCiJFXZDGC BK8DrhOGfmZx51iGLWmYxIVuHGnF3cHRi0NewOc7Uwk+tc4hd7nwQUoZ+Lth2gyxXU DGp/88xz91GZM19jWv3Lz6FGnivMIXV0CnufY1QoXeqMQC8Om8NrbkEBydTfXWO8sR x2PaX51iMheyA== 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 5F883603EA for ; Sat, 13 Aug 2022 00:34:05 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iIgIP/TV"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A936430A; Sat, 13 Aug 2022 00:34:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1660343644; bh=183W+U7snQimRgXYq+Z/vwpty50LvTQUiiyeVDO8p60=; h=From:To:Cc:Subject:Date:From; b=iIgIP/TVV6ASqZN74hoOyH75rZtq+//r5NipOuud90BQ5ncT1iBhqn6ps7yFTJ1pQ nDaa0vP3q271KprJlW4sEgCsKzyHzUzluT3v7OtOBDp6fG2vzbcRVj5WcSG1yBmh7p E+zafOJriHmZFsuNaCRsILu/YDAUIQg/RMGNqJIw= To: libcamera-devel@lists.libcamera.org Date: Sat, 13 Aug 2022 01:33:48 +0300 Message-Id: <20220812223351.22609-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/3] Add DPF tuning support for RkISP1 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-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This patch series adds support for the denoise pre-filter (DPF) algorithm to the RkISP1 IPA module. The configuration of the DPF depends on whether or not the AWB and LSC hardware blocks are enabled. Therefore, patches 1/3 and 2/3 store that information in the IPASessionConfiguration. Patch 3/3 then adds the algorithm and showcase its configuration in the ov5640 tuning data file. Florian Sylvestre (3): ipa: rkisp1: Add enable field for AWB algorithm in IPA context ipa: rkisp1: Add enable field for LSC algorithm in IPA context ipa: rkisp1: Add support of Denoise Pre-Filter control src/ipa/rkisp1/algorithms/awb.cpp | 2 + src/ipa/rkisp1/algorithms/dpf.cpp | 249 ++++++++++++++++++++++++++ src/ipa/rkisp1/algorithms/dpf.h | 36 ++++ src/ipa/rkisp1/algorithms/lsc.cpp | 10 ++ src/ipa/rkisp1/algorithms/lsc.h | 1 + src/ipa/rkisp1/algorithms/meson.build | 1 + src/ipa/rkisp1/data/ov5640.yaml | 15 ++ src/ipa/rkisp1/ipa_context.cpp | 22 +++ src/ipa/rkisp1/ipa_context.h | 10 ++ 9 files changed, 346 insertions(+) create mode 100644 src/ipa/rkisp1/algorithms/dpf.cpp create mode 100644 src/ipa/rkisp1/algorithms/dpf.h base-commit: dfc6d711c9f7f0a9868afa5158aa2089163bded3