[libcamera-devel] [PATCH 0/3] Add frame duration to stream configuration

Marian Cichy m.cichy at pengutronix.de
Mon Mar 22 11:42:39 CET 2021


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(+)

-- 
2.29.2



More information about the libcamera-devel mailing list