From bb83c7135540d3391f4d0b46911c8aedbcd84313 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Tue, 22 Nov 2022 15:41:49 +0000 Subject: 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 Signed-off-by: Paul Elder Signed-off-by: Daniel Scally Signed-off-by: Kieran Bingham --- include/uvcgadget/jpg-source.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/uvcgadget/jpg-source.h (limited to 'include') 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 + */ +#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__ */ -- cgit v1.2.3