From patchwork Fri Aug 22 12:37:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 24180 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 1B32BC332A for ; Fri, 22 Aug 2025 12:37:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6A5D7692F3; Fri, 22 Aug 2025 14:37:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="L+N5pcjN"; dkim-atps=neutral Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BCF52692F0 for ; Fri, 22 Aug 2025 14:37:17 +0200 (CEST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-45a1b0990b2so15583275e9.2 for ; Fri, 22 Aug 2025 05:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1755866237; x=1756471037; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SJOetcTaoIM32bYiVeYyfUMatXlRcufMYGMd2pqtsgw=; b=L+N5pcjNyU7TtU2Zvjbp9K5fGxp6KOQqe6zF/ZTUFNOhq7pRO9rDKlSYPfOH/7ClHC oCzICLMnNHbdfuO99EWbTguhdPP1bxXkDg0VzNrkM4wRelX3fJHSAlaDiI/AwjN+RH+n M7TDXES5kHqyGlw0sol/daid0FQQwDclfLcjq84j/vOiLhIZOgnOzxDG2QmsmTu/ydwi Fp0/2N94LF61enPCKfFvXz51Mp8wuAccD/m5Pin0oS1fv970D82XcEWSGtkpN/s17xkX 9n2cnrn1CPNPoZOW0KYmN4nbnQXbK32sxDv1o1G2FlMTFKjnWvsfSbtOzBlWKy2oyIqE sWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755866237; x=1756471037; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SJOetcTaoIM32bYiVeYyfUMatXlRcufMYGMd2pqtsgw=; b=ZcqjcRh+ZNg+27slL8ViJiHX00ZEowMpBZv2y/9jOXeX1BnvEeyLbg5IqO17GkRbmD JXx1A32Oyq2ZXxi0OCruH6DTGEU/TVGnwK9MX39zX06bCWoIJGlRNCjEOE3qp0zew2rR vJSLL9YnNSm5lsZnfI+4a6L7KDKoyx43/JkEKxTIGQOhVpCi6RqcHYxzCiH0WOnGut7L VtBESsYyhVeg/sn1Eouje5ka2xvZUiSLou+LYMpT85KsL4oO2L7ofPOan+votvT5p8uE 3DOV3tqMjrOAAS3f5vgFJX1qn9a0kvlykOu4MaRoHXClkQTiuQYJG0+twhve9ybrHMx7 /+zw== X-Gm-Message-State: AOJu0YzbsgOM6HkKFn+5Qtarf+OjcGYsClCB6KFwreHr+3nUcogMEV3i w08IKr59CrZwCW9pBs64KEzS46Y8uPHMmLPA+vEBAaR74EilhOw/x3hvwW/I8gIUTW+75/X29wP 2HuaD X-Gm-Gg: ASbGncuuuiLDsLCaAErifXMj3zz5e4+t7X0iEg1ekgfTsNCfkYV1MFi3IDgewGkJhKL 6/GsytipggPC8h6oH5LKKSGQy/OcNbakqfWEK7JEFYLDcVHoUfqM2weceNQ95DIvhtazSIlYCox a+Dvid6MfjFvxvMqdPO0zW7Xn29XAplLdFdj7UWaajgdpVOWobIWLTcP9TCWVTcKZyhAg4MJ5uL hHlFL/Gl0109L8woua4lik1ohKrrjtOuQ9A4LHHMBuE2P9EqGk+S6kWqnjton47k3Z+mZvy7T+V LPaOKEEOmwp4kfeXp6JTgKOIevfRFG5RJO5/4qi4LezLM0uA0iVHZz3IbHaZanQQ/oTbJ1yNs6V pVS1IxFVW4L87Q0lxD+0QQtiqpoS1gYYjtb5VO8aYdHLGMb0xkxK/goyD1Pc7glALYrAPIzxVls 2Aus1nbWI3OiVx9EdKnrNYg2Zd9/xwMMWi5+oaIZM= X-Google-Smtp-Source: AGHT+IFHR2h3x3G/mT0FkZ/cQyu+ayHN1nU2b5e7e23JJlJ1FwGJ1G/noxar6yCHwrhh6Y0P5Rty9w== X-Received: by 2002:a05:600c:4715:b0:459:db54:5f34 with SMTP id 5b1f17b1804b1-45b517d902bmr26111955e9.31.1755866236748; Fri, 22 Aug 2025 05:37:16 -0700 (PDT) Received: from raspberrypi.pitowers.org ([2a00:1098:3142:1f:ffc9:aff6:7f7f:893b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3c07487986fsm16685787f8f.1.2025.08.22.05.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Aug 2025 05:37:16 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Cc: David Plowman Subject: [PATCH 5/6] utils: raspberrypi: ctt: Update vc4 tuning defaults Date: Fri, 22 Aug 2025 13:37:08 +0100 Message-Id: <20250822123709.16966-6-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250822123709.16966-1-david.plowman@raspberrypi.com> References: <20250822123709.16966-1-david.plowman@raspberrypi.com> 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" The sharpening default values are updated to be slightly less aggressive, and exposure profiles are made slightly more consistent. This now matches the latest tuning changes. Signed-off-by: David Plowman Reviewed-by: Naushir Patuck --- utils/raspberrypi/ctt/ctt_vc4.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/utils/raspberrypi/ctt/ctt_vc4.py b/utils/raspberrypi/ctt/ctt_vc4.py index 7154e110..dd0c5414 100755 --- a/utils/raspberrypi/ctt/ctt_vc4.py +++ b/utils/raspberrypi/ctt/ctt_vc4.py @@ -55,12 +55,16 @@ json_template = { }, "exposure_modes": { "normal": { - "shutter": [100, 10000, 30000, 60000, 120000], - "gain": [1.0, 2.0, 4.0, 6.0, 6.0] + "shutter": [100, 10000, 30000, 60000, 66666], + "gain": [1.0, 2.0, 4.0, 6.0, 8.0] }, "short": { - "shutter": [100, 5000, 10000, 20000, 120000], - "gain": [1.0, 2.0, 4.0, 6.0, 6.0] + "shutter": [100, 5000, 10000, 20000, 66666], + "gain": [1.0, 2.0, 4.0, 6.0, 8.0] + }, + "long": { + "shutter": [ 100, 10000, 30000, 60000, 120000 ], + "gain": [ 1.0, 2.0, 4.0, 6.0, 8.0 ] } }, "constraint_modes": { @@ -120,6 +124,9 @@ json_template = { "rpi.ccm": { }, "rpi.sharpen": { + "threshold": 0.75, + "limit": 0.5, + "strength": 1.0 } }