aboutsummaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
Diffstat (limited to 'video.h')
-rw-r--r--video.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/video.h b/video.h
index 84f38dc..efca81b 100644
--- a/video.h
+++ b/video.h
@@ -35,32 +35,38 @@ void video_close(struct instance *i);
* buffer. This is the maximum size a single compressed frame can have.
* The count is the number of the stream buffers to allocate. */
int video_setup_output(struct instance *i, unsigned long codec,
- unsigned int size, int count);
+ unsigned int size, unsigned int count);
/* Setup the CAPTURE queue. The argument extra_buf means the number of extra
* buffers that should added to the minimum number of buffers required
* by MFC. The final number of buffers allocated is stored in the instance
* structure. */
-int video_setup_capture(struct instance *i, int extra_buf, int w, int h);
-int video_setup_capture_dmabuf(struct instance *i, int count, int w, int h);
+int video_setup_capture(struct instance *i, unsigned int count, unsigned int w,
+ unsigned int h);
+int video_setup_capture_dmabuf(struct instance *i, unsigned int count,
+ unsigned int w, unsigned int h);
/* Queue OUTPUT buffer */
-int video_queue_buf_out(struct instance *i, int n, int length);
+int video_queue_buf_out(struct instance *i, unsigned int n,
+ unsigned int length);
/* Queue CAPTURE buffer */
-int video_queue_buf_cap(struct instance *i, int n);
+int video_queue_buf_cap(struct instance *i, unsigned int n);
/* Control MFC streaming */
-int video_stream(struct instance *i, enum v4l2_buf_type type, int status);
+int video_stream(struct instance *i, enum v4l2_buf_type type,
+ unsigned int status);
-int video_export_buf(struct instance *i, int index);
+int video_export_buf(struct instance *i, unsigned int index);
/* Dequeue a buffer, the structure *buf is used to return the parameters of the
* dequeued buffer. */
-int video_dequeue_output(struct instance *i, int *n);
-int video_dequeue_capture(struct instance *i, int *n, int *finished,
+int video_dequeue_output(struct instance *i, unsigned int *n);
+int video_dequeue_capture(struct instance *i, unsigned int *n,
+ unsigned int *finished,
unsigned int *bytesused);
-int video_dequeue_capture_dmabuf(struct instance *i, int *n, int *finished,
+int video_dequeue_capture_dmabuf(struct instance *i, unsigned int *n,
+ unsigned int *finished,
unsigned int *bytesused);
int video_set_control(struct instance *i);