[libcamera-devel,0/3] Add frame duration to stream configuration
mbox series

Message ID 20210322104242.31107-1-m.cichy@pengutronix.de
Headers show
Series
  • Add frame duration to stream configuration
Related show

Message

Marian Cichy March 22, 2021, 10:42 a.m. UTC
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(+)