diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2022-11-22 10:54:55 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2022-11-22 16:02:25 +0000 |
commit | 7dc71fd6fef7a242d108d5c8cb7683aa9fd4511f (patch) | |
tree | b711c052ed1d79fe5616a511be7e9bf4c0ca1ed1 /include/uvcgadget | |
parent | 34477392ceff6d4d5473679f33a6a73cbe7326de (diff) |
test-source: add test source class
The test_source class is an implementation of the video_source class
that generates a test pattern in userspace to provide video. We have
some operations which are implemented as no-ops. To quiet the
compiler warnings this causes, flag their arguments as unused.
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/uvcgadget')
-rw-r--r-- | include/uvcgadget/test-source.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/uvcgadget/test-source.h b/include/uvcgadget/test-source.h new file mode 100644 index 0000000..994a128 --- /dev/null +++ b/include/uvcgadget/test-source.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Test video source + * + * Copyright (C) 2018 Paul Elder + * + * Contact: Paul Elder <paul.elder@ideasonboard.com> + */ +#ifndef __TEST_VIDEO_SOURCE_H__ +#define __TEST_VIDEO_SOURCE_H__ + +#include "video-source.h" + +struct events; +struct video_source; + +struct video_source *test_video_source_create(void); +void test_video_source_init(struct video_source *src, struct events *events); + +#endif /* __TEST_VIDEO_SOURCE_H__ */ |