From patchwork Tue Oct 27 14:12:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 10267 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 2AE02BDB1E for ; Tue, 27 Oct 2020 14:12:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DB692620BE; Tue, 27 Oct 2020 15:12:55 +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="NW5wqnlL"; dkim-atps=neutral Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3599F62034 for ; Tue, 27 Oct 2020 15:12:53 +0100 (CET) Received: by mail-wr1-x442.google.com with SMTP id y12so2084391wrp.6 for ; Tue, 27 Oct 2020 07:12:53 -0700 (PDT) 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=DoSxPkvwtjyKHiSql3OGAHick4p2IIwPpboTvl/xkpg=; b=NW5wqnlLkb/QPcquVmfTKIi7JWlwdDimBIsdVgGh/SSO0OesxNicHQXXb5Wlh6TIsn ZryxZb6p4bDgmPmpZfItVoA8BRm0WD4j8JlcKQYC7V6YcuHMr76KrhhMoSoJxWZi9Tqd 3u/WXDEFI7ZaL6t9o3eIcbhRtYYquXCZl7MahGlbtMUpwbPnJ3BHvb0MxUS8zWXn23uC Jsc0wvLMI62QVKOHZCaILUv+UsPQNCISl8+30lVgzmAjmETzMDGB/7Ya0Wzs07HnFiZj iKHTiZDg1VbCRiOH0fNApK8UcAISikpAqURcEbWuOBh+UFYhJ+7BLFPlb15iVc0v9kfh w7og== 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=DoSxPkvwtjyKHiSql3OGAHick4p2IIwPpboTvl/xkpg=; b=t5XaIZc5MjcBHwSkXAn2z834tmxZRmaeYXJ2xh7ds/0j/wNmODWMJ72bjBbISlwy75 WOUSW5HUGyYORH1YgIx1ZY46wQkMZ7qfjTLW5Qo6dLWDXsoiYQgF/tImISu3VpR/lmMh 1tR8kcSKc+8yhqNNnWVez0SsZrSteOk3EAg4GFH+jpfVrchn3LX8J1wkbXYIgPkYaKdh AlzsTW+VZqwxk5t8Xy89CsB/H/IZyEi3TCYMXMSu0OMk84VEFJjoXS5MvmEKKMaYz7hI F3u1ljo2BEixqgxJB0nYb/FO9pSkqhl5wu7bjqpgjwG7zcDR5mqZCeAytJl0p0xEh7vF zOmw== X-Gm-Message-State: AOAM533SpTKNKyQ2eLkQAmWELiVNwDJpG4Q9g+EVcGBkdILNi7Bk0Iqs 4Af4DnfS8YIsnJ/qiqRjjofu6F0nsnsYZw== X-Google-Smtp-Source: ABdhPJw1zvjDGSrLLQ6zLVDML4UKXV6kT0CIqHve33tLKHU7eX4HzZVBmhnmvpYcmV1K7pTVvqkyng== X-Received: by 2002:a5d:4cd1:: with SMTP id c17mr3167155wrt.109.1603807972634; Tue, 27 Oct 2020 07:12:52 -0700 (PDT) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:1ce1:9965:4328:89c4]) by smtp.gmail.com with ESMTPSA id w1sm2083186wrp.95.2020.10.27.07.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 07:12:51 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Oct 2020 14:12:46 +0000 Message-Id: <20201027141246.4708-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201027141246.4708-1-david.plowman@raspberrypi.com> References: <20201027141246.4708-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/1] libcamera: controls: Add DigitalGain control 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 control reports the global digital gain applied by the pipeline as a whole, after capturing a raw image from the sensor. Signed-off-by: David Plowman Reviewed-by: Kieran Bingham --- src/libcamera/control_ids.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index c8874fa9..e6362c74 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -530,4 +530,15 @@ controls: This control is only present when the pipeline supports scaling. Its maximum valid value is given by the properties::ScalerCropMaximum property, and the two can be used to implement digital zoom. + + - DigitalGain: + type: float + description: | + Global digital gain value applied to the image during all the + processing steps after capturing the image from the sensor. Any raw + images, therefore, will not include this gain, but the final images + output by the imaging pipeline as a whole will include it. + + This control is intended to report the value used by the image + processing pipeline. ...