summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/v4l2_driver.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-11-16 12:02:28 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-11-16 12:02:28 -0200
commitf90bff01fa3468160e9403fb488c1f319c30c6dd (patch)
tree8bc246501930c82b13484a96b57976c128d091a9 /v4l2-apps/lib/v4l2_driver.h
parentcbbc1373bd674a772030df86c05fdb5cadffa95c (diff)
downloadmediapointer-dvb-s2-f90bff01fa3468160e9403fb488c1f319c30c6dd.tar.gz
mediapointer-dvb-s2-f90bff01fa3468160e9403fb488c1f319c30c6dd.tar.bz2
Start adding v4l2_mmap_bufs to prepare for stream
From: Mauro Carvalho Chehab <mchehab@infradead.org> This method requests buffers and maps it into a mmaped memory. Still under testing. Still need other stuff to make stream to work. 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.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/v4l2-apps/lib/v4l2_driver.h b/v4l2-apps/lib/v4l2_driver.h
index aac00834f..f429f01cd 100644
--- a/v4l2-apps/lib/v4l2_driver.h
+++ b/v4l2-apps/lib/v4l2_driver.h
@@ -22,15 +22,25 @@ struct drv_list {
};
struct v4l2_driver {
- int fd; /* Driver descriptor */
+ int fd; /* Driver descriptor */
- int debug;
+ int debug;
- struct v4l2_capability cap;
+ /* V4L2 structs */
+ struct v4l2_capability cap;
+ struct v4l2_streamparm parm;
- struct v4l2_streamparm parm;
+ /* Several lists to be used to store enumbered values */
+ struct drv_list *stds,*inputs,*fmt_caps;
- struct drv_list *stds,*inputs,*fmt_caps;
+ /* Stream control */
+ struct v4l2_requestbuffers reqbuf;
+ struct v4l2_buffer **v4l2_bufs;
+ uint8_t **bufs;
+ uint32_t sizeimage;
+
+ /* Queue control */
+ uint32_t waitq, currq;
};
enum v4l2_direction {
@@ -53,4 +63,5 @@ int v4l2_setget_input (struct v4l2_driver *drv, enum v4l2_direction dir, struct
int v4l2_gettryset_fmt_cap (struct v4l2_driver *drv, enum v4l2_direction dir,
struct v4l2_format *fmt,uint32_t width, uint32_t height,
uint32_t pixelformat, enum v4l2_field field);
+int v4l2_mmap_bufs(struct v4l2_driver *drv, unsigned int num_buffers);