From patchwork Mon Jul 1 20:14:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1566 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 88CAC61E16 for ; Mon, 1 Jul 2019 22:15:30 +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 3FB1E524 for ; Mon, 1 Jul 2019 22:15:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1562012130; bh=vqiud2b6h+aZ++cnTpe5KXp0l7EK7Snlbie6MyK+imI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TCfqQfdXTim3Nsqn1hsIMJ/L67EOcrTQkbXo1eUJk16fWbjAsaXLWxuA52FGLbl9c uLbEeLJOiR0bNZVtN1zPU6iBMYuAK26fDQZciP9JXrdBqPHMCHY+K3cVo2v48//ZoN AbRPfdBRN0oCfsKBGCvkK4o9uwVB+MFrpwCXDnz8= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Jul 2019 23:14:58 +0300 Message-Id: <20190701201504.28487-8-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190701201504.28487-1-laurent.pinchart@ideasonboard.com> References: <20190701201504.28487-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 07/13] 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: Mon, 01 Jul 2019 20:15:31 -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 Reviewed-by: Niklas Söderlund Reviewed-by: Kieran Bingham --- 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 42a2f8990bf6..d9fbd46d81c9 100644 --- a/src/libcamera/controls.cpp +++ b/src/libcamera/controls.cpp @@ -186,6 +186,48 @@ std::string ControlValue::toString() const * \brief Numerical control ID */ +/** + * \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 Describe a ControlId with control specific constant meta-data