omap_voutlib.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef OMAP_VOUTLIB_H
  12. #define OMAP_VOUTLIB_H
  13. void omap_vout_default_crop(struct v4l2_pix_format *pix,
  14. struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
  15. int omap_vout_new_crop(struct v4l2_pix_format *pix,
  16. struct v4l2_rect *crop, struct v4l2_window *win,
  17. struct v4l2_framebuffer *fbuf,
  18. const struct v4l2_rect *new_crop);
  19. int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
  20. struct v4l2_window *new_win);
  21. int omap_vout_new_window(struct v4l2_rect *crop,
  22. struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
  23. struct v4l2_window *new_win);
  24. void omap_vout_new_format(struct v4l2_pix_format *pix,
  25. struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
  26. struct v4l2_window *win);
  27. unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr);
  28. void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
  29. bool omap_vout_dss_omap24xx(void);
  30. bool omap_vout_dss_omap34xx(void);
  31. #endif /* #ifndef OMAP_VOUTLIB_H */