[libcamera-devel] [RFC PATCH 2/6] libcamera: stream: Add frame interval attribute

Marian Cichy m.cichy at pengutronix.de
Tue Mar 16 16:52:07 CET 2021


The frame interval can be get and set from and on v4l2-subdevices and is
part of the stream configuration.

Signed-off-by: Marian Cichy <m.cichy at pengutronix.de>
---
 include/libcamera/stream.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index bb47c390..14bfbf44 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -13,6 +13,7 @@
 #include <vector>
 
 #include <libcamera/buffer.h>
+#include <libcamera/fraction.h>
 #include <libcamera/geometry.h>
 #include <libcamera/pixel_format.h>
 
@@ -44,6 +45,7 @@ struct StreamConfiguration {
 	Size size;
 	unsigned int stride;
 	unsigned int frameSize;
+	Fraction frameInterval;
 
 	unsigned int bufferCount;
 
-- 
2.29.2



More information about the libcamera-devel mailing list