summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/v4l2_driver.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-12-01 15:33:59 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-01 15:33:59 -0200
commit1de05f2d88e6e1fb2926caa368cf2544c65f86f0 (patch)
tree857cee9ed3ca2360735106c9443492a70cedadb7 /v4l2-apps/lib/v4l2_driver.h
parent655f032b6b86ac96cefcefe344e181d83d197c87 (diff)
downloadmediapointer-dvb-s2-1de05f2d88e6e1fb2926caa368cf2544c65f86f0.tar.gz
mediapointer-dvb-s2-1de05f2d88e6e1fb2926caa368cf2544c65f86f0.tar.bz2
Implement mmapped streaming reception
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add capabilities to the library and to the driver to receive video streams. Library will use a callback, called every time a new buffer is reported by dqbuf. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l2-apps/lib/v4l2_driver.h')
-rw-r--r--v4l2-apps/lib/v4l2_driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/v4l2-apps/lib/v4l2_driver.h b/v4l2-apps/lib/v4l2_driver.h
index 1df9da3ba..ef6a754f4 100644
--- a/v4l2-apps/lib/v4l2_driver.h
+++ b/v4l2-apps/lib/v4l2_driver.h
@@ -26,6 +26,8 @@ struct v4l2_t_buf {
size_t length;
};
+typedef int v4l2_recebe_buffer (struct v4l2_buffer *v4l2_buf, struct v4l2_t_buf *buf);
+
struct v4l2_driver {
int fd; /* Driver descriptor */
@@ -72,3 +74,4 @@ int v4l2_mmap_bufs(struct v4l2_driver *drv, unsigned int num_buffers);
int v4l2_free_bufs(struct v4l2_driver *drv);
int v4l2_start_streaming(struct v4l2_driver *drv);
int v4l2_stop_streaming(struct v4l2_driver *drv);
+int v4l2_rcvbuf(struct v4l2_driver *drv, v4l2_recebe_buffer *v4l2_rec_buf);