From patchwork Mon Nov 23 12:03:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 29071 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 36E57C3355 for ; Mon, 23 Nov 2026 12:03:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0688C6A998; Mon, 23 Nov 2026 13:03:36 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="A52mcUAM"; 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 E6A6E68ECB for ; Mon, 23 Nov 2026 13:03:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795435412; 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=QJmBdVQ2Nau4rYNgEEpFmL5/MbmSdidUYDFV9n8v3MQ=; b=A52mcUAMaNilted5JjFHILCh9ie/c1MPMJSWiOthWDPavBsK1HQWkYE2znLqxuIjiLwGIx Rc0F6GiC21RCOVxOlq1Jrij4SY1G1ChyjRte4dxJspHkyejfl+Es56RUXOqNROmoXBgmsb 0Kzw4O5BclF2g+9LNWduGS0x0K0mek8= 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-223-KynReaE6N_qPpcfHKOI4gg-1; Mon, 23 Nov 2026 12:03:31 +0000 X-MC-Unique: KynReaE6N_qPpcfHKOI4gg-1 X-Mimecast-MFC-AGG-ID: KynReaE6N_qPpcfHKOI4gg_1795435410 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 06D0D1805A1C; Mon, 23 Nov 2026 12:03:28 +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 3A2713001DA8; Mon, 23 Nov 2026 12:03:25 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Hans de Goede , Robert Mader Subject: [PATCH v3 0/1] softisp tuning script for LSC Date: Mon, 23 Nov 2026 13:03:17 +0100 Message-ID: <20261123120321.50790-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: dUaBfeqEkvE2VUR9dRnLfHT6I46R4uKWmjONz7ga3GY_1795435410 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 v3: - Wrong output algorithm order fixed. 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 | 53 +++++++++ 3 files changed, 159 insertions(+) create mode 100644 utils/tuning/libtuning/modules/lsc/softisp.py create mode 100755 utils/tuning/softisp.py