From patchwork Mon Oct 26 10:58:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 28609 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 AA745C324C for ; Mon, 26 Oct 2026 10:58:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 166E168FC6; Mon, 26 Oct 2026 11:58:20 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="RH2aY9dB"; 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 A9F4F68FBA for ; Mon, 26 Oct 2026 11:58:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793012297; 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=TNys15A3otdylToiomf2j36XBcZIXXr+U3gYCvyqbRU=; b=RH2aY9dBxcxPkP109TGfxIzKrJomCopwXzk7xHg4OgsfIA6ttz9YqhO/YSR/CqhNZMJbjV PqerjXPtB+vD1dFa8Swkez4Ni41fXJUHRCZa8bhqKpYScfv/dZNnx0dwHGr3JwAx+c6e/g Z+LyksMwFmPFPW3layj1ef958gYbASI= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-533-LluZa1glO8GC7liOuJU0ig-1; Mon, 26 Oct 2026 06:58:15 -0400 X-MC-Unique: LluZa1glO8GC7liOuJU0ig-1 X-Mimecast-MFC-AGG-ID: LluZa1glO8GC7liOuJU0ig_1793012295 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CA4EC180065A for ; Mon, 26 Oct 2026 10:58:14 +0000 (UTC) Received: from mzamazal-thinkpadp1gen7.tpbc.com (unknown [10.43.17.75]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 017C318004D2; Mon, 26 Oct 2026 10:58:13 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal Subject: [RFC PATCH 0/1] softisp tuning script for LSC Date: Mon, 26 Oct 2026 11:58:08 +0100 Message-ID: <20261026105811.15657-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: c9WqyT79g-DtWm3nzGVV66fh85v0_Q1pJS4Z-lK17ao_1793012295 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. It currently handles only tuning data for Lsc algorithm, which is what we need at the moment. The script is based on rkisp1 tuning script but there are some differences (gr+gb x g-only, output range). I’m not sure whether it’s worth to make a common base class for rkisp1 and softisp; I selected the copy & edit approach for now. It is RFC because I don’t know how to test it properly and I’m not sure whether it’s a hack or a way to go. Milan Zamazal (1): utils: tuning: Add softisp script .../tuning/libtuning/modules/lsc/__init__.py | 3 +- utils/tuning/libtuning/modules/lsc/softisp.py | 105 ++++++++++++++++++ utils/tuning/softisp.py | 42 +++++++ 3 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 utils/tuning/libtuning/modules/lsc/softisp.py create mode 100755 utils/tuning/softisp.py