summaryrefslogtreecommitdiff
path: root/videoout.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-12-12 00:51:25 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-01-06 14:02:54 +0100
commit38591700b3a570861c4fc4223cd7bc05d4cf7e21 (patch)
tree20c1f305af416bca30ebbcc86a7dd4bdac0422a6 /videoout.h
parent0bf93fa12e7a1a022bd71fea607061b8d6669751 (diff)
videoout: Take pixel format as a parameter to vo_init()
Pass a struct v4l2_pix_format * instead of width and height. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'videoout.h')
-rw-r--r--videoout.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/videoout.h b/videoout.h
index 3d459e2..cf20025 100644
--- a/videoout.h
+++ b/videoout.h
@@ -23,6 +23,8 @@
#ifndef __VIDEOOUT_H__
#define __VIDEOOUT_H__
+#include <linux/videodev2.h>
+
#include "isp/v4l2-pool.h"
struct videoout;
@@ -35,7 +37,7 @@ struct video_out_operations {
struct videoout *vo_init(const char *devname,
const struct video_out_operations *ops,
unsigned int buffers,
- unsigned int width, unsigned int height);
+ struct v4l2_pix_format *format);
void vo_cleanup(struct videoout *vo);
int vo_enable_colorkey(struct videoout *vo, unsigned int val);
struct v4l2_buffers_pool *vo_get_pool(struct videoout *vo);