1 | /* |
2 | * Copyright (C) 2013 Cable Television Laboratories, Inc. |
3 | * |
4 | * Redistribution and use in source and binary forms, with or without |
5 | * modification, are permitted provided that the following conditions |
6 | * are met: |
7 | * |
8 | * 1. Redistributions of source code must retain the above copyright |
9 | * notice, this list of conditions and the following disclaimer. |
10 | * 2. Redistributions in binary form must reproduce the above copyright |
11 | * notice, this list of conditions and the following disclaimer in the |
12 | * documentation and/or other materials provided with the distribution. |
13 | * |
14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY |
15 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
17 | * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
18 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
21 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 | */ |
25 | |
26 | #ifndef TextCombinerGStreamer_h |
27 | #define TextCombinerGStreamer_h |
28 | |
29 | #if ENABLE(VIDEO) && USE(GSTREAMER) && ENABLE(VIDEO_TRACK) |
30 | |
31 | #include <glib-object.h> |
32 | #include <gst/gst.h> |
33 | |
34 | #define WEBKIT_TYPE_TEXT_COMBINER webkit_text_combiner_get_type() |
35 | |
36 | #define WEBKIT_TEXT_COMBINER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_TEXT_COMBINER, WebKitTextCombiner)) |
37 | #define WEBKIT_TEXT_COMBINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_TEXT_COMBINER, WebKitTextCombinerClass)) |
38 | #define WEBKIT_IS_TEXT_COMBINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_TEXT_COMBINER)) |
39 | #define WEBKIT_IS_TEXT_COMBINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_TEXT_COMBINER)) |
40 | #define WEBKIT_TEXT_COMBINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_TEXT_COMBINER, WebKitTextCombinerClass)) |
41 | |
42 | typedef struct _WebKitTextCombiner WebKitTextCombiner; |
43 | typedef struct _WebKitTextCombinerClass WebKitTextCombinerClass; |
44 | |
45 | struct _WebKitTextCombiner { |
46 | GstBin parent; |
47 | |
48 | GstElement *funnel; |
49 | }; |
50 | |
51 | struct _WebKitTextCombinerClass { |
52 | GstBinClass parentClass; |
53 | |
54 | // Future padding |
55 | void (* _webkit_reserved1)(void); |
56 | void (* _webkit_reserved2)(void); |
57 | void (* _webkit_reserved3)(void); |
58 | void (* _webkit_reserved4)(void); |
59 | void (* _webkit_reserved5)(void); |
60 | void (* _webkit_reserved6)(void); |
61 | }; |
62 | |
63 | GstElement* webkitTextCombinerNew(); |
64 | |
65 | #endif // ENABLE(VIDEO) && USE(GSTREAMER) && ENABLE(VIDEO_TRACK) |
66 | #endif |
67 | |