summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/v4l2_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/lib/v4l2_driver.h')
-rw-r--r--v4l2-apps/lib/v4l2_driver.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/v4l2-apps/lib/v4l2_driver.h b/v4l2-apps/lib/v4l2_driver.h
index f429f01cd..5e04c1e86 100644
--- a/v4l2-apps/lib/v4l2_driver.h
+++ b/v4l2-apps/lib/v4l2_driver.h
@@ -21,6 +21,11 @@ struct drv_list {
struct drv_list *next;
};
+struct v4l2_t_buf {
+ void *start;
+ size_t length;
+};
+
struct v4l2_driver {
int fd; /* Driver descriptor */
@@ -36,7 +41,7 @@ struct v4l2_driver {
/* Stream control */
struct v4l2_requestbuffers reqbuf;
struct v4l2_buffer **v4l2_bufs;
- uint8_t **bufs;
+ struct v4l2_t_buf *bufs;
uint32_t sizeimage;
/* Queue control */