From patchwork Mon Mar 22 10:42:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marian Cichy X-Patchwork-Id: 11636 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 89E3CC32E1 for ; Mon, 22 Mar 2021 10:43:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8A54868D69; Mon, 22 Mar 2021 11:43:11 +0100 (CET) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DE2B868D61 for ; Mon, 22 Mar 2021 11:43:08 +0100 (CET) Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOI1c-0008Cd-1l; Mon, 22 Mar 2021 11:43:08 +0100 Received: from mci by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lOI1b-00087T-PU; Mon, 22 Mar 2021 11:43:07 +0100 From: Marian Cichy To: libcamera-devel@lists.libcamera.org Date: Mon, 22 Mar 2021 11:42:39 +0100 Message-Id: <20210322104242.31107-1-m.cichy@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: mci@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: libcamera-devel@lists.libcamera.org Subject: [libcamera-devel] [PATCH 0/3] Add frame duration to stream configuration 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: , Cc: graphics@pengutronix.de, Marian Cichy Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch series is a follow-up to the discussion in: [RFC PATCH 0/6] Add propagation of sensor frame interval This series is now much simplified as the ioctls for G/S/FRAME_INTERVAL are not used anymore. Also, there is still ongoing discussion about the 'fraction'-class, so for now this is also removed from this patch series. Instead, the FrameDurations control is used inside a controlList for the stream configuration. The general target for the series is the same: Read the frame duration from the sensor and make it part of the stream configuration in the simple pipeline. This way, the frame rate that is reported from the sensor is accessible by outside applications, e.g. the Gstreamer libcamerasrc element. In the case of Gstreamer, this information can be valuable for more efficient memory allocation, latency calculation or just debug purposes. Marian Cichy (3): libcamera: stream: Add controlList attribute pipeline: simple: Add FrameDurations to stream configuration gst: utils: Add framerate to caps include/libcamera/stream.h | 2 ++ src/gstreamer/gstlibcamera-utils.cpp | 7 +++++++ src/libcamera/pipeline/simple/simple.cpp | 9 +++++++++ 3 files changed, 18 insertions(+)