diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-30 14:33:37 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-30 14:33:37 +0200 |
commit | febcb53ca85d911619456c09c4be49fd73c4964b (patch) | |
tree | 12ae3a93d117b56da6e1213882f5cc6de3977adb /videoout.h |
omap3-isp-live: Initial commit
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'videoout.h')
-rw-r--r-- | videoout.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/videoout.h b/videoout.h new file mode 100644 index 0000000..815f112 --- /dev/null +++ b/videoout.h @@ -0,0 +1,43 @@ +/* + * V4L2 video output + * + * Copyright (C) 2010-2011 Ideas on board SPRL + * + * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __VIDEOOUT_H__ +#define __VIDEOOUT_H__ + +#include "isp/v4l2-pool.h" + +struct videoout; + +struct video_out_operations { + void (*watch_fd)(int fd); + void (*unwatch_fd)(int fd); +}; + +struct videoout *vo_init(const char *devname, + const struct video_out_operations *ops, + unsigned int width, unsigned int height); +int vo_enable_colorkey(struct videoout *vo, unsigned int val); +struct v4l2_buffers_pool *vo_get_pool(struct videoout *vo); +int vo_dequeue_buffer(struct videoout *vo, struct v4l2_video_buffer *buffer); +int vo_queue_buffer(struct videoout *vo, struct v4l2_video_buffer *buffer); + +#endif /* __VIDEOOUT_H__ */ |