Debian Codegraph @

gstreamer/gstreamermm/xvimagesink.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/xvimagesink.h>
11 #include <gstreamermm/private/xvimagesink_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_xv_image_sink_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("xvimagesink");
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 XvImageSink::XvImageSink()
51 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
52 Glib::ObjectBase(nullptr),
53 Gst::VideoSink(Glib::ConstructParams(xvimagesink_class_.init(), "name",static_cast<char*>(0), nullptr))
54 {}
55
56 XvImageSink::XvImageSink(const Glib::ustring& name)
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::VideoSink(Glib::ConstructParams(xvimagesink_class_.init(), "name",name.c_str(), nullptr))
60 {}
61
62 }
63
64 namespace
65 {
66 } // anonymous namespace
67
68
69 namespace Glib
70 {
71
72 Glib::RefPtr<Gst::XvImageSink> wrap(GstXvImageSink* object, bool take_copy)
73 {
74 return Glib::RefPtr<Gst::XvImageSink>( dynamic_cast<Gst::XvImageSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
75 //We use dynamic_cast<> in case of multiple inheritance.
76 }
77
78 } /* namespace Glib */
79
80
81 namespace Gst
82 {
83
84
85 /* The *_Class implementation: */
86
87 const Glib::Class& XvImageSink_Class::init()
88 {
89 if(!gtype_) // create the GType if necessary
90 {
91 // Glib::Class has to know the class init function to clone custom types.
92 class_init_func_ = &XvImageSink_Class::class_init_function;
93
94 // This is actually just optimized away, apparently with no harm.
95 // Make sure that the parent type has been created.
96 //CppClassParent::CppObjectType::get_type();
97
98 // Create the wrapper type, with the same class/instance size as the base type.
99 register_derived_type(gst_xv_image_sink_gstreamermm_get_type());
100
101 // Add derived versions of interfaces, if the C type implements any interfaces:
102 Gst::Navigation::add_interface(get_type());
103 Gst::VideoOverlay::add_interface(get_type());
104 Gst::ColorBalance::add_interface(get_type());
105
106 }
107
108 return *this;
109 }
110
111
112 void XvImageSink_Class::class_init_function(void* g_class, void* class_data)
113 {
114 const auto klass = static_cast<BaseClassType*>(g_class);
115 CppClassParent::class_init_function(klass, class_data);
116
117
118 }
119
120
121 Glib::ObjectBase* XvImageSink_Class::wrap_new(GObject* object)
122 {
123 return new XvImageSink((GstXvImageSink*)object);
124 }
125
126
127 /* The implementation: */
128
129 GstXvImageSink* XvImageSink::gobj_copy()
130 {
131 reference();
132 return gobj();
133 }
134
135 XvImageSink::XvImageSink(const Glib::ConstructParams& construct_params)
136 :
137 Gst::VideoSink(construct_params)
138 {
139
140 }
141
142 XvImageSink::XvImageSink(GstXvImageSink* castitem)
143 :
144 Gst::VideoSink((GstVideoSink*)(castitem))
145 {}
146
147
148 XvImageSink::XvImageSink(XvImageSink&& src) noexcept
149 : Gst::VideoSink(std::move(src))
150 , Gst::Navigation(std::move(src))
151 , Gst::VideoOverlay(std::move(src))
152 , Gst::ColorBalance(std::move(src))
153 {}
154
155 XvImageSink& XvImageSink::operator=(XvImageSink&& src) noexcept
156 {
157 Gst::VideoSink::operator=(std::move(src));
158 Gst::Navigation::operator=(std::move(src));
159 Gst::VideoOverlay::operator=(std::move(src));
160 Gst::ColorBalance::operator=(std::move(src));
161 return *this;
162 }
163
164
165 XvImageSink::~XvImageSink() noexcept
166 {}
167
168
169 XvImageSink::CppClassType XvImageSink::xvimagesink_class_; // initialize static member
170
171 GType XvImageSink::get_type()
172 {
173 return xvimagesink_class_.init().get_type();
174 }
175
176
177 GType XvImageSink::get_base_type()
178 {
179 return gst_xv_image_sink_gstreamermm_get_type();
180 }
181
182
183 Glib::RefPtr<XvImageSink> XvImageSink::create()
184 {
185 return Glib::RefPtr<XvImageSink>( new XvImageSink() );
186 }
187
188 Glib::RefPtr<XvImageSink> XvImageSink::create(const Glib::ustring& name)
189 {
190 return Glib::RefPtr<XvImageSink>( new XvImageSink(name) );
191 }
192
193
194 Glib::PropertyProxy< int > XvImageSink::property_contrast()
195 {
196 return Glib::PropertyProxy< int >(this, "contrast");
197 }
198
199 Glib::PropertyProxy_ReadOnly< int > XvImageSink::property_contrast() const
200 {
201 return Glib::PropertyProxy_ReadOnly< int >(this, "contrast");
202 }
203
204 Glib::PropertyProxy< int > XvImageSink::property_brightness()
205 {
206 return Glib::PropertyProxy< int >(this, "brightness");
207 }
208
209 Glib::PropertyProxy_ReadOnly< int > XvImageSink::property_brightness() const
210 {
211 return Glib::PropertyProxy_ReadOnly< int >(this, "brightness");
212 }
213
214 Glib::PropertyProxy< int > XvImageSink::property_hue()
215 {
216 return Glib::PropertyProxy< int >(this, "hue");
217 }
218
219 Glib::PropertyProxy_ReadOnly< int > XvImageSink::property_hue() const
220 {
221 return Glib::PropertyProxy_ReadOnly< int >(this, "hue");
222 }
223
224 Glib::PropertyProxy< int > XvImageSink::property_saturation()
225 {
226 return Glib::PropertyProxy< int >(this, "saturation");
227 }
228
229 Glib::PropertyProxy_ReadOnly< int > XvImageSink::property_saturation() const
230 {
231 return Glib::PropertyProxy_ReadOnly< int >(this, "saturation");
232 }
233
234 Glib::PropertyProxy< Glib::ustring > XvImageSink::property_display()
235 {
236 return Glib::PropertyProxy< Glib::ustring >(this, "display");
237 }
238
239 Glib::PropertyProxy_ReadOnly< Glib::ustring > XvImageSink::property_display() const
240 {
241 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "display");
242 }
243
244 Glib::PropertyProxy< bool > XvImageSink::property_synchronous()
245 {
246 return Glib::PropertyProxy< bool >(this, "synchronous");
247 }
248
249 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_synchronous() const
250 {
251 return Glib::PropertyProxy_ReadOnly< bool >(this, "synchronous");
252 }
253
254 Glib::PropertyProxy< Glib::ustring > XvImageSink::property_pixel_aspect_ratio()
255 {
256 return Glib::PropertyProxy< Glib::ustring >(this, "pixel-aspect-ratio");
257 }
258
259 Glib::PropertyProxy_ReadOnly< Glib::ustring > XvImageSink::property_pixel_aspect_ratio() const
260 {
261 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "pixel-aspect-ratio");
262 }
263
264 Glib::PropertyProxy< bool > XvImageSink::property_force_aspect_ratio()
265 {
266 return Glib::PropertyProxy< bool >(this, "force-aspect-ratio");
267 }
268
269 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_force_aspect_ratio() const
270 {
271 return Glib::PropertyProxy_ReadOnly< bool >(this, "force-aspect-ratio");
272 }
273
274 Glib::PropertyProxy< bool > XvImageSink::property_handle_events()
275 {
276 return Glib::PropertyProxy< bool >(this, "handle-events");
277 }
278
279 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_handle_events() const
280 {
281 return Glib::PropertyProxy_ReadOnly< bool >(this, "handle-events");
282 }
283
284 Glib::PropertyProxy< Glib::ustring > XvImageSink::property_device()
285 {
286 return Glib::PropertyProxy< Glib::ustring >(this, "device");
287 }
288
289 Glib::PropertyProxy_ReadOnly< Glib::ustring > XvImageSink::property_device() const
290 {
291 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "device");
292 }
293
294 Glib::PropertyProxy_ReadOnly< Glib::ustring > XvImageSink::property_device_name() const
295 {
296 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "device-name");
297 }
298
299 Glib::PropertyProxy< bool > XvImageSink::property_handle_expose()
300 {
301 return Glib::PropertyProxy< bool >(this, "handle-expose");
302 }
303
304 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_handle_expose() const
305 {
306 return Glib::PropertyProxy_ReadOnly< bool >(this, "handle-expose");
307 }
308
309 Glib::PropertyProxy< bool > XvImageSink::property_double_buffer()
310 {
311 return Glib::PropertyProxy< bool >(this, "double-buffer");
312 }
313
314 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_double_buffer() const
315 {
316 return Glib::PropertyProxy_ReadOnly< bool >(this, "double-buffer");
317 }
318
319 Glib::PropertyProxy< bool > XvImageSink::property_autopaint_colorkey()
320 {
321 return Glib::PropertyProxy< bool >(this, "autopaint-colorkey");
322 }
323
324 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_autopaint_colorkey() const
325 {
326 return Glib::PropertyProxy_ReadOnly< bool >(this, "autopaint-colorkey");
327 }
328
329 Glib::PropertyProxy< int > XvImageSink::property_colorkey()
330 {
331 return Glib::PropertyProxy< int >(this, "colorkey");
332 }
333
334 Glib::PropertyProxy_ReadOnly< int > XvImageSink::property_colorkey() const
335 {
336 return Glib::PropertyProxy_ReadOnly< int >(this, "colorkey");
337 }
338
339 Glib::PropertyProxy< bool > XvImageSink::property_draw_borders()
340 {
341 return Glib::PropertyProxy< bool >(this, "draw-borders");
342 }
343
344 Glib::PropertyProxy_ReadOnly< bool > XvImageSink::property_draw_borders() const
345 {
346 return Glib::PropertyProxy_ReadOnly< bool >(this, "draw-borders");
347 }
348
349 Glib::PropertyProxy_ReadOnly< guint64 > XvImageSink::property_window_width() const
350 {
351 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "window-width");
352 }
353
354 Glib::PropertyProxy_ReadOnly< guint64 > XvImageSink::property_window_height() const
355 {
356 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "window-height");
357 }
358
359
360 } // namespace Gst
361
362 #endif // GSTREAMERMM_DISABLE_DEPRECATED
363
364