summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2022-11-22 15:41:49 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-11-22 16:05:21 +0000
commitbb83c7135540d3391f4d0b46911c8aedbcd84313 (patch)
tree0bf9eea3bc8a455ffd4d9a46cdb602a2da066af6 /include
parentd2b0811d8bd4385397bf092fc42c319313baf8b2 (diff)
jpg-source: add jpg source class
The jpg_source class is an implementation of the video_source class that streams a still jpg image as video. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/uvcgadget/jpg-source.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/uvcgadget/jpg-source.h b/include/uvcgadget/jpg-source.h
new file mode 100644
index 0000000..2c0b6ea
--- /dev/null
+++ b/include/uvcgadget/jpg-source.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * JPEG still image video source
+ *
+ * Copyright (C) 2018 Paul Elder
+ *
+ * Contact: Paul Elder <paul.elder@ideasonboard.com>
+ */
+#ifndef __JPG_VIDEO_SOURCE_H__
+#define __JPG_VIDEO_SOURCE_H__
+
+#include "video-source.h"
+
+struct events;
+struct video_source;
+
+struct video_source *jpg_video_source_create(const char *img_path);
+void jpg_video_source_init(struct video_source *src, struct events *events);
+
+#endif /* __JPG_VIDEO_SOURCE_H__ */