Debian Codegraph @

gstreamer/gstreamermm/typefindelement.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <gstreamermmconfig.h>
5 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
6
7
8 #include <glibmm.h>
9
10 #include <gstreamermm/typefindelement.h>
11 #include <gstreamermm/private/typefindelement_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 GType gst_type_find_element_gstreamermm_get_type()
21 {
22 static GType type = 0;
23 GstElementFactory* factory = 0;
24 GstPluginFeature* feature = 0;
25
26 if(!type)
27 {
28 factory = gst_element_factory_find("typefind");
29 // Make sure that the feature is actually loaded:
30 if(factory)
31 {
32 feature =
33 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
34
35 g_object_unref(factory);
36 factory = GST_ELEMENT_FACTORY(feature);
37 type = gst_element_factory_get_element_type(factory);
38 g_object_unref(factory);
39 }
40 }
41
42 return type;
43 }
44
45 } // extern "C"
46
47 namespace Gst
48 {
49
50 TypeFindElement::TypeFindElement()
51 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
52 Glib::ObjectBase(nullptr),
53 Gst::Element(Glib::ConstructParams(typefindelement_class_.init(), "name",static_cast<char*>(0), nullptr))
54 {}
55
56 TypeFindElement::TypeFindElement(const Glib::ustring& name)
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::Element(Glib::ConstructParams(typefindelement_class_.init(), "name",name.c_str(), nullptr))
60 {}
61
62 }
63
64 namespace
65 {
66
67
68 static void TypeFindElement_signal_have_type_callback(GstTypeFindElement* self, guint p0,GstCaps* p1,void* data)
69 {
70 using namespace Gst;
71 using SlotType = sigc::slot< void,guint,const Glib::RefPtr<Gst::Caps>& >;
72
73 auto obj = dynamic_cast<TypeFindElement*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
74 // Do not try to call a signal on a disassociated wrapper.
75 if(obj)
76 {
77 try
78 {
79 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
80 (*static_cast<SlotType*>(slot))(p0, Glib::wrap(p1, true)
81 );
82 }
83 catch(...)
84 {
85 Glib::exception_handlers_invoke();
86 }
87 }
88 }
89
90 static const Glib::SignalProxyInfo TypeFindElement_signal_have_type_info =
91 {
92 "have-type",
93 (GCallback) &TypeFindElement_signal_have_type_callback,
94 (GCallback) &TypeFindElement_signal_have_type_callback
95 };
96
97
98 } // anonymous namespace
99
100
101 namespace Glib
102 {
103
104 Glib::RefPtr<Gst::TypeFindElement> wrap(GstTypeFindElement* object, bool take_copy)
105 {
106 return Glib::RefPtr<Gst::TypeFindElement>( dynamic_cast<Gst::TypeFindElement*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
107 //We use dynamic_cast<> in case of multiple inheritance.
108 }
109
110 } /* namespace Glib */
111
112
113 namespace Gst
114 {
115
116
117 /* The *_Class implementation: */
118
119 const Glib::Class& TypeFindElement_Class::init()
120 {
121 if(!gtype_) // create the GType if necessary
122 {
123 // Glib::Class has to know the class init function to clone custom types.
124 class_init_func_ = &TypeFindElement_Class::class_init_function;
125
126 // This is actually just optimized away, apparently with no harm.
127 // Make sure that the parent type has been created.
128 //CppClassParent::CppObjectType::get_type();
129
130 // Create the wrapper type, with the same class/instance size as the base type.
131 register_derived_type(gst_type_find_element_gstreamermm_get_type());
132
133 // Add derived versions of interfaces, if the C type implements any interfaces:
134
135 }
136
137 return *this;
138 }
139
140
141 void TypeFindElement_Class::class_init_function(void* g_class, void* class_data)
142 {
143 const auto klass = static_cast<BaseClassType*>(g_class);
144 CppClassParent::class_init_function(klass, class_data);
145
146
147 }
148
149
150 Glib::ObjectBase* TypeFindElement_Class::wrap_new(GObject* object)
151 {
152 return new TypeFindElement((GstTypeFindElement*)object);
153 }
154
155
156 /* The implementation: */
157
158 GstTypeFindElement* TypeFindElement::gobj_copy()
159 {
160 reference();
161 return gobj();
162 }
163
164 TypeFindElement::TypeFindElement(const Glib::ConstructParams& construct_params)
165 :
166 Gst::Element(construct_params)
167 {
168
169 }
170
171 TypeFindElement::TypeFindElement(GstTypeFindElement* castitem)
172 :
173 Gst::Element((GstElement*)(castitem))
174 {}
175
176
177 TypeFindElement::TypeFindElement(TypeFindElement&& src) noexcept
178 : Gst::Element(std::move(src))
179 {}
180
181 TypeFindElement& TypeFindElement::operator=(TypeFindElement&& src) noexcept
182 {
183 Gst::Element::operator=(std::move(src));
184 return *this;
185 }
186
187
188 TypeFindElement::~TypeFindElement() noexcept
189 {}
190
191
192 TypeFindElement::CppClassType TypeFindElement::typefindelement_class_; // initialize static member
193
194 GType TypeFindElement::get_type()
195 {
196 return typefindelement_class_.init().get_type();
197 }
198
199
200 GType TypeFindElement::get_base_type()
201 {
202 return gst_type_find_element_gstreamermm_get_type();
203 }
204
205
206 Glib::RefPtr<TypeFindElement> TypeFindElement::create()
207 {
208 return Glib::RefPtr<TypeFindElement>( new TypeFindElement() );
209 }
210
211 Glib::RefPtr<TypeFindElement> TypeFindElement::create(const Glib::ustring& name)
212 {
213 return Glib::RefPtr<TypeFindElement>( new TypeFindElement(name) );
214 }
215
216
217 Glib::SignalProxy< void,guint,const Glib::RefPtr<Gst::Caps>& > TypeFindElement::signal_have_type()
218 {
219 return Glib::SignalProxy< void,guint,const Glib::RefPtr<Gst::Caps>& >(this, &TypeFindElement_signal_have_type_info);
220 }
221
222
223 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> > TypeFindElement::property_caps() const
224 {
225 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> >(this, "caps");
226 }
227
228 Glib::PropertyProxy< guint > TypeFindElement::property_minimum()
229 {
230 return Glib::PropertyProxy< guint >(this, "minimum");
231 }
232
233 Glib::PropertyProxy_ReadOnly< guint > TypeFindElement::property_minimum() const
234 {
235 return Glib::PropertyProxy_ReadOnly< guint >(this, "minimum");
236 }
237
238 Glib::PropertyProxy< Glib::RefPtr<Gst::Caps> > TypeFindElement::property_force_caps()
239 {
240 return Glib::PropertyProxy< Glib::RefPtr<Gst::Caps> >(this, "force-caps");
241 }
242
243 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> > TypeFindElement::property_force_caps() const
244 {
245 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> >(this, "force-caps");
246 }
247
248
249 } // namespace Gst
250
251 #endif // GSTREAMERMM_DISABLE_DEPRECATED
252
253