From patchwork Mon Feb 17 14:26:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 2843 Return-Path: Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 00AB5617B6 for ; Mon, 17 Feb 2020 15:28:25 +0100 (CET) Received: by mail-wm1-x342.google.com with SMTP id b17so18701345wmb.0 for ; Mon, 17 Feb 2020 06:28:24 -0800 (PST) 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=uLQnWOAqxB0p6T2Eo7lR0VVhkPlZJIwfGfueX79Ynws=; b=QAXpa8ax0/vNtdKaIjMVK25CIie9OIcgfc0/g5m9oYTh029QLSLBNraEftcH0+eH7l 5c1hs2iE5s6rvhNVnk+VrHUIS89XnGuJRaW8qq31Eb7hi63WcP3PXsooUv/Qly2ImmiQ BZIl3bbV1RmOZE7LxXXDVrj2JdzByt8BTl3sIgl9/OCiOa/FAWZhnnEQLwhuHJHIXGHC 3FpVQOz8qglc4PUjswBuXBSVTdgPMe86jXf+J2brB9/ST+GWmY98YqhcNZwrr2lUxS5S Xf4IpA4t7w/Rn71HOg6RTO2HxjqpEf/bVv4r0IBn2g+SBgRff51almF1UI1BMHl05h0Y p6sQ== 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=uLQnWOAqxB0p6T2Eo7lR0VVhkPlZJIwfGfueX79Ynws=; b=UWXJr/6QhVZtqmGJ1vsu5Gojd0+t2LGiO7PryNxSrGPG80AAz+ZB7rRBVZmTshytPP 0DcrZmn8HfTyEMOOKaKJwzYOoVoguSxa9lMz4dp1vuIb9KSNvqFFBkTaC5Zx+u0/+SgB TIcuoZdgqEew1Do0TXz7t1mEWnKQAmPl3LLQucg1nMsKigXLRhgf4qbFF2wjqJgHSGAb kPO5DjYR0eOC96PxK98EAr/lzj0ux09nSk3P4GcE3SEsGlCveXQl11MWQCklfX7jPkNo pRTfmKjrhaBiZrHNcR0pakcKrHcyqpow64+rNqXfIWrzq95j3j9DPzhbGatvtPx+OfJz 4w2A== X-Gm-Message-State: APjAAAXSAw2bmAYzpJnZc7S+x61vAgzfhEbmpQd1cDumeKyTo1LY48Hm xcCWqmMbvVRGP7Fp2/11vAygLOrWbIOReA== X-Google-Smtp-Source: APXvYqz9JnpBy+5YzUjA9akoTJS2B8Awi+IMnSUU2Tri147/L6KTrwfPoEI2h90emd0efQw5jdAYLQ== X-Received: by 2002:a1c:16:: with SMTP id 22mr22416595wma.8.1581949704560; Mon, 17 Feb 2020 06:28:24 -0800 (PST) Received: from naushir-VirtualBox.pitowers.org (cust51-dsl50.idnet.net. [212.69.50.51]) by smtp.gmail.com with ESMTPSA id p15sm760960wma.40.2020.02.17.06.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 06:28:24 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck , Naushir Patuck Date: Mon, 17 Feb 2020 14:26:09 +0000 Message-Id: <20200217142609.22837-4-naush@raspberrypi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200217142609.22837-1-naush@raspberrypi.com> References: <20200217142609.22837-1-naush@raspberrypi.com> Subject: [libcamera-devel] [PATCH 3/3] libcamera: controls: Add AE/AWB mode, manual and EV 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, 17 Feb 2020 14:28:25 -0000 AeMode is a new std::string type control used to set the AE algorithm mode. The mode may not always be supported by all platforms. AwbMode is a new std::string type control used to set the AWB algorithm illuminant mode. The mode may not always be supported by all platforms. EV is a new double type control used to set the log2 exposure adjustment for the AE algorithm. ManualGainR is a new double type control used to set the Red channel gain in manual AWB mode. ManualGainB is a new double type control used to set the Blue channel gain in manual AWB mode. Signed-off-by: Naushir Patuck --- src/libcamera/control_ids.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 33062d6..21d2065 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -50,4 +50,44 @@ controls: type: double description: Specify a fixed gain parameter. + - AeMode: + type: std::string + description: | + Specify an exposure mode for the AE algorithm to use. The exposure modes + supported are platform spcific, and not all modes may be supported. + + Examples include "normal", "sport", "low light", etc. + + - AwbMode: + type: std::string + description: | + Specify the range of illuminant to use for the AWB algorihtm. The modes + supported are platform specific, and not all modes may be supported. + + Examples include "auto", "incandescent", "daylight", etc. + + - EV: + type: double + description: | + Specify an Exposure Value (EV) parameter. + + By convention, EV adjusts the exposure by a factor of 2^EV. For example + EV = [-2, -1, 0.5, 0, 0.5, 1, 2] results in an exposure adjustment + of [1/4x, 1/2x, 1/sqrt(2)x, 1x, sqrt(2)x, 2x, 4x]. + + - ManualGainR: + type: double + description: | + Specify a fixed gain parameter for the Red colour channel. This must be + set together with ManualGainB to be applied. + + \sa ManualGainB + + - ManualGainB: + type: double + description: | + Specify a fixed gain parameter for the Green colour channel. This must + bet together with AwbManualGainR to be applied. + + \sa ManualGainR ...