From patchwork Fri Mar 24 17:40:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dufresne X-Patchwork-Id: 18457 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1D8EEC329C for ; Fri, 24 Mar 2023 17:40:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 204726271F; Fri, 24 Mar 2023 18:40:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1679679627; bh=AG+K99daHMuCR/dO/FlC82WLKrNzoMeLd8FlNJLpYW0=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sR9ntVcz/HNT3HpN0jzl3QSbSS2PVpJLXbUgkP8oJt60HwT1BlFnGunNkxtWE5Gzy B/rfFV/S6MHN+kdTZFSTOWwnVxUU/oMEekFSoCzN1V86InGnNlV5worTTPZ/O4TwQu xCi8IR0ArOrbZKUt2gwQGV7oEeT3ORSYJONBRunjzwnDNiTrBRca8O0+MeF3Ccsq4e FNkEMnoAUdpMwoIAmFvseuuEDyvd1G9vPOgYFcwnQxxsI5y56cldCbCAliAKaiQlZG w36570XmW89F5Vwm892kATgp3SABdnfWntsY0Lf3kwEBIw006bAzWr6BooK9Trtrux g47PGdSoZLD6w== Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F2FCF603AA for ; Fri, 24 Mar 2023 18:40:24 +0100 (CET) Received: from nicolas-tpx395.lan (192-222-136-102.qc.cable.ebox.net [192.222.136.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id 80AA0660312C; Fri, 24 Mar 2023 17:40:24 +0000 (GMT) To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Mar 2023 13:40:09 -0400 Message-Id: <20230324174009.300123-4-nicolas@ndufresne.ca> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230324174009.300123-1-nicolas@ndufresne.ca> References: <20230324174009.300123-1-nicolas@ndufresne.ca> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 3/3] doc: gstreamer: Document the sensor-mode(s) 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-Patchwork-Original-From: Nicolas Dufresne via libcamera-devel From: Nicolas Dufresne Reply-To: Nicolas Dufresne Cc: Nicolas Dufresne Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Nicolas Dufresne Signed-off-by: Nicolas Dufresne --- README.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.rst b/README.rst index 52cde91c..21a4d127 100644 --- a/README.rst +++ b/README.rst @@ -174,6 +174,20 @@ Which can be received on another device over the network with: gst-launch-1.0 tcpclientsrc host=$DEVICE_IP port=5000 ! \ multipartdemux ! jpegdec ! autovideosink +Some pipeline managers have support for selecting the sensor mode. This consist +of locking the sensor into a specific resolution/format in order to obtains a +specific field or view, quality or get access to different frame duration +ranges. Applications can read the enumerate mode through the ``sensor-modes`` +properties and select (or filter) the selected mode using ``sensor-mode`` +property. As an example, an application that needs 60 frame per second can +ensure this with: + +.. code:: + + gst-launch-1.0 libcamerasrc sensor-mode="sensor/mode,framerate=60/1" ! \ + video/x-raw,framerate=60/1,format=NV12 ! \ + queue ! videoconvert ! autovideosink + .. section-end-getting-started Troubleshooting