summaryrefslogtreecommitdiff
path: root/include/uvcgadget/video-source.h
diff options
context:
space:
mode:
authorDaniel Scally <dan.scally@ideasonboard.com>2023-01-10 12:06:21 +0000
committerDaniel Scally <dan.scally@ideasonboard.com>2023-01-16 13:10:16 +0000
commit3a4e214882b362dc6dccd28d0862a258af75cf33 (patch)
treeb50d76bb0897ce00569b357e31c34611defffd11 /include/uvcgadget/video-source.h
parentafd7ad5f9dbef7f31162b9a49b9f85c0a309a3a0 (diff)
lib/stream: Add and handle new VIDEO_SOURCE_ENCODED type
Add functions to handle a new entry into video_source_type, representing data with an encoding step between the source and sink. When running through this route, buffers are allocated and mmaped on both the source and the sink, then imported to the source to be filled before being queued to the sink. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'include/uvcgadget/video-source.h')
-rw-r--r--include/uvcgadget/video-source.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uvcgadget/video-source.h b/include/uvcgadget/video-source.h
index 61aeaf7..3497c49 100644
--- a/include/uvcgadget/video-source.h
+++ b/include/uvcgadget/video-source.h
@@ -44,6 +44,7 @@ typedef void(*video_source_buffer_handler_t)(void *, struct video_source *,
enum video_source_type {
VIDEO_SOURCE_DMABUF,
VIDEO_SOURCE_STATIC,
+ VIDEO_SOURCE_ENCODED,
};
struct video_source {