2 * Copyright (C) 2007 OpenedHand
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
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.
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.
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
20 #ifndef VideoSinkGStreamer_h
21 #define VideoSinkGStreamer_h
23 #if ENABLE(VIDEO) && USE(GSTREAMER)
25 #ifndef GST_API_VERSION_1
26 #include "GStreamerGWorld.h"
29 #include <glib-object.h>
30 #include <gst/video/gstvideosink.h>
31 #include <gst/video/video.h>
33 #define WEBKIT_TYPE_VIDEO_SINK webkit_video_sink_get_type()
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))
41 typedef struct _WebKitVideoSink WebKitVideoSink;
42 typedef struct _WebKitVideoSinkClass WebKitVideoSinkClass;
43 typedef struct _WebKitVideoSinkPrivate WebKitVideoSinkPrivate;
45 struct _WebKitVideoSink {
47 WebKitVideoSinkPrivate* priv;
50 struct _WebKitVideoSinkClass {
51 GstVideoSinkClass parent_class;
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);
62 GType webkit_video_sink_get_type() G_GNUC_CONST;
64 #ifndef GST_API_VERSION_1
65 GstElement* webkitVideoSinkNew(WebCore::GStreamerGWorld*);
67 GstElement* webkitVideoSinkNew();
70 #endif // USE(GSTREAMER)