Debian Codegraph @

gstreamer/src/appsink.hg

raw
1 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
2
3
4 #include <gstreamermm/basesink.h>
5 #include <gstreamermm/caps.h>
6 #include <gstreamermm/pad.h>
7 #include <gstreamermm/sample.h>
8 #include <gstreamermm/urihandler.h>
9 _DEFS(gstreamermm,gst)
10
11 _CONFIGINCLUDE(gstreamermmconfig.h)
12 _IS_DEPRECATED
13
14 // Plug-in C enums used in signals:
15 namespace Gst
16 {
17
18 /** A Wrapper for the appsink plugin.
19 * Please note that not all plug-ins are available on all systems so care
20 * must be taken that they exist before they are used otherwise there will
21 * be errors and possibly a crash.
22 *
23 * @ingroup GstPlugins
24 * @deprecated Plugins API is deprecated, and should not be used in a new code.
25 */
26 class AppSink
27 : public Gst::BaseSink, public Gst::URIHandler
28 {
29 _CLASS_GOBJECT(AppSink, GstAppSink, GST_APP_SINK_GSTREAMERMM, Gst::BaseSink, GstBaseSink)
30 _IMPLEMENTS_INTERFACE(Gst::URIHandler)
31
32 _IS_GSTREAMERMM_PLUGIN
33 protected:
34 AppSink();
35 explicit AppSink(const Glib::ustring& name);
36
37 public:
38 /** Creates a new appsink plugin with a unique name.
39 */
40 _WRAP_CREATE()
41
42 /** Creates a new appsink plugin with the given name.
43 */
44 _WRAP_CREATE(const Glib::ustring& name)
45
46 /** This is a convenience method for the action signal
47 * signal_pull_preroll().
48 */
49 Glib::RefPtr<Gst::Sample> pull_preroll();
50
51 /** This is a convenience method for the action signal
52 * signal_pull_sample().
53 */
54 Glib::RefPtr<Gst::Sample> pull_sample();
55
56 /** This is a convenience method for the action signal
57 * signal_try_pull_preroll().
58 */
59 Glib::RefPtr<Gst::Sample> try_pull_preroll(guint64 arg0);
60
61 /** This is a convenience method for the action signal
62 * signal_try_pull_sample().
63 */
64 Glib::RefPtr<Gst::Sample> try_pull_sample(guint64 arg0);
65
66
67 _WRAP_PROPERTY("caps", Glib::RefPtr<Gst::Caps>)
68 _WRAP_PROPERTY("eos", bool)
69 _WRAP_PROPERTY("emit-signals", bool)
70 _WRAP_PROPERTY("max-buffers", guint)
71 _WRAP_PROPERTY("drop", bool)
72 _WRAP_PROPERTY("wait-on-eos", bool)
73
74 _WRAP_SIGNAL(void eos(), "eos", no_default_handler)
75 _WRAP_SIGNAL(Gst::FlowReturn new_preroll(), "new-preroll", no_default_handler)
76 _WRAP_SIGNAL(Gst::FlowReturn new_sample(), "new-sample", no_default_handler)
77
78 #m4 _CONVERSION(`Glib::RefPtr<Gst::Sample>', `GstSample*', `($3)->gobj_copy()')
79 #m4 _CONVERSION(`GstSample*', `Glib::RefPtr<Gst::Sample>', `Glib::wrap($3)')
80 /** This is an action signal which is designed to be used as a method. To
81 * do that, use its convenience method, pull_preroll().
82 */
83 _WRAP_SIGNAL(Glib::RefPtr<Gst::Sample> pull_preroll(), "pull-preroll", no_default_handler)
84
85
86 #m4 _CONVERSION(`Glib::RefPtr<Gst::Sample>', `GstSample*', `($3)->gobj_copy()')
87 #m4 _CONVERSION(`GstSample*', `Glib::RefPtr<Gst::Sample>', `Glib::wrap($3)')
88 /** This is an action signal which is designed to be used as a method. To
89 * do that, use its convenience method, pull_sample().
90 */
91 _WRAP_SIGNAL(Glib::RefPtr<Gst::Sample> pull_sample(), "pull-sample", no_default_handler)
92
93
94 #m4 _CONVERSION(`Glib::RefPtr<Gst::Sample>', `GstSample*', `($3)->gobj_copy()')
95 #m4 _CONVERSION(`GstSample*', `Glib::RefPtr<Gst::Sample>', `Glib::wrap($3)')
96 /** This is an action signal which is designed to be used as a method. To
97 * do that, use its convenience method, try_pull_preroll().
98 */
99 _WRAP_SIGNAL(Glib::RefPtr<Gst::Sample> try_pull_preroll(guint64 arg0), "try-pull-preroll", no_default_handler)
100
101
102 #m4 _CONVERSION(`Glib::RefPtr<Gst::Sample>', `GstSample*', `($3)->gobj_copy()')
103 #m4 _CONVERSION(`GstSample*', `Glib::RefPtr<Gst::Sample>', `Glib::wrap($3)')
104 /** This is an action signal which is designed to be used as a method. To
105 * do that, use its convenience method, try_pull_sample().
106 */
107 _WRAP_SIGNAL(Glib::RefPtr<Gst::Sample> try_pull_sample(guint64 arg0), "try-pull-sample", no_default_handler)
108
109 };
110
111 } // namespace Gst