2010-04-11 21:41:49 +08:00
|
|
|
/*
|
|
|
|
* omap_voutlib.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Texas Instruments.
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
|
|
* kind, whether express or implied.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OMAP_VOUTLIB_H
|
|
|
|
#define OMAP_VOUTLIB_H
|
|
|
|
|
2011-06-14 14:54:45 +08:00
|
|
|
void omap_vout_default_crop(struct v4l2_pix_format *pix,
|
2010-04-11 21:41:49 +08:00
|
|
|
struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
|
|
|
|
|
2011-06-14 14:54:45 +08:00
|
|
|
int omap_vout_new_crop(struct v4l2_pix_format *pix,
|
2010-04-11 21:41:49 +08:00
|
|
|
struct v4l2_rect *crop, struct v4l2_window *win,
|
|
|
|
struct v4l2_framebuffer *fbuf,
|
|
|
|
const struct v4l2_rect *new_crop);
|
|
|
|
|
2011-06-14 14:54:45 +08:00
|
|
|
int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
|
2010-04-11 21:41:49 +08:00
|
|
|
struct v4l2_window *new_win);
|
|
|
|
|
2011-06-14 14:54:45 +08:00
|
|
|
int omap_vout_new_window(struct v4l2_rect *crop,
|
2010-04-11 21:41:49 +08:00
|
|
|
struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
|
|
|
|
struct v4l2_window *new_win);
|
|
|
|
|
2011-06-14 14:54:45 +08:00
|
|
|
void omap_vout_new_format(struct v4l2_pix_format *pix,
|
2010-04-11 21:41:49 +08:00
|
|
|
struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
|
|
|
|
struct v4l2_window *win);
|
2011-06-14 14:54:45 +08:00
|
|
|
unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr);
|
|
|
|
void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
|
2012-11-12 21:17:39 +08:00
|
|
|
|
|
|
|
bool omap_vout_dss_omap24xx(void);
|
|
|
|
bool omap_vout_dss_omap34xx(void);
|
2010-04-11 21:41:49 +08:00
|
|
|
#endif /* #ifndef OMAP_VOUTLIB_H */
|
|
|
|
|