summaryrefslogtreecommitdiff
path: root/video-source.h
diff options
context:
space:
mode:
Diffstat (limited to 'video-source.h')
-rw-r--r--video-source.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/video-source.h b/video-source.h
deleted file mode 100644
index fffcba3..0000000
--- a/video-source.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-/*
- * Abstract video source
- *
- * Copyright (C) 2018 Laurent Pinchart
- *
- * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
- */
-#ifndef __VIDEO_SOURCE_H__
-#define __VIDEO_SOURCE_H__
-
-struct v4l2_buffer;
-struct v4l2_pix_format;
-struct video_buffer;
-struct video_buffer_set;
-struct video_source;
-
-struct video_source_ops {
- void(*destroy)(struct video_source *src);
- int(*set_format)(struct video_source *src, struct v4l2_pix_format *fmt);
- int(*alloc_buffers)(struct video_source *src, unsigned int nbufs);
- int(*export_buffers)(struct video_source *src,
- struct video_buffer_set **buffers);
- int(*free_buffers)(struct video_source *src);
- int(*stream_on)(struct video_source *src);
- int(*stream_off)(struct video_source *src);
- int(*queue_buffer)(struct video_source *src, struct video_buffer *buf);
-};
-
-typedef void(*video_source_buffer_handler_t)(void *, struct video_source *,
- struct video_buffer *);
-
-struct video_source {
- const struct video_source_ops *ops;
- struct events *events;
- video_source_buffer_handler_t handler;
- void *handler_data;
-};
-
-void video_source_set_buffer_handler(struct video_source *src,
- video_source_buffer_handler_t handler,
- void *data);
-void video_source_destroy(struct video_source *src);
-int video_source_set_format(struct video_source *src,
- struct v4l2_pix_format *fmt);
-int video_source_alloc_buffers(struct video_source *src, unsigned int nbufs);
-int video_source_export_buffers(struct video_source *src,
- struct video_buffer_set **buffers);
-int video_source_free_buffers(struct video_source *src);
-int video_source_stream_on(struct video_source *src);
-int video_source_stream_off(struct video_source *src);
-int video_source_queue_buffer(struct video_source *src,
- struct video_buffer *buf);
-
-#endif /* __VIDEO_SOURCE_H__ */