Debian Codegraph @

gstreamer/gstreamermm/vorbisenc.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/vorbisenc.h>
11 #include <gstreamermm/private/vorbisenc_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_vorbis_enc_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("vorbisenc");
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 VorbisEnc::VorbisEnc()
51 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
52 Glib::ObjectBase(nullptr),
53 Gst::Element(Glib::ConstructParams(vorbisenc_class_.init(), "name",static_cast<char*>(0), nullptr))
54 {}
55
56 VorbisEnc::VorbisEnc(const Glib::ustring& name)
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::Element(Glib::ConstructParams(vorbisenc_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::VorbisEnc> wrap(GstVorbisEnc* object, bool take_copy)
73 {
74 return Glib::RefPtr<Gst::VorbisEnc>( dynamic_cast<Gst::VorbisEnc*> (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& VorbisEnc_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_ = &VorbisEnc_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_vorbis_enc_gstreamermm_get_type());
100
101 // Add derived versions of interfaces, if the C type implements any interfaces:
102 Gst::TagSetter::add_interface(get_type());
103
104 }
105
106 return *this;
107 }
108
109
110 void VorbisEnc_Class::class_init_function(void* g_class, void* class_data)
111 {
112 const auto klass = static_cast<BaseClassType*>(g_class);
113 CppClassParent::class_init_function(klass, class_data);
114
115
116 }
117
118
119 Glib::ObjectBase* VorbisEnc_Class::wrap_new(GObject* object)
120 {
121 return new VorbisEnc((GstVorbisEnc*)object);
122 }
123
124
125 /* The implementation: */
126
127 GstVorbisEnc* VorbisEnc::gobj_copy()
128 {
129 reference();
130 return gobj();
131 }
132
133 VorbisEnc::VorbisEnc(const Glib::ConstructParams& construct_params)
134 :
135 Gst::Element(construct_params)
136 {
137
138 }
139
140 VorbisEnc::VorbisEnc(GstVorbisEnc* castitem)
141 :
142 Gst::Element((GstElement*)(castitem))
143 {}
144
145
146 VorbisEnc::VorbisEnc(VorbisEnc&& src) noexcept
147 : Gst::Element(std::move(src))
148 , Gst::TagSetter(std::move(src))
149 {}
150
151 VorbisEnc& VorbisEnc::operator=(VorbisEnc&& src) noexcept
152 {
153 Gst::Element::operator=(std::move(src));
154 Gst::TagSetter::operator=(std::move(src));
155 return *this;
156 }
157
158
159 VorbisEnc::~VorbisEnc() noexcept
160 {}
161
162
163 VorbisEnc::CppClassType VorbisEnc::vorbisenc_class_; // initialize static member
164
165 GType VorbisEnc::get_type()
166 {
167 return vorbisenc_class_.init().get_type();
168 }
169
170
171 GType VorbisEnc::get_base_type()
172 {
173 return gst_vorbis_enc_gstreamermm_get_type();
174 }
175
176
177 Glib::RefPtr<VorbisEnc> VorbisEnc::create()
178 {
179 return Glib::RefPtr<VorbisEnc>( new VorbisEnc() );
180 }
181
182 Glib::RefPtr<VorbisEnc> VorbisEnc::create(const Glib::ustring& name)
183 {
184 return Glib::RefPtr<VorbisEnc>( new VorbisEnc(name) );
185 }
186
187
188 Glib::PropertyProxy< int > VorbisEnc::property_max_bitrate()
189 {
190 return Glib::PropertyProxy< int >(this, "max-bitrate");
191 }
192
193 Glib::PropertyProxy_ReadOnly< int > VorbisEnc::property_max_bitrate() const
194 {
195 return Glib::PropertyProxy_ReadOnly< int >(this, "max-bitrate");
196 }
197
198 Glib::PropertyProxy< int > VorbisEnc::property_bitrate()
199 {
200 return Glib::PropertyProxy< int >(this, "bitrate");
201 }
202
203 Glib::PropertyProxy_ReadOnly< int > VorbisEnc::property_bitrate() const
204 {
205 return Glib::PropertyProxy_ReadOnly< int >(this, "bitrate");
206 }
207
208 Glib::PropertyProxy< int > VorbisEnc::property_min_bitrate()
209 {
210 return Glib::PropertyProxy< int >(this, "min-bitrate");
211 }
212
213 Glib::PropertyProxy_ReadOnly< int > VorbisEnc::property_min_bitrate() const
214 {
215 return Glib::PropertyProxy_ReadOnly< int >(this, "min-bitrate");
216 }
217
218 Glib::PropertyProxy< float > VorbisEnc::property_quality()
219 {
220 return Glib::PropertyProxy< float >(this, "quality");
221 }
222
223 Glib::PropertyProxy_ReadOnly< float > VorbisEnc::property_quality() const
224 {
225 return Glib::PropertyProxy_ReadOnly< float >(this, "quality");
226 }
227
228 Glib::PropertyProxy< bool > VorbisEnc::property_managed()
229 {
230 return Glib::PropertyProxy< bool >(this, "managed");
231 }
232
233 Glib::PropertyProxy_ReadOnly< bool > VorbisEnc::property_managed() const
234 {
235 return Glib::PropertyProxy_ReadOnly< bool >(this, "managed");
236 }
237
238 Glib::PropertyProxy_ReadOnly< Glib::ustring > VorbisEnc::property_last_message() const
239 {
240 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "last-message");
241 }
242
243
244 } // namespace Gst
245
246 #endif // GSTREAMERMM_DISABLE_DEPRECATED
247
248