From patchwork Thu Jun 6 10:15:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 20214 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 6F26DBD87C for ; Thu, 6 Jun 2024 10:15:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5174165457; Thu, 6 Jun 2024 12:15:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="AOfRFNjL"; dkim-atps=neutral Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 19341634CA for ; Thu, 6 Jun 2024 12:15:29 +0200 (CEST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a68f1017170so90266066b.0 for ; Thu, 06 Jun 2024 03:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1717668928; x=1718273728; 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=WNolmdsSZbaff/CUDeQR1mY0yuk7DZoxSHBzk0wDvUo=; b=AOfRFNjLMGtIPOCnAU+swvlpTN9+Fi9OU9x+lpP5MU8lNbNaQQaTaDOAe2we7JXIYd tfZD7aGwhZ7AfBT6EcVL6FiVPP9xDmD7Xnp97MVNpnY8KUYvAG/1NTyoIcK9MgixmFGH H2dDJMB1sQ4juSQBM5luaAk8YK8lWROObMbJgnX53pmd8QMF6iURzV//9qxLiFv1btWH Z2pwnNp+aQU7t6ev/Ch1dcdgCcHt2OXRCdrjMQs9CXXqGGqMgJsv3WpC/czy/l4Lsdth hRJYxWo8B6AYJdb7auYkz4zzig8tr+gYmG1oysN5g6WtZlZ6sOob9CGwnJtJKTyKIPA1 094Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717668928; x=1718273728; 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=WNolmdsSZbaff/CUDeQR1mY0yuk7DZoxSHBzk0wDvUo=; b=KtraXI31mGQvNhGSt/1MVwMBtZ++EOhzfUslLUKhir2SwcpcH8Wz5489W0EgYgIOSe 1r48a/fPm/mYITBXJtsAFKfivNCT02xzPIJZYCQFNhSajhKFVtE6x9VDv7ZqFz2owxdD JSh8+sQPcteich2R49QBTsSSkSph2iFM+x7jVyaFPgHYXnVm1dC5V8iqjmeZ4MnRcZTt dFnMFXltgkf4biVGb5ak2tj06CWTtdLhfCJFT5YhCJtnbjmb5FnndC3nNt9qKKb0CUY7 ojXsPThJCzmI1ghvdAj9QMdC39Ei2Ks/Nt2rFUZhp6WyCu4bFmvsFclipKdfLS/OZugm v24A== X-Gm-Message-State: AOJu0YwaP4pgfk3MvCuvSy2q1ZoFXKlSbWPK7rOtKJ0oRq3L7IdH6mwx uKOXqbn4CagbGZm6gYCmVc3qCa2TvGbLGaXuIQu68ESSeD4nfUlzqfsggjwyHjiVamCkX02TYJ2 5 X-Google-Smtp-Source: AGHT+IExG6ZgOTm4HohOogIKl8eqYvZU48vrTZ7F5dZwPVRKLI++CemOwU3qOpreHw9dVcnFr2LH0g== X-Received: by 2002:a17:906:d111:b0:a69:67e3:57f6 with SMTP id a640c23a62f3a-a699f34c06amr338886866b.5.1717668927870; Thu, 06 Jun 2024 03:15:27 -0700 (PDT) Received: from pi5-davidp.pitowers.org ([2001:4d4e:300:1f:c732:5d0a:406b:ae46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c805c59a2sm75809866b.50.2024.06.06.03.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:15:27 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Cc: David Plowman Subject: [PATCH 0/6] Raspberry Pi Camera Tuning Tool updates Date: Thu, 6 Jun 2024 11:15:06 +0100 Message-Id: <20240606101512.375178-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.39.2 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 everyone These 6 patches are a bunch of updates for the Raspberry Pi Camera Tuning Tool (CTT). Mostly they are adding support for the PiSP platform (Pi 5) and probably don't interest too many people. We could choose to apply all these patches now as they don't affect anything in libcamera itself, nor the ability to produce vc4 (Pi 4 or earlier) camera tunings, and then there would be less to apply later. Otherwise we would wait until all the Pi 5 stuff is in, and then we could add these. I note that they don't pass checkstyle - in fact vast swathes of the tuning tool don't. I think that may be a job to tackle separately. Thanks! David Ben Benson (2): utils: raspberrypi: ctt: Added CAC support to the CTT utils: raspberrypi: ctt: Changed CTT handling of VC4 and PiSP David Plowman (3): utils: raspberrypi: ctt: Adapt tuning tool for both VC4 and PiSP utils: raspberrypi: ctt: Update tuning tool for HDR utils: raspberrypi: ctt: Add a maximum gain parameter for LSC Naushir Patuck (1): utils: raspberrypi: ctt: Add option to convert between vc4/pisp targets utils/raspberrypi/ctt/alsc_only.py | 18 +- utils/raspberrypi/ctt/cac_only.py | 142 +++ utils/raspberrypi/ctt/convert_tuning.py | 98 ++- utils/raspberrypi/ctt/ctt.py | 253 +++--- utils/raspberrypi/ctt/ctt_alsc.py | 81 +- utils/raspberrypi/ctt/ctt_awb.py | 11 +- utils/raspberrypi/ctt/ctt_cac.py | 228 +++++ utils/raspberrypi/ctt/ctt_ccm.py | 6 +- utils/raspberrypi/ctt/ctt_config_example.json | 5 +- utils/raspberrypi/ctt/ctt_dots_locator.py | 118 +++ utils/raspberrypi/ctt/ctt_image_load.py | 1 + utils/raspberrypi/ctt/ctt_pisp.py | 805 ++++++++++++++++++ .../raspberrypi/ctt/ctt_pretty_print_json.py | 22 +- utils/raspberrypi/ctt/ctt_tools.py | 3 +- utils/raspberrypi/ctt/ctt_vc4.py | 126 +++ 15 files changed, 1704 insertions(+), 213 deletions(-) create mode 100644 utils/raspberrypi/ctt/cac_only.py create mode 100644 utils/raspberrypi/ctt/ctt_cac.py create mode 100644 utils/raspberrypi/ctt/ctt_dots_locator.py create mode 100755 utils/raspberrypi/ctt/ctt_pisp.py create mode 100755 utils/raspberrypi/ctt/ctt_vc4.py Tested-by: Naushir Patuck Reviewed-by: Naushir Patuck Acked-by: Kieran Bingham Signed-off-by: David Plowman