Commit | Line | Data |
---|---|---|
5c7ab634 VH |
1 | /* |
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 | ||
a137ac87 | 15 | void omap_vout_default_crop(struct v4l2_pix_format *pix, |
5c7ab634 VH |
16 | struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop); |
17 | ||
a137ac87 | 18 | int omap_vout_new_crop(struct v4l2_pix_format *pix, |
5c7ab634 VH |
19 | struct v4l2_rect *crop, struct v4l2_window *win, |
20 | struct v4l2_framebuffer *fbuf, | |
21 | const struct v4l2_rect *new_crop); | |
22 | ||
a137ac87 | 23 | int omap_vout_try_window(struct v4l2_framebuffer *fbuf, |
5c7ab634 VH |
24 | struct v4l2_window *new_win); |
25 | ||
a137ac87 | 26 | int omap_vout_new_window(struct v4l2_rect *crop, |
5c7ab634 VH |
27 | struct v4l2_window *win, struct v4l2_framebuffer *fbuf, |
28 | struct v4l2_window *new_win); | |
29 | ||
a137ac87 | 30 | void omap_vout_new_format(struct v4l2_pix_format *pix, |
5c7ab634 VH |
31 | struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, |
32 | struct v4l2_window *win); | |
a137ac87 | 33 | unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr); |
34 | void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size); | |
950e2fb4 TV |
35 | |
36 | bool omap_vout_dss_omap24xx(void); | |
37 | bool omap_vout_dss_omap34xx(void); | |
5c7ab634 VH |
38 | #endif /* #ifndef OMAP_VOUTLIB_H */ |
39 |