From patchwork Wed Jun 29 08:57:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 16422 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 3BBBABD808 for ; Wed, 29 Jun 2022 08:57:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E962165637; Wed, 29 Jun 2022 10:57:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656493051; bh=4plsZXo/pmMr32F305UKHNcVgdrmVM0bgCQIh+RE8CE=; 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=JIivAxaHvXWx79uxGT94fNQVee5JLnKcZ8KE/LyVhiiYpsRBhugdHU2r7e8gxtqwH OTTjGjtWGUQQDhtfQ3Uwy0hoJlWTh5o9SUwqQfcrr4Iovysvs0yfRCL/eLdxgvZO7m Npal9IptQepytR7UMXTv4ubWGjcKkGHpsINCXRqzjFgMCUJct9zjI/GnMUumHkDFMW rdEN7ks9aUrCMEfTyLXCXwxg/PU1kPJGsgLHtJnGCeqhCO+82o1J7HuRuowPbfqMJ/ PpVQCNdpYdNvSMabd3wTe/OXG9KU7p2hvADPVwa0lBD15k9jIN7vHYqS4v7i9q4fuw lIrjRJMYEuVfQ== Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2870265631 for ; Wed, 29 Jun 2022 10:57:28 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="E9GVgGXG"; dkim-atps=neutral Received: by mail-wr1-x42d.google.com with SMTP id i25so15854515wrc.13 for ; Wed, 29 Jun 2022 01:57:28 -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=60OOKIxJ9DCLBi3uWCPxOf3+BLNe7KbcuO/nm8UtQw0=; b=E9GVgGXG7H2ZX8oEhj7nPEs0npOEr+XaYCOkuJFOvXVKmt3Y9raWv6M7yiFs8x02GJ Od0+RZRZtydnVgd302ofM3liLTcU37mAV16Co3Li1zVFNaFB6tt41dYsmX63suaNnzUy /B9UxGqF/lsH8sDkYX3+evaLz8gEDTQ54IbYk/cVte8zTLn49giywhGzwe8cReg7Hrf+ 1CaFw4z73jmE3hHx9xaBySqFG3VucNtkFdKIyewGliBTdS6UOWLnnUMuKm0mTGdcPHRU CmCdheiGYVOkUUhP7T6W6025SV873xucOOvgDyFF2NXZhdqac3fyOPZNRwCNAqlqwPY8 zKWw== 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=60OOKIxJ9DCLBi3uWCPxOf3+BLNe7KbcuO/nm8UtQw0=; b=Rr+xQ+RIaVsMDFJV/sIZoyxgRq3l9TMmLBFVChQrkTfJ/DE2HSeFm91tZeZ/7HwMMR 5u9yjbzATyOpGZXcFnS9RzShm+Hl67XHVXYXVEfxPC4nlY29zpqYJoGSSrgvfOWOoeD8 Pdcga5s1Ea4awmuT27VTF7N0TtEBo1urdBb7ec+i+hgb5iQBD2C3iSrs9Ca4sVv30OZ6 dV1Lj1GYLvm4u9UP2QeJQzONEaerIRBwCeHNPqj4yU8EDfH3JediruZDn9K/5b+V52XL g9P9pf8dC4NKRZfnRFOOlOREjt0vZXK85+kqjQXInm1/1mN9mcxd/sRUpih2Nw05EamG /fyA== X-Gm-Message-State: AJIora8MavVHtr1zvrRKvroM1llR0hV6Rl+bKGELnnmaly9JWTCn6Qb0 rIWcbe373O2Qhzl8pi4LrXZAqX+3kNtRiGLO X-Google-Smtp-Source: AGRyM1tqVRNL/CeWLLtcY7jIYCs/F+sp35DfInWzA7UgCWmrGy5sXNyTVRVejs/SsrDD/LRo+cDIpA== X-Received: by 2002:adf:fb46:0:b0:210:2316:dd02 with SMTP id c6-20020adffb46000000b002102316dd02mr1977511wrs.557.1656493047552; Wed, 29 Jun 2022 01:57:27 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id f15-20020a05600c154f00b003a032c88877sm2897102wmg.15.2022.06.29.01.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 01:57:27 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 29 Jun 2022 09:57:19 +0100 Message-Id: <20220629085722.11786-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220629085722.11786-1-naush@raspberrypi.com> References: <20220629085722.11786-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 1/4] libcamera: controls: Add SensorTemperature 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: , 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" Add a SensorTemperature control to return the temperature of the camera sensor in Celsius. This control will only be present in the Request metadata if a thermal sensor is available to the camera sensor. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham Reviewed-by: David Plowman --- src/libcamera/control_ids.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index cd1d4512bf2e..ecab3ae97260 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -367,6 +367,16 @@ controls: size: [2] + - SensorTemperature: + type: float + description: | + Temperature measure from the camera sensor in Celsius. This is typically + obtained by a thermal sensor present on-die or in the camera module. The + range of reported temperatures is device dependent. + + The SensorTemperature control will only be returned in metadata if a + themal sensor is present. + - SensorTimestamp: type: int64_t description: |