Debian Codegraph @

gstreamer/src/appsink.ccg

raw
1 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
2
3
4 _PINCLUDE(gstreamermm/private/basesink_p.h)
5
6 extern "C"
7 {
8
9 GType gst_app_sink_gstreamermm_get_type()
10 {
11 static GType type = 0;
12 GstElementFactory* factory = 0;
13 GstPluginFeature* feature = 0;
14
15 if(!type)
16 {
17 factory = gst_element_factory_find("appsink");
18 // Make sure that the feature is actually loaded:
19 if(factory)
20 {
21 feature =
22 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
23
24 g_object_unref(factory);
25 factory = GST_ELEMENT_FACTORY(feature);
26 type = gst_element_factory_get_element_type(factory);
27 g_object_unref(factory);
28 }
29 }
30
31 return type;
32 }
33
34 } // extern "C"
35
36 namespace Gst
37 {
38
39 AppSink::AppSink()
40 : _CONSTRUCT("name", static_cast<char*>(0))
41 {}
42
43 AppSink::AppSink(const Glib::ustring& name)
44 : _CONSTRUCT("name", name.c_str())
45 {}
46
47 Glib::RefPtr<Gst::Sample> AppSink::pull_preroll()
48 {
49 GstSample* result;
50 g_signal_emit_by_name(gobj(), "pull-preroll", &result, static_cast<void*>(0));
51 return _CONVERT(`GstSample*', `Glib::RefPtr<Gst::Sample>', `result');
52 }
53
54 Glib::RefPtr<Gst::Sample> AppSink::pull_sample()
55 {
56 GstSample* result;
57 g_signal_emit_by_name(gobj(), "pull-sample", &result, static_cast<void*>(0));
58 return _CONVERT(`GstSample*', `Glib::RefPtr<Gst::Sample>', `result');
59 }
60
61 Glib::RefPtr<Gst::Sample> AppSink::try_pull_preroll(guint64 arg0)
62 {
63 GstSample* result;
64 g_signal_emit_by_name(gobj(), "try-pull-preroll", _CONVERT(`guint64', `guint64', `arg0'), &result, static_cast<void*>(0));
65 return _CONVERT(`GstSample*', `Glib::RefPtr<Gst::Sample>', `result');
66 }
67
68 Glib::RefPtr<Gst::Sample> AppSink::try_pull_sample(guint64 arg0)
69 {
70 GstSample* result;
71 g_signal_emit_by_name(gobj(), "try-pull-sample", _CONVERT(`guint64', `guint64', `arg0'), &result, static_cast<void*>(0));
72 return _CONVERT(`GstSample*', `Glib::RefPtr<Gst::Sample>', `result');
73 }
74
75 }