From patchwork Wed Dec 18 14:50:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 2440 X-Patchwork-Delegate: jacopo@jmondi.org Return-Path: Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B5A6360475 for ; Wed, 18 Dec 2019 15:47:55 +0100 (CET) X-Originating-IP: 93.34.114.233 Received: from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 464DC60007; Wed, 18 Dec 2019 14:47:55 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 18 Dec 2019 15:50:00 +0100 Message-Id: <20191218145001.22283-7-jacopo@jmondi.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191218145001.22283-1-jacopo@jmondi.org> References: <20191218145001.22283-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 6/7] libcamera: properties: Define 'lens' properties 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: Wed, 18 Dec 2019 14:47:56 -0000 Define properties that describe the optical characteristics of the image sensor. Signed-off-by: Jacopo Mondi --- src/libcamera/property_ids.yaml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index 9e2333cb7206..fdadfb8b1da4 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -208,4 +208,38 @@ controls: The range of supported ISO sensitivities, as documented by the ISO 12232:2006 standard + - LensApertures: + type: float + compound: true + description: | + The available lens apertures, expressed as f numbers (the ratio between + the lens focal distance and the diameter of the pupil aperture). + + If the sensor has a fixed aperture, the property transports a single + value. + + - LensFocalDistance: + type: float + compound: true + description: | + The available focal length distances, expressed in millimeters. + + If the sensor is featured with a movable lens mechanism this property + reports the focal lengths associated with each discrete step. For + sensor with fixed-focus lenses, a single focal length should be instead + reported. + + - LensHyperfocalDistance: + type: float + compound: true + description: | + The hyperfocal distance of the sensor. The property is particularly + meaningful for fixed-focus devices. + + - LensMinimumFocalDistance: + type: float + description: | + The shortest distance in millimeters from the lens surface in which an + object could be brought into sharp focus. + ...