From patchwork Wed Jan 6 10:06:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 10830 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 01FBAC0F1A for ; Wed, 6 Jan 2021 10:07:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C41B3630BB; Wed, 6 Jan 2021 11:07:09 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="Ifprj2wl"; dkim-atps=neutral Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C26AD63171 for ; Wed, 6 Jan 2021 11:07:07 +0100 (CET) Received: by mail-wm1-x32a.google.com with SMTP id r4so2097590wmh.5 for ; Wed, 06 Jan 2021 02:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tMj0UTJ60+LDzdqUPQXeIffP0KNK6jMoKKx42l09ONw=; b=Ifprj2wlFa/AXaEfmAnUTIZtoyQdF7BBY9k4p9VKPeWTSjYTYIViuzYqhlO2wOjbwA f2I3Ro7bDJn636WWalMWE4iYk5uTAerUSlz1WUWdvvlOtuFP1ZcVNuRx0dxqbpDNxfYn W9nl2MhrDBziO+pWdbe32/u8HVktLFaJZ/MA1DG+PolAKoc4WllmuZy3Az7wUDrMHYN8 LZ3ke6YUHPQzSYRWgUZwaTyHJfOhm4e8TTFhrd+GZKh5l3kzMHGCgkP488nyLmUHnpoH Pdi+b/qkQh8+/4iV/fHvHgfIFWCJ+3GB5aau8TAJUXewR69IrOWvVwSQ1uQSVGTy83No VnXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tMj0UTJ60+LDzdqUPQXeIffP0KNK6jMoKKx42l09ONw=; b=dHTScYTQ62MKsDUFymWUb7P7QzcvmLXagIq2WKS81m6WGYPDH4lF1q3Mdp3bfbe64Y tfmpGkQBgRl27tP8d4OdcOlU4/kMviosUW0cmCpjxYg3uymspahxsAxpPWVQ45ZrO+7U yjJ86bzLJqwjVfvjb3MLLxQZ5XkrxKJ0vu9fx7otFTTWY75mnnI/xN9/2GpOnvRUM+ux DuHLeVW5l/ApO1KCVSC8cy4YqV9IVOtCRhn1K7IjKtfn/y1bfBlL3Qp3MvNWKmWUuI3J Tp1EqH4b/UVNEUCbdYK8x3lzbbySTzKtF5sUdhYSBqOto2F9Aw4gXnQ/3BKeOLdlBz4+ 5Hew== X-Gm-Message-State: AOAM532DCEAjqsYSlRkvY8QA9xQN7LXkmzr/ID30CAdyiqsyBO75CWyC VDFsWJ98x+BXTH5VdPB0Q54O5x9e2Xf15w== X-Google-Smtp-Source: ABdhPJwv+D3CqPA0IJEHx0wJVvNjwmvtoYlus1f62a7Gd8rh0UoQNWhiAEdYsoMZDs7dpiTlTzruug== X-Received: by 2002:a1c:770d:: with SMTP id t13mr3079987wmi.153.1609927627260; Wed, 06 Jan 2021 02:07:07 -0800 (PST) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id m21sm2382381wml.13.2021.01.06.02.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 02:07:06 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Wed, 6 Jan 2021 10:06:59 +0000 Message-Id: <20210106100659.8363-4-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210106100659.8363-1-naush@raspberrypi.com> References: <20210106100659.8363-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v11 3/3] ipa: raspberrypi: config: Update shutter speeds for imx219/477 and ov5647 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" Set the maximum shutter speed for the normal exposure profile to 66ms, allowing viewfinder framerates to go down to approx. 15fps. Set the maximum shutter speed for the sport exposure profile to 33ms, limiting the minimum framerate to approx. 30fps. Add a long exposure profile to allow shutter speeds of up to 120ms. Signed-off-by: Naushir Patuck Reviewed-by: David Plowman Tested-by: David Plowman Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/ipa/raspberrypi/data/imx219.json | 15 +++++++++++++-- src/ipa/raspberrypi/data/imx477.json | 15 +++++++++++++-- src/ipa/raspberrypi/data/ov5647.json | 15 +++++++++++++-- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/ipa/raspberrypi/data/imx219.json b/src/ipa/raspberrypi/data/imx219.json index 212f8b9a..1ec338be 100644 --- a/src/ipa/raspberrypi/data/imx219.json +++ b/src/ipa/raspberrypi/data/imx219.json @@ -133,7 +133,7 @@ { "shutter": [ - 100, 10000, 30000, 30000, 30000 + 100, 10000, 30000, 60000, 66666 ], "gain": [ @@ -144,7 +144,18 @@ { "shutter": [ - 100, 5000, 10000, 20000, 30000 + 100, 5000, 10000, 20000, 33333 + ], + "gain": + [ + 1.0, 2.0, 4.0, 6.0, 6.0 + ] + }, + "long": + { + "shutter": + [ + 100, 10000, 30000, 60000, 120000 ], "gain": [ diff --git a/src/ipa/raspberrypi/data/imx477.json b/src/ipa/raspberrypi/data/imx477.json index 12fe2f41..9bee3f16 100644 --- a/src/ipa/raspberrypi/data/imx477.json +++ b/src/ipa/raspberrypi/data/imx477.json @@ -133,7 +133,7 @@ { "shutter": [ - 100, 10000, 30000, 60000, 120000 + 100, 10000, 30000, 60000, 66666 ], "gain": [ @@ -144,7 +144,18 @@ { "shutter": [ - 100, 5000, 10000, 20000, 120000 + 100, 5000, 10000, 20000, 33333 + ], + "gain": + [ + 1.0, 2.0, 4.0, 6.0, 6.0 + ] + }, + "long": + { + "shutter": + [ + 100, 10000, 30000, 60000, 120000 ], "gain": [ diff --git a/src/ipa/raspberrypi/data/ov5647.json b/src/ipa/raspberrypi/data/ov5647.json index 3d8a7c8f..1a354f7c 100644 --- a/src/ipa/raspberrypi/data/ov5647.json +++ b/src/ipa/raspberrypi/data/ov5647.json @@ -133,7 +133,7 @@ { "shutter": [ - 100, 10000, 30000, 30000, 30000 + 100, 10000, 30000, 60000, 66666 ], "gain": [ @@ -144,7 +144,18 @@ { "shutter": [ - 100, 5000, 10000, 20000, 30000 + 100, 5000, 10000, 20000, 33333 + ], + "gain": + [ + 1.0, 2.0, 4.0, 6.0, 6.0 + ] + }, + "long": + { + "shutter": + [ + 100, 10000, 30000, 60000, 120000 ], "gain": [