summaryrefslogtreecommitdiff
path: root/v4l2-source.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 12:44:49 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 19:09:06 +0300
commit24800b4ee0496189ab11b544c468f4999f94a55b (patch)
tree84821ea242395a627fb8b4e71cd82c2a7fccb570 /v4l2-source.h
parente8fe6b593e1f10bd6aeb5f16674b6ee1142625c6 (diff)
v4l2-source: Add V4L2 source class
The v4l2_source class is an implementation of the video_source class that uses a V4L2 capture device to provide video. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'v4l2-source.h')
-rw-r--r--v4l2-source.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/v4l2-source.h b/v4l2-source.h
new file mode 100644
index 0000000..53e28d6
--- /dev/null
+++ b/v4l2-source.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * V4L2 video source
+ *
+ * Copyright (C) 2018 Laurent Pinchart
+ *
+ * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ */
+#ifndef __V4L2_VIDEO_SOURCE_H__
+#define __V4L2_VIDEO_SOURCE_H__
+
+#include "video-source.h"
+
+struct events;
+struct video_source;
+
+struct video_source *v4l2_video_source_create(const char *devname);
+void v4l2_video_source_init(struct video_source *src, struct events *events);
+
+#endif /* __VIDEO_SOURCE_H__ */