18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * omap_voutlib.h 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2010 Texas Instruments. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public License 78c2ecf20Sopenharmony_ci * version 2. This program is licensed "as is" without any warranty of any 88c2ecf20Sopenharmony_ci * kind, whether express or implied. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef OMAP_VOUTLIB_H 138c2ecf20Sopenharmony_ci#define OMAP_VOUTLIB_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid omap_vout_default_crop(struct v4l2_pix_format *pix, 168c2ecf20Sopenharmony_ci struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciint omap_vout_new_crop(struct v4l2_pix_format *pix, 198c2ecf20Sopenharmony_ci struct v4l2_rect *crop, struct v4l2_window *win, 208c2ecf20Sopenharmony_ci struct v4l2_framebuffer *fbuf, 218c2ecf20Sopenharmony_ci const struct v4l2_rect *new_crop); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciint omap_vout_try_window(struct v4l2_framebuffer *fbuf, 248c2ecf20Sopenharmony_ci struct v4l2_window *new_win); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciint omap_vout_new_window(struct v4l2_rect *crop, 278c2ecf20Sopenharmony_ci struct v4l2_window *win, struct v4l2_framebuffer *fbuf, 288c2ecf20Sopenharmony_ci struct v4l2_window *new_win); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_civoid omap_vout_new_format(struct v4l2_pix_format *pix, 318c2ecf20Sopenharmony_ci struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, 328c2ecf20Sopenharmony_ci struct v4l2_window *win); 338c2ecf20Sopenharmony_ciunsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr); 348c2ecf20Sopenharmony_civoid omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size); 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_cibool omap_vout_dss_omap24xx(void); 378c2ecf20Sopenharmony_cibool omap_vout_dss_omap34xx(void); 388c2ecf20Sopenharmony_ci#endif /* #ifndef OMAP_VOUTLIB_H */ 398c2ecf20Sopenharmony_ci 40