From patchwork Mon Mar 9 12:33:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 3064 Return-Path: Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F18C162972 for ; Mon, 9 Mar 2020 13:35:37 +0100 (CET) Received: by mail-wm1-x341.google.com with SMTP id a5so9703188wmb.0 for ; Mon, 09 Mar 2020 05:35:37 -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; bh=yvDxK6RXexs/MMyq7bDDxHmdebvgZ3DHs6A8GssZCWY=; b=NcfxY2yKCAYaJvfx/YpdLXxuS/BCAYPSzfOxlvmLDUJwtyc+kfv8KgljN2cdgDIjrq YE04Ac83s/0RomM3t9e8p4oRTCU/nWIygCpS1rOquMk7wQJb4h9PyUhUz/3hfXaEYFDS g2n2ctsH6g3hBIg5AYp6mBIlJicYt4tw1uOrjWEZuXIYPvlCnSB2OLTeOCvlMPm8Fim9 QrGdoR9UFGjYv9HQh0SHDILFjDX9LlSUDS8i1+R4DSsedvJ08vPs5qLyxvl5db2aQub5 cES6Upc92pzzie7zs+qoMn2IRo+gVSHc5uoPhnKG/sJAKIOBd05uT41WSsqHAfLT9PDH pf2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yvDxK6RXexs/MMyq7bDDxHmdebvgZ3DHs6A8GssZCWY=; b=nlTKwOHc3BnwkotskgvXCf8wfDw8uRIvk/QKwxLzOlv/JwAg1mXApk/RJq8QKUycHz 0F4plXkKTERomtNgivqtGTXzePmkTUmz9xLceR/H/R2Ht8WkY65o/YbjlUkBTyHDrjez vQC7QDWpbMhlTST/KHtzl6jn+3A57KpZZAk6wPhUv05go5gR8dnXKsJEWHio5mMUGdaK 4QTdDO6FVI9Q3TOL2iX0J5HWz0EZmLRpmP71aBWWH1KNHzACA1qJchBssu20FLAZt5Gf B1XqHgYQcDr7n4jhmhWNTeCKNLN9Ao+glxjSTqF8RVA4/8p8UGbGQyKVi+x2+z8Hzw5Y DYdQ== X-Gm-Message-State: ANhLgQ3z2SzvPuGbFZhC2XpXO1tDIlbB8ZXDiZIwu6rkS2Emv4x4C/G0 gnwHdTDjb9F4a50IEE2uuxrNy8jcaUGHQg== X-Google-Smtp-Source: ADFU+vv16D9uyiOt12VYfYZ7ksBsUDmwzPOiXQYAEfrIF37UqHZHo0p0InuqHLT2+2V9dFUvw4tXXQ== X-Received: by 2002:a1c:59c6:: with SMTP id n189mr19732043wmb.178.1583757337461; Mon, 09 Mar 2020 05:35:37 -0700 (PDT) Received: from naushir-VirtualBox.pitowers.org (cust51-dsl50.idnet.net. [212.69.50.51]) by smtp.gmail.com with ESMTPSA id z135sm25693827wmc.20.2020.03.09.05.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 05:35:36 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 9 Mar 2020 12:33:19 +0000 Message-Id: <20200309123319.630-7-naush@raspberrypi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200309123319.630-1-naush@raspberrypi.com> References: <20200309123319.630-1-naush@raspberrypi.com> Subject: [libcamera-devel] [PATCH v2 6/6] libcamera: controls: Add controls to report back frame metadata 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-List-Received-Date: Mon, 09 Mar 2020 12:35:38 -0000 Add controls to report the current frame's exposure and gain, and an estimate of the current lux level from the AE algorithm. Add controls to report the red and blue colour gains, and an estimate of the colour temperature from the AWB algorithm. Signed-off-by: Naushir Patuck --- src/libcamera/control_ids.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 3d1b058f..ee93975e 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -138,6 +138,22 @@ controls: \sa ManualExposure + - CurrentExposure: + type: int32_t + description: Report the exposure time in micro-seconds of this frame. + + \sa CurrentAnalogueGain + + - CurrentAnalogueGain: + type: float + description: Report the analogue gain parameter for the current frame. + + \sa CurrentExposure + + - CurrentLux: + type: float + description: Report an estimate of the current lux level. + - AwbEnable: type: bool description: | @@ -190,6 +206,18 @@ controls: in that order. size: [2] + - CurrentWbGains: + type: float + description: | + Report the current gain AWB gain values for the Red and Blue colour + channels, in that order. + size: [2] + + - CurrentTemperature: + type: float + description: | + Report the current estimate of the colour temperature for this frame. + - Brightness: type: int32_t description: |