blob: f9d1c0779f338723fe2256db7fa66162c0b337ab [file] [log] [blame]
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -03001/*
2 * omap_voutlib.h
3 *
4 * Copyright (C) 2010 Texas Instruments.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 *
10 */
11
12#ifndef OMAP_VOUTLIB_H
13#define OMAP_VOUTLIB_H
14
archit tanejaa137ac82011-06-14 03:54:45 -030015void omap_vout_default_crop(struct v4l2_pix_format *pix,
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030016 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
17
archit tanejaa137ac82011-06-14 03:54:45 -030018int omap_vout_new_crop(struct v4l2_pix_format *pix,
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030019 struct v4l2_rect *crop, struct v4l2_window *win,
20 struct v4l2_framebuffer *fbuf,
21 const struct v4l2_rect *new_crop);
22
archit tanejaa137ac82011-06-14 03:54:45 -030023int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030024 struct v4l2_window *new_win);
25
archit tanejaa137ac82011-06-14 03:54:45 -030026int omap_vout_new_window(struct v4l2_rect *crop,
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030027 struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
28 struct v4l2_window *new_win);
29
archit tanejaa137ac82011-06-14 03:54:45 -030030void omap_vout_new_format(struct v4l2_pix_format *pix,
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030031 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
32 struct v4l2_window *win);
archit tanejaa137ac82011-06-14 03:54:45 -030033unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr);
34void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
Tomi Valkeinen950e2fb2012-11-12 15:17:39 +020035
36bool omap_vout_dss_omap24xx(void);
37bool omap_vout_dss_omap34xx(void);
Vaibhav Hiremath5c7ab632010-04-11 10:41:49 -030038#endif /* #ifndef OMAP_VOUTLIB_H */
39