tagging audio streams and changing audio sink to pulseaudio
[profile/ivi/webkit-efl.git] / Source / WebCore / platform / graphics / gstreamer / VideoSinkGStreamer.h
1 /*
2  *  Copyright (C) 2007 OpenedHand
3  *  Copyright (C) 2007 Alp Toker <alp@atoker.com>
4  *
5  *  This library is free software; you can redistribute it and/or
6  *  modify it under the terms of the GNU Lesser General Public
7  *  License as published by the Free Software Foundation; either
8  *  version 2 of the License, or (at your option) any later version.
9  *
10  *  This library is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  *  Lesser General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Lesser General Public
16  *  License along with this library; if not, write to the Free Software
17  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19
20 #ifndef VideoSinkGStreamer_h
21 #define VideoSinkGStreamer_h
22
23 #if ENABLE(VIDEO) && USE(GSTREAMER)
24
25 #ifndef GST_API_VERSION_1
26 #include "GStreamerGWorld.h"
27 #endif
28
29 #include <glib-object.h>
30 #include <gst/video/gstvideosink.h>
31 #include <gst/video/video.h>
32
33 #define WEBKIT_TYPE_VIDEO_SINK webkit_video_sink_get_type()
34
35 #define WEBKIT_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSink))
36 #define WEBKIT_VIDEO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSinkClass))
37 #define WEBKIT_IS_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_VIDEO_SINK))
38 #define WEBKIT_IS_VIDEO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_VIDEO_SINK))
39 #define WEBKIT_VIDEO_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSinkClass))
40
41 typedef struct _WebKitVideoSink WebKitVideoSink;
42 typedef struct _WebKitVideoSinkClass WebKitVideoSinkClass;
43 typedef struct _WebKitVideoSinkPrivate WebKitVideoSinkPrivate;
44
45 struct _WebKitVideoSink {
46     GstVideoSink parent;
47     WebKitVideoSinkPrivate* priv;
48 };
49
50 struct _WebKitVideoSinkClass {
51     GstVideoSinkClass parent_class;
52
53     // Future padding
54     void (* _webkit_reserved1)(void);
55     void (* _webkit_reserved2)(void);
56     void (* _webkit_reserved3)(void);
57     void (* _webkit_reserved4)(void);
58     void (* _webkit_reserved5)(void);
59     void (* _webkit_reserved6)(void);
60 };
61
62 GType webkit_video_sink_get_type() G_GNUC_CONST;
63
64 #ifndef GST_API_VERSION_1
65 GstElement* webkitVideoSinkNew(WebCore::GStreamerGWorld*);
66 #else
67 GstElement* webkitVideoSinkNew();
68 #endif
69
70 #endif // USE(GSTREAMER)
71 #endif