Debian Codegraph @

gstreamer/gstreamermm/fakesink.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/fakesink.h>
11 #include <gstreamermm/private/fakesink_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 static GType gst_fake_sink_state_error_get_type()
21 {
22 static GType const type = g_type_from_name("GstFakeSinkStateError");
23 return type;
24 }
25
26 GType gst_fake_sink_gstreamermm_get_type()
27 {
28 static GType type = 0;
29 GstElementFactory* factory = 0;
30 GstPluginFeature* feature = 0;
31
32 if(!type)
33 {
34 factory = gst_element_factory_find("fakesink");
35 // Make sure that the feature is actually loaded:
36 if(factory)
37 {
38 feature =
39 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
40
41 g_object_unref(factory);
42 factory = GST_ELEMENT_FACTORY(feature);
43 type = gst_element_factory_get_element_type(factory);
44 g_object_unref(factory);
45 }
46 }
47
48 return type;
49 }
50
51 } // extern "C"
52
53 namespace Gst
54 {
55
56 FakeSink::FakeSink()
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::BaseSink(Glib::ConstructParams(fakesink_class_.init(), "name",static_cast<char*>(0), nullptr))
60 {}
61
62 FakeSink::FakeSink(const Glib::ustring& name)
63 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
64 Glib::ObjectBase(nullptr),
65 Gst::BaseSink(Glib::ConstructParams(fakesink_class_.init(), "name",name.c_str(), nullptr))
66 {}
67
68 }
69
70 namespace
71 {
72
73
74 static void FakeSink_signal_handoff_callback(GstFakeSink* self, GstBuffer* p0,GstPad* p1,void* data)
75 {
76 using namespace Gst;
77 using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >;
78
79 auto obj = dynamic_cast<FakeSink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
80 // Do not try to call a signal on a disassociated wrapper.
81 if(obj)
82 {
83 try
84 {
85 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
86 (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true)
87 , Glib::wrap(p1, true)
88 );
89 }
90 catch(...)
91 {
92 Glib::exception_handlers_invoke();
93 }
94 }
95 }
96
97 static const Glib::SignalProxyInfo FakeSink_signal_handoff_info =
98 {
99 "handoff",
100 (GCallback) &FakeSink_signal_handoff_callback,
101 (GCallback) &FakeSink_signal_handoff_callback
102 };
103
104
105 static void FakeSink_signal_preroll_handoff_callback(GstFakeSink* self, GstBuffer* p0,GstPad* p1,void* data)
106 {
107 using namespace Gst;
108 using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >;
109
110 auto obj = dynamic_cast<FakeSink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
111 // Do not try to call a signal on a disassociated wrapper.
112 if(obj)
113 {
114 try
115 {
116 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
117 (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true)
118 , Glib::wrap(p1, true)
119 );
120 }
121 catch(...)
122 {
123 Glib::exception_handlers_invoke();
124 }
125 }
126 }
127
128 static const Glib::SignalProxyInfo FakeSink_signal_preroll_handoff_info =
129 {
130 "preroll-handoff",
131 (GCallback) &FakeSink_signal_preroll_handoff_callback,
132 (GCallback) &FakeSink_signal_preroll_handoff_callback
133 };
134
135
136 } // anonymous namespace
137
138 // static
139 GType Glib::Value<Gst::FakeSinkStateError>::value_type()
140 {
141 return gst_fake_sink_state_error_get_type();
142 }
143
144
145 namespace Glib
146 {
147
148 Glib::RefPtr<Gst::FakeSink> wrap(GstFakeSink* object, bool take_copy)
149 {
150 return Glib::RefPtr<Gst::FakeSink>( dynamic_cast<Gst::FakeSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
151 //We use dynamic_cast<> in case of multiple inheritance.
152 }
153
154 } /* namespace Glib */
155
156
157 namespace Gst
158 {
159
160
161 /* The *_Class implementation: */
162
163 const Glib::Class& FakeSink_Class::init()
164 {
165 if(!gtype_) // create the GType if necessary
166 {
167 // Glib::Class has to know the class init function to clone custom types.
168 class_init_func_ = &FakeSink_Class::class_init_function;
169
170 // This is actually just optimized away, apparently with no harm.
171 // Make sure that the parent type has been created.
172 //CppClassParent::CppObjectType::get_type();
173
174 // Create the wrapper type, with the same class/instance size as the base type.
175 register_derived_type(gst_fake_sink_gstreamermm_get_type());
176
177 // Add derived versions of interfaces, if the C type implements any interfaces:
178
179 }
180
181 return *this;
182 }
183
184
185 void FakeSink_Class::class_init_function(void* g_class, void* class_data)
186 {
187 const auto klass = static_cast<BaseClassType*>(g_class);
188 CppClassParent::class_init_function(klass, class_data);
189
190
191 }
192
193
194 Glib::ObjectBase* FakeSink_Class::wrap_new(GObject* object)
195 {
196 return new FakeSink((GstFakeSink*)object);
197 }
198
199
200 /* The implementation: */
201
202 GstFakeSink* FakeSink::gobj_copy()
203 {
204 reference();
205 return gobj();
206 }
207
208 FakeSink::FakeSink(const Glib::ConstructParams& construct_params)
209 :
210 Gst::BaseSink(construct_params)
211 {
212
213 }
214
215 FakeSink::FakeSink(GstFakeSink* castitem)
216 :
217 Gst::BaseSink((GstBaseSink*)(castitem))
218 {}
219
220
221 FakeSink::FakeSink(FakeSink&& src) noexcept
222 : Gst::BaseSink(std::move(src))
223 {}
224
225 FakeSink& FakeSink::operator=(FakeSink&& src) noexcept
226 {
227 Gst::BaseSink::operator=(std::move(src));
228 return *this;
229 }
230
231
232 FakeSink::~FakeSink() noexcept
233 {}
234
235
236 FakeSink::CppClassType FakeSink::fakesink_class_; // initialize static member
237
238 GType FakeSink::get_type()
239 {
240 return fakesink_class_.init().get_type();
241 }
242
243
244 GType FakeSink::get_base_type()
245 {
246 return gst_fake_sink_gstreamermm_get_type();
247 }
248
249
250 Glib::RefPtr<FakeSink> FakeSink::create()
251 {
252 return Glib::RefPtr<FakeSink>( new FakeSink() );
253 }
254
255 Glib::RefPtr<FakeSink> FakeSink::create(const Glib::ustring& name)
256 {
257 return Glib::RefPtr<FakeSink>( new FakeSink(name) );
258 }
259
260
261 Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& > FakeSink::signal_handoff()
262 {
263 return Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >(this, &FakeSink_signal_handoff_info);
264 }
265
266
267 Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& > FakeSink::signal_preroll_handoff()
268 {
269 return Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >(this, &FakeSink_signal_preroll_handoff_info);
270 }
271
272
273 Glib::PropertyProxy< Gst::FakeSinkStateError > FakeSink::property_state_error()
274 {
275 return Glib::PropertyProxy< Gst::FakeSinkStateError >(this, "state-error");
276 }
277
278 Glib::PropertyProxy_ReadOnly< Gst::FakeSinkStateError > FakeSink::property_state_error() const
279 {
280 return Glib::PropertyProxy_ReadOnly< Gst::FakeSinkStateError >(this, "state-error");
281 }
282
283 Glib::PropertyProxy< bool > FakeSink::property_silent()
284 {
285 return Glib::PropertyProxy< bool >(this, "silent");
286 }
287
288 Glib::PropertyProxy_ReadOnly< bool > FakeSink::property_silent() const
289 {
290 return Glib::PropertyProxy_ReadOnly< bool >(this, "silent");
291 }
292
293 Glib::PropertyProxy< bool > FakeSink::property_dump()
294 {
295 return Glib::PropertyProxy< bool >(this, "dump");
296 }
297
298 Glib::PropertyProxy_ReadOnly< bool > FakeSink::property_dump() const
299 {
300 return Glib::PropertyProxy_ReadOnly< bool >(this, "dump");
301 }
302
303 Glib::PropertyProxy< bool > FakeSink::property_signal_handoffs()
304 {
305 return Glib::PropertyProxy< bool >(this, "signal-handoffs");
306 }
307
308 Glib::PropertyProxy_ReadOnly< bool > FakeSink::property_signal_handoffs() const
309 {
310 return Glib::PropertyProxy_ReadOnly< bool >(this, "signal-handoffs");
311 }
312
313 Glib::PropertyProxy_ReadOnly< Glib::ustring > FakeSink::property_last_message() const
314 {
315 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "last-message");
316 }
317
318 Glib::PropertyProxy< bool > FakeSink::property_can_activate_push()
319 {
320 return Glib::PropertyProxy< bool >(this, "can-activate-push");
321 }
322
323 Glib::PropertyProxy_ReadOnly< bool > FakeSink::property_can_activate_push() const
324 {
325 return Glib::PropertyProxy_ReadOnly< bool >(this, "can-activate-push");
326 }
327
328 Glib::PropertyProxy< bool > FakeSink::property_can_activate_pull()
329 {
330 return Glib::PropertyProxy< bool >(this, "can-activate-pull");
331 }
332
333 Glib::PropertyProxy_ReadOnly< bool > FakeSink::property_can_activate_pull() const
334 {
335 return Glib::PropertyProxy_ReadOnly< bool >(this, "can-activate-pull");
336 }
337
338 Glib::PropertyProxy< int > FakeSink::property_num_buffers()
339 {
340 return Glib::PropertyProxy< int >(this, "num-buffers");
341 }
342
343 Glib::PropertyProxy_ReadOnly< int > FakeSink::property_num_buffers() const
344 {
345 return Glib::PropertyProxy_ReadOnly< int >(this, "num-buffers");
346 }
347
348
349 } // namespace Gst
350
351 #endif // GSTREAMERMM_DISABLE_DEPRECATED
352
353