Debian Codegraph @

gstreamer/gstreamermm/playsink.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/playsink.h>
11 #include <gstreamermm/private/playsink_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_play_sink_send_event_mode_get_type()
21 {
22 static GType const type = g_type_from_name("GstPlaySinkSendEventMode");
23 return type;
24 }
25
26 GType gst_play_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("playsink");
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 PlaySink::PlaySink()
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::Bin(Glib::ConstructParams(playsink_class_.init(), "name",static_cast<char*>(0), nullptr))
60 {}
61
62 PlaySink::PlaySink(const Glib::ustring& name)
63 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
64 Glib::ObjectBase(nullptr),
65 Gst::Bin(Glib::ConstructParams(playsink_class_.init(), "name",name.c_str(), nullptr))
66 {}
67
68 bool PlaySink::reconfigure()
69 {
70 gboolean result;
71 g_signal_emit_by_name(gobj(), "reconfigure", &result, static_cast<void*>(0));
72 return result;
73 }
74
75 Glib::RefPtr<Gst::Sample> PlaySink::convert_sample(const Glib::RefPtr<Gst::Caps>& arg0)
76 {
77 GstSample* result;
78 g_signal_emit_by_name(gobj(), "convert-sample", Glib::unwrap(arg0), &result, static_cast<void*>(0));
79 return Glib::wrap(result);
80 }
81
82 }
83
84 namespace
85 {
86
87
88 static gboolean PlaySink_signal_reconfigure_callback(GstPlaySink* self, void* data)
89 {
90 using namespace Gst;
91 using SlotType = sigc::slot< bool >;
92
93 auto obj = dynamic_cast<PlaySink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
94 // Do not try to call a signal on a disassociated wrapper.
95 if(obj)
96 {
97 try
98 {
99 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
100 return static_cast<int>((*static_cast<SlotType*>(slot))());
101 }
102 catch(...)
103 {
104 Glib::exception_handlers_invoke();
105 }
106 }
107
108 using RType = gboolean;
109 return RType();
110 }
111
112 static gboolean PlaySink_signal_reconfigure_notify_callback(GstPlaySink* self, void* data)
113 {
114 using namespace Gst;
115 using SlotType = sigc::slot< void >;
116
117 auto obj = dynamic_cast<PlaySink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
118 // Do not try to call a signal on a disassociated wrapper.
119 if(obj)
120 {
121 try
122 {
123 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
124 (*static_cast<SlotType*>(slot))();
125 }
126 catch(...)
127 {
128 Glib::exception_handlers_invoke();
129 }
130 }
131
132 using RType = gboolean;
133 return RType();
134 }
135
136 static const Glib::SignalProxyInfo PlaySink_signal_reconfigure_info =
137 {
138 "reconfigure",
139 (GCallback) &PlaySink_signal_reconfigure_callback,
140 (GCallback) &PlaySink_signal_reconfigure_notify_callback
141 };
142
143
144 static GstSample* PlaySink_signal_convert_sample_callback(GstPlaySink* self, GstCaps* p0,void* data)
145 {
146 using namespace Gst;
147 using SlotType = sigc::slot< Glib::RefPtr<Gst::Sample>,const Glib::RefPtr<Gst::Caps>& >;
148
149 auto obj = dynamic_cast<PlaySink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
150 // Do not try to call a signal on a disassociated wrapper.
151 if(obj)
152 {
153 try
154 {
155 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
156 return ((*static_cast<SlotType*>(slot))(Glib::wrap(p0, true)
157 ))->gobj_copy();
158 }
159 catch(...)
160 {
161 Glib::exception_handlers_invoke();
162 }
163 }
164
165 using RType = GstSample*;
166 return RType();
167 }
168
169 static GstSample* PlaySink_signal_convert_sample_notify_callback(GstPlaySink* self, GstCaps* p0, void* data)
170 {
171 using namespace Gst;
172 using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Caps>& >;
173
174 auto obj = dynamic_cast<PlaySink*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
175 // Do not try to call a signal on a disassociated wrapper.
176 if(obj)
177 {
178 try
179 {
180 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
181 (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true)
182 );
183 }
184 catch(...)
185 {
186 Glib::exception_handlers_invoke();
187 }
188 }
189
190 using RType = GstSample*;
191 return RType();
192 }
193
194 static const Glib::SignalProxyInfo PlaySink_signal_convert_sample_info =
195 {
196 "convert-sample",
197 (GCallback) &PlaySink_signal_convert_sample_callback,
198 (GCallback) &PlaySink_signal_convert_sample_notify_callback
199 };
200
201
202 } // anonymous namespace
203
204 // static
205 GType Glib::Value<Gst::PlaySinkSendEventMode>::value_type()
206 {
207 return gst_play_sink_send_event_mode_get_type();
208 }
209
210
211 namespace Glib
212 {
213
214 Glib::RefPtr<Gst::PlaySink> wrap(GstPlaySink* object, bool take_copy)
215 {
216 return Glib::RefPtr<Gst::PlaySink>( dynamic_cast<Gst::PlaySink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
217 //We use dynamic_cast<> in case of multiple inheritance.
218 }
219
220 } /* namespace Glib */
221
222
223 namespace Gst
224 {
225
226
227 /* The *_Class implementation: */
228
229 const Glib::Class& PlaySink_Class::init()
230 {
231 if(!gtype_) // create the GType if necessary
232 {
233 // Glib::Class has to know the class init function to clone custom types.
234 class_init_func_ = &PlaySink_Class::class_init_function;
235
236 // This is actually just optimized away, apparently with no harm.
237 // Make sure that the parent type has been created.
238 //CppClassParent::CppObjectType::get_type();
239
240 // Create the wrapper type, with the same class/instance size as the base type.
241 register_derived_type(gst_play_sink_gstreamermm_get_type());
242
243 // Add derived versions of interfaces, if the C type implements any interfaces:
244 Gst::StreamVolume::add_interface(get_type());
245 Gst::VideoOverlay::add_interface(get_type());
246 Gst::Navigation::add_interface(get_type());
247 Gst::ColorBalance::add_interface(get_type());
248
249 }
250
251 return *this;
252 }
253
254
255 void PlaySink_Class::class_init_function(void* g_class, void* class_data)
256 {
257 const auto klass = static_cast<BaseClassType*>(g_class);
258 CppClassParent::class_init_function(klass, class_data);
259
260
261 }
262
263
264 Glib::ObjectBase* PlaySink_Class::wrap_new(GObject* object)
265 {
266 return new PlaySink((GstPlaySink*)object);
267 }
268
269
270 /* The implementation: */
271
272 GstPlaySink* PlaySink::gobj_copy()
273 {
274 reference();
275 return gobj();
276 }
277
278 PlaySink::PlaySink(const Glib::ConstructParams& construct_params)
279 :
280 Gst::Bin(construct_params)
281 {
282
283 }
284
285 PlaySink::PlaySink(GstPlaySink* castitem)
286 :
287 Gst::Bin((GstBin*)(castitem))
288 {}
289
290
291 PlaySink::PlaySink(PlaySink&& src) noexcept
292 : Gst::Bin(std::move(src))
293 , Gst::StreamVolume(std::move(src))
294 , Gst::VideoOverlay(std::move(src))
295 , Gst::Navigation(std::move(src))
296 , Gst::ColorBalance(std::move(src))
297 {}
298
299 PlaySink& PlaySink::operator=(PlaySink&& src) noexcept
300 {
301 Gst::Bin::operator=(std::move(src));
302 Gst::StreamVolume::operator=(std::move(src));
303 Gst::VideoOverlay::operator=(std::move(src));
304 Gst::Navigation::operator=(std::move(src));
305 Gst::ColorBalance::operator=(std::move(src));
306 return *this;
307 }
308
309
310 PlaySink::~PlaySink() noexcept
311 {}
312
313
314 PlaySink::CppClassType PlaySink::playsink_class_; // initialize static member
315
316 GType PlaySink::get_type()
317 {
318 return playsink_class_.init().get_type();
319 }
320
321
322 GType PlaySink::get_base_type()
323 {
324 return gst_play_sink_gstreamermm_get_type();
325 }
326
327
328 Glib::RefPtr<PlaySink> PlaySink::create()
329 {
330 return Glib::RefPtr<PlaySink>( new PlaySink() );
331 }
332
333 Glib::RefPtr<PlaySink> PlaySink::create(const Glib::ustring& name)
334 {
335 return Glib::RefPtr<PlaySink>( new PlaySink(name) );
336 }
337
338
339 Glib::SignalProxy< bool > PlaySink::signal_reconfigure()
340 {
341 return Glib::SignalProxy< bool >(this, &PlaySink_signal_reconfigure_info);
342 }
343
344
345 Glib::SignalProxy< Glib::RefPtr<Gst::Sample>,const Glib::RefPtr<Gst::Caps>& > PlaySink::signal_convert_sample()
346 {
347 return Glib::SignalProxy< Glib::RefPtr<Gst::Sample>,const Glib::RefPtr<Gst::Caps>& >(this, &PlaySink_signal_convert_sample_info);
348 }
349
350
351 Glib::PropertyProxy< Gst::PlayFlags > PlaySink::property_flags()
352 {
353 return Glib::PropertyProxy< Gst::PlayFlags >(this, "flags");
354 }
355
356 Glib::PropertyProxy_ReadOnly< Gst::PlayFlags > PlaySink::property_flags() const
357 {
358 return Glib::PropertyProxy_ReadOnly< Gst::PlayFlags >(this, "flags");
359 }
360
361 Glib::PropertyProxy< bool > PlaySink::property_mute()
362 {
363 return Glib::PropertyProxy< bool >(this, "mute");
364 }
365
366 Glib::PropertyProxy_ReadOnly< bool > PlaySink::property_mute() const
367 {
368 return Glib::PropertyProxy_ReadOnly< bool >(this, "mute");
369 }
370
371 Glib::PropertyProxy< double > PlaySink::property_volume()
372 {
373 return Glib::PropertyProxy< double >(this, "volume");
374 }
375
376 Glib::PropertyProxy_ReadOnly< double > PlaySink::property_volume() const
377 {
378 return Glib::PropertyProxy_ReadOnly< double >(this, "volume");
379 }
380
381 Glib::PropertyProxy_WriteOnly< Glib::ustring > PlaySink::property_subtitle_font_desc()
382 {
383 return Glib::PropertyProxy_WriteOnly< Glib::ustring >(this, "subtitle-font-desc");
384 }
385
386 Glib::PropertyProxy< Glib::ustring > PlaySink::property_subtitle_encoding()
387 {
388 return Glib::PropertyProxy< Glib::ustring >(this, "subtitle-encoding");
389 }
390
391 Glib::PropertyProxy_ReadOnly< Glib::ustring > PlaySink::property_subtitle_encoding() const
392 {
393 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "subtitle-encoding");
394 }
395
396 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_vis_plugin()
397 {
398 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "vis-plugin");
399 }
400
401 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_vis_plugin() const
402 {
403 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "vis-plugin");
404 }
405
406 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Sample> > PlaySink::property_sample() const
407 {
408 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Sample> >(this, "sample");
409 }
410
411 Glib::PropertyProxy< gint64 > PlaySink::property_av_offset()
412 {
413 return Glib::PropertyProxy< gint64 >(this, "av-offset");
414 }
415
416 Glib::PropertyProxy_ReadOnly< gint64 > PlaySink::property_av_offset() const
417 {
418 return Glib::PropertyProxy_ReadOnly< gint64 >(this, "av-offset");
419 }
420
421 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_video_sink()
422 {
423 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "video-sink");
424 }
425
426 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_video_sink() const
427 {
428 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "video-sink");
429 }
430
431 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_audio_sink()
432 {
433 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "audio-sink");
434 }
435
436 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_audio_sink() const
437 {
438 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "audio-sink");
439 }
440
441 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_text_sink()
442 {
443 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "text-sink");
444 }
445
446 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_text_sink() const
447 {
448 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "text-sink");
449 }
450
451 Glib::PropertyProxy< Gst::PlaySinkSendEventMode > PlaySink::property_send_event_mode()
452 {
453 return Glib::PropertyProxy< Gst::PlaySinkSendEventMode >(this, "send-event-mode");
454 }
455
456 Glib::PropertyProxy_ReadOnly< Gst::PlaySinkSendEventMode > PlaySink::property_send_event_mode() const
457 {
458 return Glib::PropertyProxy_ReadOnly< Gst::PlaySinkSendEventMode >(this, "send-event-mode");
459 }
460
461 Glib::PropertyProxy< bool > PlaySink::property_force_aspect_ratio()
462 {
463 return Glib::PropertyProxy< bool >(this, "force-aspect-ratio");
464 }
465
466 Glib::PropertyProxy_ReadOnly< bool > PlaySink::property_force_aspect_ratio() const
467 {
468 return Glib::PropertyProxy_ReadOnly< bool >(this, "force-aspect-ratio");
469 }
470
471 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_video_filter()
472 {
473 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "video-filter");
474 }
475
476 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_video_filter() const
477 {
478 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "video-filter");
479 }
480
481 Glib::PropertyProxy< Glib::RefPtr<Gst::Element> > PlaySink::property_audio_filter()
482 {
483 return Glib::PropertyProxy< Glib::RefPtr<Gst::Element> >(this, "audio-filter");
484 }
485
486 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> > PlaySink::property_audio_filter() const
487 {
488 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Element> >(this, "audio-filter");
489 }
490
491
492 } // namespace Gst
493
494 #endif // GSTREAMERMM_DISABLE_DEPRECATED
495
496