Debian Codegraph @

gstreamer/gstreamermm/videoconvert.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/videoconvert.h>
11 #include <gstreamermm/private/videoconvert_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_video_dither_method_get_type()
21 {
22 static GType const type = g_type_from_name("GstVideoDitherMethod");
23 return type;
24 }
25
26 static GType gst_video_resampler_method_get_type()
27 {
28 static GType const type = g_type_from_name("GstVideoResamplerMethod");
29 return type;
30 }
31
32 static GType gst_video_alpha_mode_get_type()
33 {
34 static GType const type = g_type_from_name("GstVideoAlphaMode");
35 return type;
36 }
37
38 static GType gst_video_chroma_mode_get_type()
39 {
40 static GType const type = g_type_from_name("GstVideoChromaMode");
41 return type;
42 }
43
44 static GType gst_video_matrix_mode_get_type()
45 {
46 static GType const type = g_type_from_name("GstVideoMatrixMode");
47 return type;
48 }
49
50 static GType gst_video_gamma_mode_get_type()
51 {
52 static GType const type = g_type_from_name("GstVideoGammaMode");
53 return type;
54 }
55
56 static GType gst_video_primaries_mode_get_type()
57 {
58 static GType const type = g_type_from_name("GstVideoPrimariesMode");
59 return type;
60 }
61
62 GType gst_video_convert_gstreamermm_get_type()
63 {
64 static GType type = 0;
65 GstElementFactory* factory = 0;
66 GstPluginFeature* feature = 0;
67
68 if(!type)
69 {
70 factory = gst_element_factory_find("videoconvert");
71 // Make sure that the feature is actually loaded:
72 if(factory)
73 {
74 feature =
75 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
76
77 g_object_unref(factory);
78 factory = GST_ELEMENT_FACTORY(feature);
79 type = gst_element_factory_get_element_type(factory);
80 g_object_unref(factory);
81 }
82 }
83
84 return type;
85 }
86
87 } // extern "C"
88
89 namespace Gst
90 {
91
92 VideoConvert::VideoConvert()
93 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
94 Glib::ObjectBase(nullptr),
95 Gst::BaseTransform(Glib::ConstructParams(videoconvert_class_.init(), "name",static_cast<char*>(0), nullptr))
96 {}
97
98 VideoConvert::VideoConvert(const Glib::ustring& name)
99 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
100 Glib::ObjectBase(nullptr),
101 Gst::BaseTransform(Glib::ConstructParams(videoconvert_class_.init(), "name",name.c_str(), nullptr))
102 {}
103
104 }
105
106 namespace
107 {
108 } // anonymous namespace
109
110 // static
111 GType Glib::Value<Gst::VideoDitherMethod>::value_type()
112 {
113 return gst_video_dither_method_get_type();
114 }
115
116 // static
117 GType Glib::Value<Gst::VideoResamplerMethod>::value_type()
118 {
119 return gst_video_resampler_method_get_type();
120 }
121
122 // static
123 GType Glib::Value<Gst::VideoAlphaMode>::value_type()
124 {
125 return gst_video_alpha_mode_get_type();
126 }
127
128 // static
129 GType Glib::Value<Gst::VideoChromaMode>::value_type()
130 {
131 return gst_video_chroma_mode_get_type();
132 }
133
134 // static
135 GType Glib::Value<Gst::VideoMatrixMode>::value_type()
136 {
137 return gst_video_matrix_mode_get_type();
138 }
139
140 // static
141 GType Glib::Value<Gst::VideoGammaMode>::value_type()
142 {
143 return gst_video_gamma_mode_get_type();
144 }
145
146 // static
147 GType Glib::Value<Gst::VideoPrimariesMode>::value_type()
148 {
149 return gst_video_primaries_mode_get_type();
150 }
151
152
153 namespace Glib
154 {
155
156 Glib::RefPtr<Gst::VideoConvert> wrap(GstVideoConvert* object, bool take_copy)
157 {
158 return Glib::RefPtr<Gst::VideoConvert>( dynamic_cast<Gst::VideoConvert*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
159 //We use dynamic_cast<> in case of multiple inheritance.
160 }
161
162 } /* namespace Glib */
163
164
165 namespace Gst
166 {
167
168
169 /* The *_Class implementation: */
170
171 const Glib::Class& VideoConvert_Class::init()
172 {
173 if(!gtype_) // create the GType if necessary
174 {
175 // Glib::Class has to know the class init function to clone custom types.
176 class_init_func_ = &VideoConvert_Class::class_init_function;
177
178 // This is actually just optimized away, apparently with no harm.
179 // Make sure that the parent type has been created.
180 //CppClassParent::CppObjectType::get_type();
181
182 // Create the wrapper type, with the same class/instance size as the base type.
183 register_derived_type(gst_video_convert_gstreamermm_get_type());
184
185 // Add derived versions of interfaces, if the C type implements any interfaces:
186
187 }
188
189 return *this;
190 }
191
192
193 void VideoConvert_Class::class_init_function(void* g_class, void* class_data)
194 {
195 const auto klass = static_cast<BaseClassType*>(g_class);
196 CppClassParent::class_init_function(klass, class_data);
197
198
199 }
200
201
202 Glib::ObjectBase* VideoConvert_Class::wrap_new(GObject* object)
203 {
204 return new VideoConvert((GstVideoConvert*)object);
205 }
206
207
208 /* The implementation: */
209
210 GstVideoConvert* VideoConvert::gobj_copy()
211 {
212 reference();
213 return gobj();
214 }
215
216 VideoConvert::VideoConvert(const Glib::ConstructParams& construct_params)
217 :
218 Gst::BaseTransform(construct_params)
219 {
220
221 }
222
223 VideoConvert::VideoConvert(GstVideoConvert* castitem)
224 :
225 Gst::BaseTransform((GstBaseTransform*)(castitem))
226 {}
227
228
229 VideoConvert::VideoConvert(VideoConvert&& src) noexcept
230 : Gst::BaseTransform(std::move(src))
231 {}
232
233 VideoConvert& VideoConvert::operator=(VideoConvert&& src) noexcept
234 {
235 Gst::BaseTransform::operator=(std::move(src));
236 return *this;
237 }
238
239
240 VideoConvert::~VideoConvert() noexcept
241 {}
242
243
244 VideoConvert::CppClassType VideoConvert::videoconvert_class_; // initialize static member
245
246 GType VideoConvert::get_type()
247 {
248 return videoconvert_class_.init().get_type();
249 }
250
251
252 GType VideoConvert::get_base_type()
253 {
254 return gst_video_convert_gstreamermm_get_type();
255 }
256
257
258 Glib::RefPtr<VideoConvert> VideoConvert::create()
259 {
260 return Glib::RefPtr<VideoConvert>( new VideoConvert() );
261 }
262
263 Glib::RefPtr<VideoConvert> VideoConvert::create(const Glib::ustring& name)
264 {
265 return Glib::RefPtr<VideoConvert>( new VideoConvert(name) );
266 }
267
268
269 Glib::PropertyProxy< Gst::VideoDitherMethod > VideoConvert::property_dither()
270 {
271 return Glib::PropertyProxy< Gst::VideoDitherMethod >(this, "dither");
272 }
273
274 Glib::PropertyProxy_ReadOnly< Gst::VideoDitherMethod > VideoConvert::property_dither() const
275 {
276 return Glib::PropertyProxy_ReadOnly< Gst::VideoDitherMethod >(this, "dither");
277 }
278
279 Glib::PropertyProxy< guint > VideoConvert::property_dither_quantization()
280 {
281 return Glib::PropertyProxy< guint >(this, "dither-quantization");
282 }
283
284 Glib::PropertyProxy_ReadOnly< guint > VideoConvert::property_dither_quantization() const
285 {
286 return Glib::PropertyProxy_ReadOnly< guint >(this, "dither-quantization");
287 }
288
289 Glib::PropertyProxy< Gst::VideoResamplerMethod > VideoConvert::property_chroma_resampler()
290 {
291 return Glib::PropertyProxy< Gst::VideoResamplerMethod >(this, "chroma-resampler");
292 }
293
294 Glib::PropertyProxy_ReadOnly< Gst::VideoResamplerMethod > VideoConvert::property_chroma_resampler() const
295 {
296 return Glib::PropertyProxy_ReadOnly< Gst::VideoResamplerMethod >(this, "chroma-resampler");
297 }
298
299 Glib::PropertyProxy< Gst::VideoAlphaMode > VideoConvert::property_alpha_mode()
300 {
301 return Glib::PropertyProxy< Gst::VideoAlphaMode >(this, "alpha-mode");
302 }
303
304 Glib::PropertyProxy_ReadOnly< Gst::VideoAlphaMode > VideoConvert::property_alpha_mode() const
305 {
306 return Glib::PropertyProxy_ReadOnly< Gst::VideoAlphaMode >(this, "alpha-mode");
307 }
308
309 Glib::PropertyProxy< double > VideoConvert::property_alpha_value()
310 {
311 return Glib::PropertyProxy< double >(this, "alpha-value");
312 }
313
314 Glib::PropertyProxy_ReadOnly< double > VideoConvert::property_alpha_value() const
315 {
316 return Glib::PropertyProxy_ReadOnly< double >(this, "alpha-value");
317 }
318
319 Glib::PropertyProxy< Gst::VideoChromaMode > VideoConvert::property_chroma_mode()
320 {
321 return Glib::PropertyProxy< Gst::VideoChromaMode >(this, "chroma-mode");
322 }
323
324 Glib::PropertyProxy_ReadOnly< Gst::VideoChromaMode > VideoConvert::property_chroma_mode() const
325 {
326 return Glib::PropertyProxy_ReadOnly< Gst::VideoChromaMode >(this, "chroma-mode");
327 }
328
329 Glib::PropertyProxy< Gst::VideoMatrixMode > VideoConvert::property_matrix_mode()
330 {
331 return Glib::PropertyProxy< Gst::VideoMatrixMode >(this, "matrix-mode");
332 }
333
334 Glib::PropertyProxy_ReadOnly< Gst::VideoMatrixMode > VideoConvert::property_matrix_mode() const
335 {
336 return Glib::PropertyProxy_ReadOnly< Gst::VideoMatrixMode >(this, "matrix-mode");
337 }
338
339 Glib::PropertyProxy< Gst::VideoGammaMode > VideoConvert::property_gamma_mode()
340 {
341 return Glib::PropertyProxy< Gst::VideoGammaMode >(this, "gamma-mode");
342 }
343
344 Glib::PropertyProxy_ReadOnly< Gst::VideoGammaMode > VideoConvert::property_gamma_mode() const
345 {
346 return Glib::PropertyProxy_ReadOnly< Gst::VideoGammaMode >(this, "gamma-mode");
347 }
348
349 Glib::PropertyProxy< Gst::VideoPrimariesMode > VideoConvert::property_primaries_mode()
350 {
351 return Glib::PropertyProxy< Gst::VideoPrimariesMode >(this, "primaries-mode");
352 }
353
354 Glib::PropertyProxy_ReadOnly< Gst::VideoPrimariesMode > VideoConvert::property_primaries_mode() const
355 {
356 return Glib::PropertyProxy_ReadOnly< Gst::VideoPrimariesMode >(this, "primaries-mode");
357 }
358
359
360 } // namespace Gst
361
362 #endif // GSTREAMERMM_DISABLE_DEPRECATED
363
364