From patchwork Mon Mar 9 12:33:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 3062 Return-Path: Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5B97362923 for ; Mon, 9 Mar 2020 13:35:36 +0100 (CET) Received: by mail-wm1-x343.google.com with SMTP id a5so9703091wmb.0 for ; Mon, 09 Mar 2020 05:35:36 -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=mRpp1XKALbtajmA5nsLyTfSQsfB55/0bG7VkANELT8I=; b=WIqTTDVjM6eg4mj2LlTbvNPS9BjPoE2gVxD3V56veyG7ELSzR2zbeKkQ9oPkXtKg8U VOAsGHfP+8BOEyChtfrZUFEJKLgIBJSnYD1ljsIVJGKaf3wF7WtGX/bD2ZNk96XnGeg/ 841yMpAdhBY9KdRzDDXyvbvuuYOS9cb2M5xfcJezbBr+XVYhoeSREMKakjGLJfzg7B4a zEb2iRTFEGOFwzdzuWVl84+SSJpT1jw4xu3r9L9n3FqbzRZmhJJbIKjU61AGTt3KV2rp 8zw60K+fuP2S1IKlFe0D3Z/0Rx/2WaAl3qgAVXXRZhqktPZNNxJ4OCPQi9ELFX/bjv6P wg1A== 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=mRpp1XKALbtajmA5nsLyTfSQsfB55/0bG7VkANELT8I=; b=lxqrf+47CJI9fUcf+5ZUdiBPTPBoue0IkwHKsodmLaNYzLNSaoQLTslcPzke2x0XX2 mIBloQmX/l82AKqsNvR30Zz1JyXTiwBVp/fhJiuIg8pNqBxt+OlA1CjaDQNfKBP/BUe/ TRvoqidq6/+3bL2BjPekU9Im90VjOICvbh9nWF+bCdGUVzJlUoIEFgiyhTffjG4lDSJt IoMVafx5N8IY3GXelEaetxNHVO0VLMqUqVsdiPDkrMZ9q0ibHWT89rQsmY39YJqpKSfl TBSHG0d4SWjKpNcKeUdhEaJIb4CrOwgp68nLMupNXFfHXzzgX28TfQajto8RuClQ1c+W 0OCQ== X-Gm-Message-State: ANhLgQ04Ymcrk6/Ffh+UIcl56ERS0UqcIKRxIy7IRGcpVS+1maaBaUIW zn3PnrIgOAlVbMGjRh0V7dlo39GyBbVDQQ== X-Google-Smtp-Source: ADFU+vuKMYbk33HT1T1XlGqOiCJIeEjhyjdx7qjJixJGCcojxarMaZsJyQ55V9v5bjtGWVN2tLfrJA== X-Received: by 2002:a1c:4c13:: with SMTP id z19mr19564496wmf.75.1583757335755; Mon, 09 Mar 2020 05:35:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 05:35:35 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 9 Mar 2020 12:33:17 +0000 Message-Id: <20200309123319.630-5-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 4/6] libcamera: controls: Add AWB related controls 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:36 -0000 AwbMode is a new enum type to specify operating mode of the AWB algorithm. All modes may not be supported by all platforms. ManualWbGains is a new float arary type used to specify manual red and blue (in that order) colour channel gains when AWB is disabled. Signed-off-by: Naushir Patuck --- src/libcamera/control_ids.yaml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index da1a7b43..9a33094a 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -143,6 +143,53 @@ controls: description: | Enable or disable the AWB. + - AwbMode: + type: int32_t + description: | + Specify the range of illumants to use for the AWB algorihtm. The modes + supported are platform specific, and not all modes may be supported. + enum: + - name: AwbAuto + value: 0 + description: Search over the whole CT range. + - name: AwbIncandescent + value: 1 + description: Incandescent AWB lamp mode. + - name: AwbTungsten + value: 2 + description: Tungsten AWB lamp mode. + - name: AwbFluorescent + value: 3 + description: Fluorescent AWB lamp mode. + - name: AwbIndoor + value: 4 + description: Indoor AWB lighting mode. + - name: AwbDaylight + value: 5 + description: Daylight AWB lighting mode. + - name: AwbCloudy + value: 6 + description: Cloudy AWB lighting mode. + - name: AwbCustom1 + value: 7 + description: Custom AWB mode 1. + - name: AwbCustom2 + value: 8 + description: Custom AWB mode 2. + - name: AwbCustom3 + value: 9 + description: Custom AWB mode 3. + - name: AwbModeMax + value: 9 + description: Maximum allowed value (place any new values above here). + + - ManualWbGains: + type: float + description: | + Specify a fixed gain parameter for the Red and Blue colour channels, + in that order. + size: [2] + - Brightness: type: int32_t description: Specify a fixed brightness parameter