1 /* GStreamer DirectFB plugin
2 * Copyright (C) 2005 Julien MOUTTE <julien@moutte.net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GST_DFBVIDEOSINK_H__
21 #define __GST_DFBVIDEOSINK_H__
23 #include <gst/video/gstvideosink.h>
29 #define GST_TYPE_DFBVIDEOSINK (gst_dfbvideosink_get_type())
30 #define GST_DFBVIDEOSINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DFBVIDEOSINK, GstDfbVideoSink))
31 #define GST_DFBVIDEOSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_DFBVIDEOSINK, GstDfbVideoSinkClass))
32 #define GST_IS_DFBVIDEOSINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_DFBVIDEOSINK))
33 #define GST_IS_DFBVIDEOSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_DFBVIDEOSINK))
35 typedef struct _GstDfbVideoSink GstDfbVideoSink;
36 typedef struct _GstDfbVideoSinkClass GstDfbVideoSinkClass;
38 #define GST_TYPE_DFBSURFACE (gst_dfbsurface_get_type())
40 #define GST_IS_DFBSURFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_DFBSURFACE))
41 #define GST_DFBSURFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_DFBSURFACE, GstDfbSurface))
43 typedef struct _GstDfbSurface GstDfbSurface;
45 struct _GstDfbSurface {
46 GstBuffer buffer; /* We extend GstBuffer */
48 IDirectFBSurface *surface;
55 DFBSurfacePixelFormat pixel_format;
57 GstDfbVideoSink *dfbvideosink;
60 typedef struct _GstDfbVMode GstDfbVMode;
71 * The opaque #GstDfbVideoSink structure.
73 struct _GstDfbVideoSink {
74 GstVideoSink videosink;
80 /* Framerate numerator and denominator */
84 gint video_width, video_height; /* size of incoming video */
85 gint out_width, out_height;
90 GSList *vmodes; /* Video modes */
93 IDirectFBDisplayLayer *layer;
94 IDirectFBSurface *primary;
95 IDirectFBEventBuffer *event_buffer;
96 GThread *event_thread;
99 IDirectFBSurface *ext_surface;
101 DFBSurfacePixelFormat pixel_format;
117 /* object-set pixel aspect ratio */
121 struct _GstDfbVideoSinkClass {
122 GstVideoSinkClass parent_class;
125 GType gst_dfbvideosink_get_type (void);
126 GType gst_dfbsurface_get_type (void);
130 #endif /* __GST_DFBVIDEOSINK_H__ */