summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2018-08-28 02:12:49 -0400
committerPaul Elder <paul.elder@ideasonboard.com>2019-02-06 01:49:24 -0500
commit014dad23a3b71c040a9b3a3e93aea102c56d8cba (patch)
tree209df371f9f1a85a119a36a5b58844facdbfe995 /lib
parent9889a1223028a14ac2fd56323fc813b62087c918 (diff)
video-source: add video_source_set_frame_rate
We would like to be able to set the frame rate for video sources. This patch adds a set_frame_rate op for video sources, along with a wrapper to call video sources' set_frame_rate functions. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/video-source.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/video-source.c b/lib/video-source.c
index 06092f5..5520b95 100644
--- a/lib/video-source.c
+++ b/lib/video-source.c
@@ -29,6 +29,11 @@ int video_source_set_format(struct video_source *src,
return src->ops->set_format(src, fmt);
}
+int video_source_set_frame_rate(struct video_source *src, unsigned int fps)
+{
+ return src->ops->set_frame_rate(src, fps);
+}
+
int video_source_alloc_buffers(struct video_source *src, unsigned int nbufs)
{
return src->ops->alloc_buffers(src, nbufs);