From patchwork Fri Sep 27 02:44:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 2026 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 665E36170D for ; Fri, 27 Sep 2019 04:45:25 +0200 (CEST) X-Halon-ID: cc3ddcf6-e0d0-11e9-bdc3-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [84.172.88.101]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id cc3ddcf6-e0d0-11e9-bdc3-005056917a89; Fri, 27 Sep 2019 04:44:59 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 27 Sep 2019 04:44:06 +0200 Message-Id: <20190927024417.725906-3-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190927024417.725906-1-niklas.soderlund@ragnatech.se> References: <20190927024417.725906-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 02/13] libcamera: controls: Add AeEnable 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: Fri, 27 Sep 2019 02:45:25 -0000 Add a control to turn Auto Exposure on or off. Signed-off-by: Niklas Söderlund --- include/libcamera/control_ids.h | 1 + src/libcamera/controls.cpp | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/libcamera/control_ids.h b/include/libcamera/control_ids.h index 75b6a2d5cafeca72..8cd44e571f705ac5 100644 --- a/include/libcamera/control_ids.h +++ b/include/libcamera/control_ids.h @@ -13,6 +13,7 @@ namespace libcamera { enum ControlId { + AeEnable, AwbEnable, Brightness, Contrast, diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp index 727fdbd9450d2f40..44cb09d9102d93f6 100644 --- a/src/libcamera/controls.cpp +++ b/src/libcamera/controls.cpp @@ -186,6 +186,13 @@ std::string ControlValue::toString() const * \brief Numerical control ID */ +/** + * \var AeEnable + * ControlType: Bool + * + * Enable or disable the auto-exposure algorithm. \sa ControlId::ManualExposure. + */ + /** * \var AwbEnable * ControlType: Bool @@ -218,14 +225,20 @@ std::string ControlValue::toString() const * \var ManualExposure * ControlType: Integer * - * Specify a fixed exposure time in milli-seconds + * Specify a fixed exposure time in milli-seconds. + * + * This control is only considered if AeEnable is not enabled. If present at + * at the same time as AeEnable the value will be ignored. */ /** * \var ManualGain * ControlType: Integer * - * Specify a fixed gain parameter + * Specify a fixed gain parameter. + * + * This control is only considered if AeEnable is not enabled. If present at + * at the same time as AeEnable the value will be ignored. */ /**