{"id":16422,"url":"https://patchwork.libcamera.org/api/1.1/patches/16422/?format=json","web_url":"https://patchwork.libcamera.org/patch/16422/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220629085722.11786-2-naush@raspberrypi.com>","date":"2022-06-29T08:57:19","name":"[libcamera-devel,v4,1/4] libcamera: controls: Add SensorTemperature control","commit_ref":"71fb6549183d1bd91289eb1e40fcbf69c74ce91d","pull_url":null,"state":"accepted","archived":false,"hash":"e4833c72e3c36ea8a2d006dbc0d7048cd4d76279","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/16422/mbox/","series":[{"id":3231,"url":"https://patchwork.libcamera.org/api/1.1/series/3231/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3231","date":"2022-06-29T08:57:18","name":"Add SensorTemperature control","version":4,"mbox":"https://patchwork.libcamera.org/series/3231/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/16422/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/16422/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 3BBBABD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 29 Jun 2022 08:57:31 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E962165637;\n\tWed, 29 Jun 2022 10:57:30 +0200 (CEST)","from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com\n\t[IPv6:2a00:1450:4864:20::42d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2870265631\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 Jun 2022 10:57:28 +0200 (CEST)","by mail-wr1-x42d.google.com with SMTP id i25so15854515wrc.13\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 Jun 2022 01:57:28 -0700 (PDT)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tf15-20020a05600c154f00b003a032c88877sm2897102wmg.15.2022.06.29.01.57.26\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 29 Jun 2022 01:57:27 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1656493051;\n\tbh=4plsZXo/pmMr32F305UKHNcVgdrmVM0bgCQIh+RE8CE=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=JIivAxaHvXWx79uxGT94fNQVee5JLnKcZ8KE/LyVhiiYpsRBhugdHU2r7e8gxtqwH\n\tOTTjGjtWGUQQDhtfQ3Uwy0hoJlWTh5o9SUwqQfcrr4Iovysvs0yfRCL/eLdxgvZO7m\n\tNpal9IptQepytR7UMXTv4ubWGjcKkGHpsINCXRqzjFgMCUJct9zjI/GnMUumHkDFMW\n\trdEN7ks9aUrCMEfTyLXCXwxg/PU1kPJGsgLHtJnGCeqhCO+82o1J7HuRuowPbfqMJ/\n\tPpVQCNdpYdNvSMabd3wTe/OXG9KU7p2hvADPVwa0lBD15k9jIN7vHYqS4v7i9q4fuw\n\tlIrjRJMYEuVfQ==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=60OOKIxJ9DCLBi3uWCPxOf3+BLNe7KbcuO/nm8UtQw0=;\n\tb=E9GVgGXG7H2ZX8oEhj7nPEs0npOEr+XaYCOkuJFOvXVKmt3Y9raWv6M7yiFs8x02GJ\n\tOd0+RZRZtydnVgd302ofM3liLTcU37mAV16Co3Li1zVFNaFB6tt41dYsmX63suaNnzUy\n\t/B9UxGqF/lsH8sDkYX3+evaLz8gEDTQ54IbYk/cVte8zTLn49giywhGzwe8cReg7Hrf+\n\t1CaFw4z73jmE3hHx9xaBySqFG3VucNtkFdKIyewGliBTdS6UOWLnnUMuKm0mTGdcPHRU\n\tCmCdheiGYVOkUUhP7T6W6025SV873xucOOvgDyFF2NXZhdqac3fyOPZNRwCNAqlqwPY8\n\tzKWw=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"E9GVgGXG\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=60OOKIxJ9DCLBi3uWCPxOf3+BLNe7KbcuO/nm8UtQw0=;\n\tb=Rr+xQ+RIaVsMDFJV/sIZoyxgRq3l9TMmLBFVChQrkTfJ/DE2HSeFm91tZeZ/7HwMMR\n\t5u9yjbzATyOpGZXcFnS9RzShm+Hl67XHVXYXVEfxPC4nlY29zpqYJoGSSrgvfOWOoeD8\n\tPdcga5s1Ea4awmuT27VTF7N0TtEBo1urdBb7ec+i+hgb5iQBD2C3iSrs9Ca4sVv30OZ6\n\tdV1Lj1GYLvm4u9UP2QeJQzONEaerIRBwCeHNPqj4yU8EDfH3JediruZDn9K/5b+V52XL\n\tg9P9pf8dC4NKRZfnRFOOlOREjt0vZXK85+kqjQXInm1/1mN9mcxd/sRUpih2Nw05EamG\n\t/fyA==","X-Gm-Message-State":"AJIora8MavVHtr1zvrRKvroM1llR0hV6Rl+bKGELnnmaly9JWTCn6Qb0\n\trIWcbe373O2Qhzl8pi4LrXZAqX+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\n\tc6-20020adffb46000000b002102316dd02mr1977511wrs.557.1656493047552; \n\tWed, 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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 1/4] libcamera: controls: Add\n\tSensorTemperature control","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add a SensorTemperature control to return the temperature of the camera sensor\nin Celsius. This control will only be present in the Request metadata if a\nthermal sensor is available to the camera sensor.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/libcamera/control_ids.yaml | 10 ++++++++++\n 1 file changed, 10 insertions(+)","diff":"diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml\nindex cd1d4512bf2e..ecab3ae97260 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -367,6 +367,16 @@ controls:\n \n       size: [2]\n \n+  - SensorTemperature:\n+      type: float\n+      description: |\n+        Temperature measure from the camera sensor in Celsius. This is typically\n+        obtained by a thermal sensor present on-die or in the camera module. The\n+        range of reported temperatures is device dependent.\n+\n+        The SensorTemperature control will only be returned in metadata if a\n+        themal sensor is present.\n+\n   - SensorTimestamp:\n       type: int64_t\n       description: |\n","prefixes":["libcamera-devel","v4","1/4"]}