From patchwork Thu Nov 19 17:05:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 29047 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 B8A75C3304 for ; Thu, 19 Nov 2026 17:05:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id ACB2F6A92B; Thu, 19 Nov 2026 18:05:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="RVa6MHma"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C6B0F6A861 for ; Thu, 19 Nov 2026 18:05:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795107929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aBeCyOLmGkxk2H3rEQBzQK8qom/pKEMWg1Zu2FvKZTc=; b=RVa6MHmaN5viuPhSadgYFHktUlB9ip3KuyxkWqSJJIn5sTZq9Yr3Gxg390vMKVZ71QFqxh +qB9qDbZk/lzl9lRFKzMcaNrCwUwoMviDhGyx2SAz4Ug8RSsE3K8NZElMTzYtgI4P/331A Lq6FaVGg0JA0wge6KB2Gj/5L64qo+xA= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-349-U8y8GaadPwGgjdRPwkaW-Q-1; Thu, 19 Nov 2026 12:05:24 -0500 X-MC-Unique: U8y8GaadPwGgjdRPwkaW-Q-1 X-Mimecast-MFC-AGG-ID: U8y8GaadPwGgjdRPwkaW-Q_1795107922 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3BE4A1954112; Thu, 19 Nov 2026 17:05:22 +0000 (UTC) Received: from mzamazal-thinkpadp1gen7.tpbc.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D6FF430000E8; Thu, 19 Nov 2026 17:05:20 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Hans de Goede , Robert Mader Subject: [PATCH v2 0/1] softisp tuning script for LSC Date: Thu, 19 Nov 2026 18:05:15 +0100 Message-ID: <20261119170517.133770-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: zXSeKEvbiJMSI0CD_hVvph7pbdzGloJgq8nKQhp2oFk_1795107922 X-Mimecast-Originator: redhat.com 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 adds softisp tuning script. The script is based on rkisp1 tuning script but there are some differences (a different set of algorithms, LSC: gr+gb x g-only, output range). It’s probably not worth to make a common base class for rkisp1 and softisp; I selected the copy & edit approach. Changes in v2: - Wrong pixel value mapping fixed. - Data for all the softisp algorithms rather than only LSC, added by Hans. Milan Zamazal (1): utils: tuning: Add softisp script .../tuning/libtuning/modules/lsc/__init__.py | 1 + utils/tuning/libtuning/modules/lsc/softisp.py | 105 ++++++++++++++++++ utils/tuning/softisp.py | 51 +++++++++ 3 files changed, 157 insertions(+) create mode 100644 utils/tuning/libtuning/modules/lsc/softisp.py create mode 100755 utils/tuning/softisp.py