From patchwork Fri Jun 14 11:40:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20320 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 B92FEBD87C for ; Fri, 14 Jun 2024 11:40:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CC57965492; Fri, 14 Jun 2024 13:40:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="m6I9Vd5X"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D081761A2A for ; Fri, 14 Jun 2024 13:40:25 +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 29354397; Fri, 14 Jun 2024 13:40:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718365211; bh=XNCPHDW8unYNN8BhHG/5Q7WVOFuGMZaCI3sT/qgw4tE=; h=From:To:Cc:Subject:Date:From; b=m6I9Vd5X+n8riP/5FUTtBAYEGQitmOKDWXjSTBLbjTDW2TahFl9yxBRzZTnHIzxxC r67bJgWyBU/k6BHP0WI/M5sAUJ2wfriMGtUkeD3HRTgJRipeH8t+fVoeKabo6Yqw/w WqUQcczDezBDG1Nflo13cwbNfz6ZT+on98j4biic= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v4 0/2] utils: tuning: Add AGC and CCM Date: Fri, 14 Jun 2024 20:40:14 +0900 Message-Id: <20240614114016.116620-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. 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. v4 /removes/ support for both v10 and v12, and only supports v10. Piecewise linear functions have also been removed from luminance targets. Paul Elder (2): utils: libtuning: modules: Add skeletal AGC module utils: tuning: rkisp1: Add skeletal AGC 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 | 79 +++++++++++++++++++ utils/tuning/rkisp1.py | 4 +- 4 files changed, 109 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