From patchwork Fri May 17 07:57:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20051 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 51E87BD78E for ; Fri, 17 May 2024 07:58:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 151966347E; Fri, 17 May 2024 09:58:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BMzEvIl5"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6FCB86347C for ; Fri, 17 May 2024 09:58:01 +0200 (CEST) Received: from neptunite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp [175.177.49.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 87562475; Fri, 17 May 2024 09:57:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715932672; bh=JetsWfLwX6TUAxQjZm8k4ohxtZ0vgL1HR5CyCilh9rs=; h=From:To:Cc:Subject:Date:From; b=BMzEvIl5y8dgGp2xqNXJTEWXcFUvvkgMCnPqiN+UHqVSkrCBuXPZMR5u0gh5lYjgL nfcp5wqt3UG8q91YKqPT/68OAX6TBVz9RcgKzsv9evxlE3s3Ej0E4/Xq1iW43FNygG 7C8eBAxEnF9pShUhvL4NVBBx/XIXZkCLf8tyF3CQ= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v2 0/5] utils: tuning: Add AGC and CCM Date: Fri, 17 May 2024 16:57:46 +0900 Message-Id: <20240517075751.3866269-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 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" This series adds skeletal tuning modules for AGC and CCM/CTK (color correction matrix / crosstalk correction), mainly for rkisp1. They are hardcoded values for now, copied from ctt. This also adds a tuning file for the imx335 for rkisp1. In v2, mainly we add support for both v10 and v12, as one tuning file should work for both platforms. The format of matrices that are meant to be interpolated (usually via color temperate) such as color correction matrices, is changed to match that of lsc. Paul Elder (5): utils: libtuning: modules: Add skeletal AGC module utils: tuning: rkisp1: Add skeletal AGC to the rkisp1 tuning script utils: libtuning: modules: Add skeletal CCM module utils: tuning: rkisp1: Add skeletal CTK to the rkisp1 tuning script ipa: rkisp1: data: Add hardcoded tuning file for imx335 src/ipa/rkisp1/data/imx335.yaml | 195 ++++++++++++++++++ src/ipa/rkisp1/data/meson.build | 1 + .../tuning/libtuning/modules/agc/__init__.py | 6 + utils/tuning/libtuning/modules/agc/agc.py | 21 ++ utils/tuning/libtuning/modules/agc/rkisp1.py | 112 ++++++++++ .../tuning/libtuning/modules/ccm/__init__.py | 6 + utils/tuning/libtuning/modules/ccm/ccm.py | 22 ++ utils/tuning/libtuning/modules/ccm/rkisp1.py | 89 ++++++++ utils/tuning/rkisp1.py | 6 +- 9 files changed, 457 insertions(+), 1 deletion(-) create mode 100644 src/ipa/rkisp1/data/imx335.yaml create mode 100644 utils/tuning/libtuning/modules/agc/__init__.py create mode 100644 utils/tuning/libtuning/modules/agc/agc.py create mode 100644 utils/tuning/libtuning/modules/agc/rkisp1.py create mode 100644 utils/tuning/libtuning/modules/ccm/__init__.py create mode 100644 utils/tuning/libtuning/modules/ccm/ccm.py create mode 100644 utils/tuning/libtuning/modules/ccm/rkisp1.py