From patchwork Fri Jun 24 07:35:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 16363 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 8D244BD808 for ; Fri, 24 Jun 2022 07:35:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0B4566563A; Fri, 24 Jun 2022 09:35:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656056134; bh=oC1T9Bzvpbqx6SM/dzRwJZwUrQNjZdB+6cC84dChtKc=; 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=t9L+6Kt++7jJWl2abX1ikV2/BSyL4Cku19s0g2ZPhQdfmlRBSVe5Fy8zsw+mjJ5AP w9Xhr2aWubX+KQ6hmeIqcisVjQmgP5vn08ZvdP22SNWHaqvUw6Ska96D4RXtvtVFDd CJih06U2pATTMTQvnt9c7VSlkj2rcuXTuhcL+fmau1IUMI50dgk4+oM0SEP2+0BH98 rAd4o6mn5dSD/tgH/0OjEycvhcUp5hAhppcPksAXU+5e4Grg1R9imJgr5KJz+yEVxv EG2IOnx6lrh66ksRsYKDorPMhV/0tLzcEu5EqpOcDG7nea/OjeBEjNFmUUSzB10MtM a0N7dMc3YHU2Q== Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 915F565633 for ; Fri, 24 Jun 2022 09:35:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="iS9iEIt4"; dkim-atps=neutral Received: by mail-wr1-x42c.google.com with SMTP id e7so1899485wrc.13 for ; Fri, 24 Jun 2022 00:35:31 -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=TlD5JbWM88aNCrfmfL0dUsbi9Rk7oEjslHnb/ehI1TE=; b=iS9iEIt4FZ7N9kIW+WLgJmytNEuXHU3kXjyZZLt7AqDa9OcUclzibBjJ31dQHVQmsB q8mz9NyyuvooICDHzTQOx8urQFXGw8zfH2qCbiUGvUHvOll9rnBtfYcllWP8VlnpKeNJ XTv2mcc30sdSMaOBqKz4mLesKFiV3aDuNZJcVWAEBfTPUonEtBPFGx+VsHfE23OVLQX5 mnLwWM4r9mpHSumDvOcleGY15+5v1cC5AQV/HwUZxBjhgZY8lYft/5MTmKhWiTTH68xr sehWTuYm0Kbwjps0u2ToFpOAdRkcx2VgL+ALiRkYcU6jZIM8Nh1vIWzBvNf0XnWG7Wh1 u++w== 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=TlD5JbWM88aNCrfmfL0dUsbi9Rk7oEjslHnb/ehI1TE=; b=SlFsM/fhcl0ilFlCQzFwrY9k/YYjVUc2BMYmTKYkARGIAtRmsRKnOXLqm7cWyDctAd Ii1v06RE0V2n/98G7lH0750otVPZ4t+acBpUHu2BeiQcv2DQGa+KcC4iGDYQuMJUOhFq FlnuoKATm9LRLrDa9ARTqeSvht/TAZf1D09dmXEHdmsd10hMpbdZXW+xk09OwQZptqPM 6fq42Ig4EVxAaykPGMuVayIz51rVMfL9Vs1OjWahHQwdjzFSzwjAZFa4lo4Is8UumErw nbutEMhyPDVbrYiiTHMT2o2XrLkMm6sBOoVwcvF9dmpk1JOdIDIdEMMx2ks624MTIsXZ m9NQ== X-Gm-Message-State: AJIora/Xj1Omh5lH+dxStPNntRVj89W3fNfGTj3su6DoD6CTSAURxQfa DRVkg43VfTQ0Mvro1WT1WlP3Pn4O9qV0jAxb X-Google-Smtp-Source: AGRyM1uZ64mMEPzeXb3wa46SWUb6DALXH0wVz0TNXtLHVamZDdMg411+GYadDseVwHVaUtcPrOThKA== X-Received: by 2002:adf:fb10:0:b0:207:af88:1eb9 with SMTP id c16-20020adffb10000000b00207af881eb9mr12222935wrr.238.1656056131051; Fri, 24 Jun 2022 00:35:31 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id f13-20020a05600c154d00b0039ee391a024sm6695195wmg.14.2022.06.24.00.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 00:35:30 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jun 2022 08:35:25 +0100 Message-Id: <20220624073528.26670-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220624073528.26670-1-naush@raspberrypi.com> References: <20220624073528.26670-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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: |