From patchwork Thu Jun 23 14:44:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 16335 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 9FDFBBE173 for ; Thu, 23 Jun 2022 14:44:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 15F466563D; Thu, 23 Jun 2022 16:44:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655995468; bh=2g8qfZ/BzIF6vOv5vlNCQq8m7DZEPOZH02d8b4AMRqM=; 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=rS/3arwTfRJOTjMN7Oo5elslkZ0+90cLd497R0X3ixymeaOJCkY5IiRqV4DtfWneG D4m6BT0/oe9HxJV2/0ntn2Zm77wlWEvCckm1WEUWKVJldNc/JkNv9ryE3b5KKhg8e4 GEZqBJIa5cwOGSvspXrEOHodLKveDihZ7CMv1gwucvbdHmQnV18Q/RBgR31BqTubkd YksTeu8b5EcLHpSzLHxe87CnRd1dnXJ45ZYUiQga34T5oQL4QN2dJ4GRRsL/avPfVA yMZM5oym1ROQX0jjvrW/Wxpchwa2G7SkB6ZGli0h6/ydKtDqsJBs+OZT43G7lxG2x/ lHgz15aQPmx6A== Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B3FDC6048F for ; Thu, 23 Jun 2022 16:44:25 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="RSXgyp54"; dkim-atps=neutral Received: by mail-wr1-x42e.google.com with SMTP id i10so24523542wrc.0 for ; Thu, 23 Jun 2022 07:44:25 -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=HIaOx4I+brmBYzrNODHpznjH6x8JPYnEK2PGNcsYeKM=; b=RSXgyp54qNv2iJ4n99VcCMe4DNZQakKixLzfAgVJLV82Lz4tkVsSfbNvB3vQec/pzt RwMNLX5TDb/Dq1IwEw5OpvLDhnaCl3PhpuJ/otsrWgr2MGJA88HeSU8z+lPsdlobj4Lb Tl4JzpGi9zeucY5IkwJPDi/LASOoKudPI17OodTlU+4tmSMoJMmNVDwZ27EYLdAlcOrp aKe+VKJ1IoZKw7/bHJAoRN8LtRGSoJ2A7xaTD5f2yXNsgguwLb+/KEonTfYYQLk7ln/J Sf63iU1SL4O2K0fFIKxjRZ+oRRyTLbWM4bXUE4HhFLIN9NkHyflE1TQihDXHcVlfgBW5 CLcg== 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=HIaOx4I+brmBYzrNODHpznjH6x8JPYnEK2PGNcsYeKM=; b=IMes326pwlnqUuIn6WoLN/kS+JgKzf3179sELnNpq8LgvF/+kHmWBUX6BrdGNTH50Q D4+4jBDLZcU7ySadRjBWnfbAnvBX5nU6ld0ujWX/AQssARiAXHuLmNdMrCWIOicEY2Nu XKACwkCNE5kE8fSy7QSF4/UZspJa/31yh+Ac9VSAUntQ/koIXA1ulSnwsqM7u6BxXXJV NgIwKQC2YRr03+X53gsuHGJI5VM6Cwq99rgo2ZsFdfgAe31Bp3NP+7POj0a950P6CNKu qin15I7QaCrzmN4DBblx8wme4P5rhXIrxA1Q+jX7VF18TTmKf5gh5QQ5w0CxevtIsuNm 7/CA== X-Gm-Message-State: AJIora/WQLABslvmaoueiYGtJCPWYnqNlD/JvQ9SMxyQfUioz2o0d3DU gEdXU/v0lS2bNsySqyYU03P+ZG4+oTvYZniX X-Google-Smtp-Source: AGRyM1terWBCEQcu/U5wgXtogkrEUWi8ImWNWhBPNQckGDHVPmePkLddFydMuQ/NGvDvViDkpXvnsA== X-Received: by 2002:a05:6000:1f82:b0:21b:9241:a65b with SMTP id bw2-20020a0560001f8200b0021b9241a65bmr9034740wrb.42.1655995465271; Thu, 23 Jun 2022 07:44:25 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id v21-20020a05600c15d500b0039c96b97359sm3178578wmf.37.2022.06.23.07.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 07:44:24 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 23 Jun 2022 15:44:08 +0100 Message-Id: <20220623144410.20725-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220623144410.20725-1-naush@raspberrypi.com> References: <20220623144410.20725-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] 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 --- 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: |