omapfb.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2008 Felipe Contreras <felipe.contreras@gmail.com>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation
  7. * version 2.1 of the License.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
  17. */
  18. #ifndef GST_OMAPFB_H
  19. #define GST_OMAPFB_H
  20. #include <gst/gst.h>
  21. #include <gst/video/gstvideosink.h>
  22. #include <gst/video/video.h>
  23. #include <linux/fb.h>
  24. #include <mach/omapfb.h>
  25. G_BEGIN_DECLS
  26. #define GST_OMAPFB_SINK_TYPE (gst_omapfbsink_get_type ())
  27. #define GST_OMAPFB_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_OMAPFB_SINK_TYPE, GstOmapFbSink))
  28. typedef struct GstOmapFbSink GstOmapFbSink;
  29. typedef struct GstOmapFbSinkClass GstOmapFbSinkClass;
  30. struct GstOmapFbSink
  31. {
  32. GstVideoSink videosink;
  33. struct fb_var_screeninfo varinfo;
  34. struct fb_var_screeninfo overlay_info;
  35. struct omapfb_mem_info mem_info;
  36. struct omapfb_plane_info plane_info;
  37. int overlay_fd;
  38. unsigned char *framebuffer;
  39. gboolean enabled;
  40. };
  41. struct GstOmapFbSinkClass
  42. {
  43. GstBaseSinkClass parent_class;
  44. };
  45. GType gst_omapfbsink_get_type (void);
  46. G_END_DECLS
  47. #endif /* GST_OMAPFB_H */