Debian Codegraph @

gstreamer/gstreamermm/audioconvert.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/audioconvert.h>
11 #include <gstreamermm/private/audioconvert_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_audio_dither_method_get_type()
21 {
22 static GType const type = g_type_from_name("GstAudioDitherMethod");
23 return type;
24 }
25
26 static GType gst_audio_noise_shaping_method_get_type()
27 {
28 static GType const type = g_type_from_name("GstAudioNoiseShapingMethod");
29 return type;
30 }
31
32 GType gst_audio_convert_gstreamermm_get_type()
33 {
34 static GType type = 0;
35 GstElementFactory* factory = 0;
36 GstPluginFeature* feature = 0;
37
38 if(!type)
39 {
40 factory = gst_element_factory_find("audioconvert");
41 // Make sure that the feature is actually loaded:
42 if(factory)
43 {
44 feature =
45 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
46
47 g_object_unref(factory);
48 factory = GST_ELEMENT_FACTORY(feature);
49 type = gst_element_factory_get_element_type(factory);
50 g_object_unref(factory);
51 }
52 }
53
54 return type;
55 }
56
57 } // extern "C"
58
59 namespace Gst
60 {
61
62 AudioConvert::AudioConvert()
63 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
64 Glib::ObjectBase(nullptr),
65 Gst::BaseTransform(Glib::ConstructParams(audioconvert_class_.init(), "name",static_cast<char*>(0), nullptr))
66 {}
67
68 AudioConvert::AudioConvert(const Glib::ustring& name)
69 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
70 Glib::ObjectBase(nullptr),
71 Gst::BaseTransform(Glib::ConstructParams(audioconvert_class_.init(), "name",name.c_str(), nullptr))
72 {}
73
74 }
75
76 namespace
77 {
78 } // anonymous namespace
79
80 // static
81 GType Glib::Value<Gst::AudioDitherMethod>::value_type()
82 {
83 return gst_audio_dither_method_get_type();
84 }
85
86 // static
87 GType Glib::Value<Gst::AudioNoiseShapingMethod>::value_type()
88 {
89 return gst_audio_noise_shaping_method_get_type();
90 }
91
92
93 namespace Glib
94 {
95
96 Glib::RefPtr<Gst::AudioConvert> wrap(GstAudioConvert* object, bool take_copy)
97 {
98 return Glib::RefPtr<Gst::AudioConvert>( dynamic_cast<Gst::AudioConvert*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
99 //We use dynamic_cast<> in case of multiple inheritance.
100 }
101
102 } /* namespace Glib */
103
104
105 namespace Gst
106 {
107
108
109 /* The *_Class implementation: */
110
111 const Glib::Class& AudioConvert_Class::init()
112 {
113 if(!gtype_) // create the GType if necessary
114 {
115 // Glib::Class has to know the class init function to clone custom types.
116 class_init_func_ = &AudioConvert_Class::class_init_function;
117
118 // This is actually just optimized away, apparently with no harm.
119 // Make sure that the parent type has been created.
120 //CppClassParent::CppObjectType::get_type();
121
122 // Create the wrapper type, with the same class/instance size as the base type.
123 register_derived_type(gst_audio_convert_gstreamermm_get_type());
124
125 // Add derived versions of interfaces, if the C type implements any interfaces:
126
127 }
128
129 return *this;
130 }
131
132
133 void AudioConvert_Class::class_init_function(void* g_class, void* class_data)
134 {
135 const auto klass = static_cast<BaseClassType*>(g_class);
136 CppClassParent::class_init_function(klass, class_data);
137
138
139 }
140
141
142 Glib::ObjectBase* AudioConvert_Class::wrap_new(GObject* object)
143 {
144 return new AudioConvert((GstAudioConvert*)object);
145 }
146
147
148 /* The implementation: */
149
150 GstAudioConvert* AudioConvert::gobj_copy()
151 {
152 reference();
153 return gobj();
154 }
155
156 AudioConvert::AudioConvert(const Glib::ConstructParams& construct_params)
157 :
158 Gst::BaseTransform(construct_params)
159 {
160
161 }
162
163 AudioConvert::AudioConvert(GstAudioConvert* castitem)
164 :
165 Gst::BaseTransform((GstBaseTransform*)(castitem))
166 {}
167
168
169 AudioConvert::AudioConvert(AudioConvert&& src) noexcept
170 : Gst::BaseTransform(std::move(src))
171 {}
172
173 AudioConvert& AudioConvert::operator=(AudioConvert&& src) noexcept
174 {
175 Gst::BaseTransform::operator=(std::move(src));
176 return *this;
177 }
178
179
180 AudioConvert::~AudioConvert() noexcept
181 {}
182
183
184 AudioConvert::CppClassType AudioConvert::audioconvert_class_; // initialize static member
185
186 GType AudioConvert::get_type()
187 {
188 return audioconvert_class_.init().get_type();
189 }
190
191
192 GType AudioConvert::get_base_type()
193 {
194 return gst_audio_convert_gstreamermm_get_type();
195 }
196
197
198 Glib::RefPtr<AudioConvert> AudioConvert::create()
199 {
200 return Glib::RefPtr<AudioConvert>( new AudioConvert() );
201 }
202
203 Glib::RefPtr<AudioConvert> AudioConvert::create(const Glib::ustring& name)
204 {
205 return Glib::RefPtr<AudioConvert>( new AudioConvert(name) );
206 }
207
208
209 Glib::PropertyProxy< Gst::AudioDitherMethod > AudioConvert::property_dithering()
210 {
211 return Glib::PropertyProxy< Gst::AudioDitherMethod >(this, "dithering");
212 }
213
214 Glib::PropertyProxy_ReadOnly< Gst::AudioDitherMethod > AudioConvert::property_dithering() const
215 {
216 return Glib::PropertyProxy_ReadOnly< Gst::AudioDitherMethod >(this, "dithering");
217 }
218
219 Glib::PropertyProxy< Gst::AudioNoiseShapingMethod > AudioConvert::property_noise_shaping()
220 {
221 return Glib::PropertyProxy< Gst::AudioNoiseShapingMethod >(this, "noise-shaping");
222 }
223
224 Glib::PropertyProxy_ReadOnly< Gst::AudioNoiseShapingMethod > AudioConvert::property_noise_shaping() const
225 {
226 return Glib::PropertyProxy_ReadOnly< Gst::AudioNoiseShapingMethod >(this, "noise-shaping");
227 }
228
229
230 } // namespace Gst
231
232 #endif // GSTREAMERMM_DISABLE_DEPRECATED
233
234