From patchwork Wed May 29 19:42:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20140 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 55B72BD87C for ; Wed, 29 May 2024 19:43:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EDB076347E; Wed, 29 May 2024 21:43:05 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JSpuYy1k"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 603936347E for ; Wed, 29 May 2024 21:43:04 +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 AFC9D149B; Wed, 29 May 2024 21:42:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717011780; bh=iJdVl0Qn0d/SpjrHA0BCozD885OrTmQmtmq+U9DThYU=; h=From:To:Cc:Subject:Date:From; b=JSpuYy1k+rqj9AE97vLWLBfJS1hIEk9iO8qbuOvfxkabUsSCiGAoCP7IQe3ZLqX4c 5lS01c35YUkWM84a51EAuLtgPCOjTa1ooxVTk6f9a8XVN6UZ/gLGdhhjtL7Z4457Zd Wj8CpQCxELGEqZJjBAyGaCNGjE0mGXIgPSplHw0M= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v3 0/4] utils: tuning: Add AGC and CCM Date: Thu, 30 May 2024 04:42:47 +0900 Message-Id: <20240529194251.863689-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 depends on v2 of "ipa: libipa: Change constraint Y target to piecewise linear function". 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. v3 is mainly minor fixes. Notably the patch adding a hardcoded tuning file for imx335 was removed as the values in it were arbitrary, so there was negative value in adding the file. Paul Elder (4): 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 CCM to the rkisp1 tuning script .../tuning/libtuning/modules/agc/__init__.py | 6 + utils/tuning/libtuning/modules/agc/agc.py | 21 ++++ utils/tuning/libtuning/modules/agc/rkisp1.py | 110 ++++++++++++++++++ .../tuning/libtuning/modules/ccm/__init__.py | 6 + utils/tuning/libtuning/modules/ccm/ccm.py | 22 ++++ utils/tuning/libtuning/modules/ccm/rkisp1.py | 87 ++++++++++++++ utils/tuning/rkisp1.py | 6 +- 7 files changed, 257 insertions(+), 1 deletion(-) 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