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#include <glib-object.h>
26#include <gst/video/gstvideosink.h>
27
28#define WEBKIT_TYPE_VIDEO_SINK webkit_video_sink_get_type()
29
30#define WEBKIT_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSink))
31#define WEBKIT_VIDEO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSinkClass))
32#define WEBKIT_IS_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_VIDEO_SINK))
33#define WEBKIT_IS_VIDEO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_VIDEO_SINK))
34#define WEBKIT_VIDEO_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSinkClass))
35
36typedef struct _WebKitVideoSink WebKitVideoSink;
37typedef struct _WebKitVideoSinkClass WebKitVideoSinkClass;
38typedef struct _WebKitVideoSinkPrivate WebKitVideoSinkPrivate;
39
40struct _WebKitVideoSink {
41 GstVideoSink parent;
42 WebKitVideoSinkPrivate* priv;
43};
44
45struct _WebKitVideoSinkClass {
46 GstVideoSinkClass parent_class;
47
48 // Future padding
49 void (* _webkit_reserved1)(void);
50 void (* _webkit_reserved2)(void);
51 void (* _webkit_reserved3)(void);
52 void (* _webkit_reserved4)(void);
53 void (* _webkit_reserved5)(void);
54 void (* _webkit_reserved6)(void);
55};
56
57GType webkit_video_sink_get_type() G_GNUC_CONST;
58
59GstElement* webkitVideoSinkNew();
60
61#endif // USE(GSTREAMER)
62#endif
63