From patchwork Thu Apr 21 15:11:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 15698 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 88BB2C3260 for ; Thu, 21 Apr 2022 15:11:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4987B65647; Thu, 21 Apr 2022 17:11:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1650553887; bh=/srzPELWhNOwQikox14BL88h8/TLnOjVs/takO03HQw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OGf2w9qTsmXPofD+bMTMfmCavCrGDtSBuoFkmsMK2VNJSlOLsXTjcqBIwyGK4fa/I iqhwFg76NlSi2fFHvgI3dRGc3qG60/1EyNy3EiVqP1NjqC5Mw4LAvUNxfEImluXDU6 ceARELBNxD3+YY5O6S+Z3UGIA9QQO50d+jc4y1xNW1Rwg2XWEpXu3fe1Z6jQzqhOkd ExPUTYvGDLAQ0X1s4PcSe1L+NSrRz064P+lXSGtZl1TtTDFkZKypTAdsXL4LiDjXOm 3B0RLUxMWTg2nfLujUSxSx9f6CsKQNUwCK4BhApGrvZCm10ZwGKn1GkDBS1YWkLqSp QVDfz3DV0juiw== Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C2D3665641 for ; Thu, 21 Apr 2022 17:11:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="jYPLMRY5"; dkim-atps=neutral Received: by mail-wr1-x431.google.com with SMTP id bv16so7105491wrb.9 for ; Thu, 21 Apr 2022 08:11:24 -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=zIfYpFNk3DA5BdEjHx98vV37+ytEtgwFyTClAn2at/M=; b=jYPLMRY5J74L3ipW/cgdB+HpvSmvLZEXK3IqrViu39gtp4TkTSTrLwdgugTGU4y3B8 Gpg7pOfiOtabipQ5ovE7ODNxj+NDtI/yPdA2tb+YNYXQqPvpLyWsY3P/rPTrrEs8gkGw N0d2guBrzgQSYgNmFsSmeFiKLBImata7LTWDch423H1mNXjNNcDVkI4j2o9tbTACRc1j qh2Z6fuDBWWPNaOSg0IPYcLKJESxxsT4oqTqi7kfmM0xsXl4wsw1JufbC/wR4e1qYxue U3228c7cJKerWhccKENa4gBn8AcIw9Wympc5fpnh1dCRK0qr19XnPHC6BAn/UnOoRqAW JO2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zIfYpFNk3DA5BdEjHx98vV37+ytEtgwFyTClAn2at/M=; b=BtYosTRLSfjCdZh6k/vvMbsfSy9HcXOfG565z5nSPzwLuR2rOBAR0lvqwRMEmUYjW9 SEuYGZD2ApkkRIKRh1xklssFgVKjOQyi7S3+QqIxm3JC9jQt7hFgKjtNBgAP4KFlvaQr LIwFdtcB18HiLjEIlWK1Hn1/QpWfCl8m9snCBlq/18IuaCSDDbYYiwNMGZ46agMnaw/n dDa54g6Rkn39Jqu6mZKDqRXhwsd9NVXr0VpO/DvZsCjQSsnrJBtweC1VuRDi1IDVLaP3 fAVFxDEtPToU9+7ZZFDLxAVS8T1vf2Dq5Xd//7IUj7j4R5kS/PehOrtlreyMmLadEjit mnYQ== X-Gm-Message-State: AOAM532iieuG7iEbantyp5VO/2twnrDNujvJb13juRqDU0rQUXf5pnj5 uJsgiqgfLQZqNS8t9EVA4p4//IqlLYd8ng== X-Google-Smtp-Source: ABdhPJxHj1Les6XrzxUoDZ4wj/5NY/xSLOoQ1qY+yVYJpDUM4nrClk/7D6ogDtAKssV7eZsIGIxX9w== X-Received: by 2002:adf:e194:0:b0:207:b4c9:31c6 with SMTP id az20-20020adfe194000000b00207b4c931c6mr181723wrb.102.1650553884289; Thu, 21 Apr 2022 08:11:24 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:6bd1:8370:773e:357e]) by smtp.gmail.com with ESMTPSA id k63-20020a1ca142000000b0038ff2c38e85sm2267683wme.39.2022.04.21.08.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 08:11:23 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 21 Apr 2022 16:11:16 +0100 Message-Id: <20220421151117.703956-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220421151117.703956-1-naush@raspberrypi.com> References: <20220421151117.703956-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 1/2] libcamera: Add a SensorSensitivity property 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: , X-Patchwork-Original-From: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The SensorSensitivity property is a scaling factor that describes how sensitive the selected sensor mode is compared to other readout modes of the same sensor. For example, a binned mode might have twice the sensitivity of the full resolution mode, meaning you would get double the signal level for the same exposure and gains. Signed-off-by: David Plowman Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham --- src/libcamera/property_ids.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index 12ecbce5eed4..11b7ebdc3105 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -678,6 +678,18 @@ controls: \todo Turn this property into a "maximum control value" for the ScalerCrop control once "dynamic" controls have been implemented. + - SensorSensitivity: + type: float + description: | + The relative sensitivity of the chosen sensor mode. + + Some sensors have readout modes with different sensitivities. For example, + a binned camera mode might, with the same exposure and gains, produce + twice the signal level of the full resolution readout. This would be + signalled by the binned mode, when it is chosen, indicating a value here + that is twice that of the full resolution mode. This value will be valid + after the configure method has returned successfully. + # ---------------------------------------------------------------------------- # Draft properties section