From patchwork Sun Jun 30 23:38:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1550 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 24E1B61F67 for ; Mon, 1 Jul 2019 01:38:45 +0200 (CEST) Received: from pendragon.bb.dnainternet.fi (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C7AE22F0 for ; Mon, 1 Jul 2019 01:38:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1561937924; bh=C3UVZ+R+516fmXeF4hJxjytX027zeUq8ZgF+wnKrQ18=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vephlv2yznk01Bpzy5O/OhmLDpj8l8/g4prD/Ex94sfvwNUYXsLT/h1YorYiCzmna pu8/vDpl9Me46E5bhQimkeeoWbtZXpTe8d3DNbvJ7Vap3VfB0Pg7W8KbVh7kFORe10 QZfEljNnE4YEte/yFCGUgiZzAY+IerRG532HiyXQ= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Jul 2019 02:38:11 +0300 Message-Id: <20190630233817.10130-9-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190630233817.10130-1-laurent.pinchart@ideasonboard.com> References: <20190630233817.10130-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 08/14] libcamera: controls: Add a set of initial controls X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 23:38:46 -0000 Add an initial set of controls to demonstrate how controls are defined. Proper documentation for each control is missing. Signed-off-by: Laurent Pinchart --- include/libcamera/control_ids.h | 6 +++++ src/libcamera/controls.cpp | 42 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/include/libcamera/control_ids.h b/include/libcamera/control_ids.h index d0e700da9844..75b6a2d5cafe 100644 --- a/include/libcamera/control_ids.h +++ b/include/libcamera/control_ids.h @@ -13,6 +13,12 @@ namespace libcamera { enum ControlId { + AwbEnable, + Brightness, + Contrast, + Saturation, + ManualExposure, + ManualGain, }; } /* namespace libcamera */ diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp index 17e09fc7f153..0fac6f69d2b7 100644 --- a/src/libcamera/controls.cpp +++ b/src/libcamera/controls.cpp @@ -179,6 +179,48 @@ std::string ControlValue::toString() const * Control Identifiers */ +/** + * \var AwbEnable + * ControlType: Bool + * + * Enables or disables the AWB. See also \a libcamera::ControlId::ManualGain + */ + +/** + * \var Brightness + * ControlType: Integer + * + * Specify a fixed brightness parameter. + */ + +/** + * \var Contrast + * ControlType: Integer + * + * Specify a fixed constrast parameter. + */ + +/** + * \var Saturation + * ControlType: Integer + * + * Specify a fixed saturation parameter. + */ + +/** + * \var ManualExposure + * ControlType: Integer + * + * Specify a fixed exposure time in milli-seconds + */ + +/** + * \var ManualGain + * ControlType: Integer + * + * Specify a fixed gain parameter + */ + /** * \struct ControlIdentifier * \brief Describes a ControlId with control specific constant meta-data.