From patchwork Mon Apr 28 10:36:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 23292 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 7E2C7C327D for ; Mon, 28 Apr 2025 10:36:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6DEB2617DC; Mon, 28 Apr 2025 12:36:10 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="BM2SYz6m"; dkim-atps=neutral Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 437B8617DC for ; Mon, 28 Apr 2025 12:36:08 +0200 (CEST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43cf3192f3bso44109915e9.1 for ; Mon, 28 Apr 2025 03:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1745836567; x=1746441367; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9FNWTk5n643gIbkz/JMcHqcTNqAgo0u6s6JHXsLe+wU=; b=BM2SYz6mOAY+vNuUn4Les0Bg2aOHpXzdpfvcijxQvEykbw4dQdvs/mdHpi2pwy6Kmb hiVtFubOUSNlEDwOwjPOi0g/+mds82rliPr9K/Z0nImXmxnfl6Trb6mIu2RaP4bettTv tMfR2sdsfwbrBBWLDbH1BMh+W4bRYz64KxVwHv3Yk7oeGrfoM43MmcsaQBgmHwme/J2n 4OMpF1MaMaf1J+kaR7uDa2A7JU247W7c5HGEaucew1UvA84J4Xfcz4iqd6AXz6uaDLD2 LGWC5xnK7+hggcG52vdfR8rhKxRqR1Vj0kXQWbijSK+O5A0LH2+808WBvyGn/Jeh+acZ MLbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745836567; x=1746441367; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9FNWTk5n643gIbkz/JMcHqcTNqAgo0u6s6JHXsLe+wU=; b=sm8UF20cSNavnNoIbrz5K6gYKFjOfd65x6CS/ZfE3ceFFo3pqqtotjBmp11eaTUFtw 6M2laGP4yuVCseQmUE2/7qbLZBp5DBeI8XPXwVQklJ1EKtjBTap/+BrLGZsas3Zm4pgJ 0VoSQVxpi/9FFQR3aT6FgpkWTPDXWmenX2oxA4LsEQrecwRF9cwnspXO1Q/dJlpgTAPh VJtipJAcXHEepMNRqDV3KTWivSqFqivrpRURrSCN/KwujyGU5qtcdfQQWmjjv43y7os5 CTaSTA3BBKwBpAwjmgahcOem5QLcE6pPfx5M6BgMMWKuElgypmxCnGcAGKnAa0JAib+9 262A== X-Gm-Message-State: AOJu0Yx2bQaHJ9xSPXRiVYwx6Ee9dAOlqcgqrXH0DqBDYEptmz3CXeUB 6GG6/ufsyhcHeZBtuIxmuX0dmAYrLdkHyOc1v9xFwbQp6EB0B6azlP71WJ998GaVrHOtDqi6PWm F X-Gm-Gg: ASbGncuGcH15P96BhN28bdbE/Sb6SK01G1AHuYX3op2sCx2L+hcXxo46i9Rx8OwuH18 zlnWc1H0MkuKgc/zViYC8l1HhlPfKVybPu5PldmWhBehhh6JHch4pNhIcRhglFwuGOIpaex8VZb 5C30w4OQNk6RxAOZYgSuuwvSDbSNu+l0QnWBwvNpQFU2+7OQBl/d03TwqnLufCXRS00OhmSoyPx XQCrwls9zjhgCPqtnWZaJuxw908wBaOLVHpGo8jZL64gg+WuwF8TmLlHRKu9Yo7f5oKz39Uvn/a NGKtIoEkFenFN7DA7fGnwloD3c36XErnBMlwc1OgAxC106p0KYpQhs4UbWLrouemCGaW0ig9too = X-Google-Smtp-Source: AGHT+IEEDY7JvWTpbgdwC+DMzjYonoo1rSTHhwlS7nsRAZlsoXFS42laBEPK1fo/bBm4D+aPxU7OLA== X-Received: by 2002:a05:600c:1e0f:b0:43c:fcbc:9680 with SMTP id 5b1f17b1804b1-440a66985dbmr89038225e9.25.1745836567240; Mon, 28 Apr 2025 03:36:07 -0700 (PDT) Received: from davidp-xps-13.pitowers.org ([2a00:1098:3142:1f:6594:d5bc:c5ae:99b5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4408d04802fsm116243185e9.1.2025.04.28.03.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 03:36:06 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Cc: David Plowman Subject: [PATCH 0/2] Raspberry Pi Camera Tuning Tool fixes Date: Mon, 28 Apr 2025 11:36:02 +0100 Message-Id: <20250428103604.151551-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.34.1 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" Hi These patches fix some problems with the Raspberry Pi tuning tool, where some of the tables (LSC and CAC tables) could get Nans appearing. Nothing too remarkable here (except that dividing an image into 32x32 cells is surprisingly easy to get wrong!), but hopefully the patches are self-explanatory enough. Thanks! David David Plowman (2): utils: raspberrypi: ctt: Fix NaNs in lens shading tables utils: raspberrypi: ctt: Fix NaNs in chromatic aberration tables utils/raspberrypi/ctt/ctt.py | 9 ++++++--- utils/raspberrypi/ctt/ctt_alsc.py | 7 ++++--- utils/raspberrypi/ctt/ctt_cac.py | 32 ++++++++++++++++++++++++++----- 3 files changed, 37 insertions(+), 11 deletions(-)