Debian Codegraph @

gstreamer/gstreamermm/encodingprofile.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/encodingprofile.h>
7 #include <gstreamermm/private/encodingprofile_p.h>
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 2008-2016 The gstreamermm Development Team
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 */
28 #include <gst/pbutils/encoding-profile.h>
29 #include <gstreamermm/caps.h>
30
31
32 namespace
33 {
34 } // anonymous namespace
35
36
37 namespace Glib
38 {
39
40 Glib::RefPtr<Gst::EncodingProfile> wrap(GstEncodingProfile* object, bool take_copy)
41 {
42 return Glib::RefPtr<Gst::EncodingProfile>( dynamic_cast<Gst::EncodingProfile*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
43 //We use dynamic_cast<> in case of multiple inheritance.
44 }
45
46 } /* namespace Glib */
47
48
49 namespace Gst
50 {
51
52
53 /* The *_Class implementation: */
54
55 const Glib::Class& EncodingProfile_Class::init()
56 {
57 if(!gtype_) // create the GType if necessary
58 {
59 // Glib::Class has to know the class init function to clone custom types.
60 class_init_func_ = &EncodingProfile_Class::class_init_function;
61
62 // This is actually just optimized away, apparently with no harm.
63 // Make sure that the parent type has been created.
64 //CppClassParent::CppObjectType::get_type();
65
66 // Create the wrapper type, with the same class/instance size as the base type.
67 register_derived_type(gst_encoding_profile_get_type());
68
69 // Add derived versions of interfaces, if the C type implements any interfaces:
70
71 }
72
73 return *this;
74 }
75
76
77 void EncodingProfile_Class::class_init_function(void* g_class, void* class_data)
78 {
79 const auto klass = static_cast<BaseClassType*>(g_class);
80 CppClassParent::class_init_function(klass, class_data);
81
82
83 }
84
85
86 Glib::ObjectBase* EncodingProfile_Class::wrap_new(GObject* object)
87 {
88 return new EncodingProfile((GstEncodingProfile*)object);
89 }
90
91
92 /* The implementation: */
93
94 GstEncodingProfile* EncodingProfile::gobj_copy()
95 {
96 reference();
97 return gobj();
98 }
99
100 EncodingProfile::EncodingProfile(const Glib::ConstructParams& construct_params)
101 :
102 Gst::Object(construct_params)
103 {
104
105 }
106
107 EncodingProfile::EncodingProfile(GstEncodingProfile* castitem)
108 :
109 Gst::Object((GstObject*)(castitem))
110 {}
111
112
113 EncodingProfile::EncodingProfile(EncodingProfile&& src) noexcept
114 : Gst::Object(std::move(src))
115 {}
116
117 EncodingProfile& EncodingProfile::operator=(EncodingProfile&& src) noexcept
118 {
119 Gst::Object::operator=(std::move(src));
120 return *this;
121 }
122
123
124 EncodingProfile::~EncodingProfile() noexcept
125 {}
126
127
128 EncodingProfile::CppClassType EncodingProfile::encodingprofile_class_; // initialize static member
129
130 GType EncodingProfile::get_type()
131 {
132 return encodingprofile_class_.init().get_type();
133 }
134
135
136 GType EncodingProfile::get_base_type()
137 {
138 return gst_encoding_profile_get_type();
139 }
140
141
142 Glib::ustring EncodingProfile::get_name() const
143 {
144 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_name(const_cast<GstEncodingProfile*>(gobj())));
145 }
146
147 Glib::ustring EncodingProfile::get_description() const
148 {
149 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_description(const_cast<GstEncodingProfile*>(gobj())));
150 }
151
152 Glib::RefPtr<Gst::Caps> EncodingProfile::get_format()
153 {
154 return Glib::wrap(gst_encoding_profile_get_format(gobj()));
155 }
156
157 Glib::RefPtr<const Gst::Caps> EncodingProfile::get_format() const
158 {
159 return Glib::wrap(gst_encoding_profile_get_format(const_cast<GstEncodingProfile*>(gobj())));
160 }
161
162 Glib::ustring EncodingProfile::get_preset() const
163 {
164 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_preset(const_cast<GstEncodingProfile*>(gobj())));
165 }
166
167 Glib::ustring EncodingProfile::get_preset_name() const
168 {
169 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_preset_name(const_cast<GstEncodingProfile*>(gobj())));
170 }
171
172 guint EncodingProfile::get_presence() const
173 {
174 return gst_encoding_profile_get_presence(const_cast<GstEncodingProfile*>(gobj()));
175 }
176
177 Glib::RefPtr<Gst::Caps> EncodingProfile::get_restriction()
178 {
179 return Glib::wrap(gst_encoding_profile_get_restriction(gobj()));
180 }
181
182 Glib::RefPtr<const Gst::Caps> EncodingProfile::get_restriction() const
183 {
184 return const_cast<EncodingProfile*>(this)->get_restriction();
185 }
186
187 Glib::ustring EncodingProfile::get_file_extension() const
188 {
189 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_file_extension(const_cast<GstEncodingProfile*>(gobj())));
190 }
191
192 void EncodingProfile::set_name(const Glib::ustring& name)
193 {
194 gst_encoding_profile_set_name(gobj(), name.c_str());
195 }
196
197 void EncodingProfile::set_description(const Glib::ustring& name)
198 {
199 gst_encoding_profile_set_description(gobj(), name.c_str());
200 }
201
202 void EncodingProfile::set_enabled(bool enabled)
203 {
204 gst_encoding_profile_set_enabled(gobj(), static_cast<int>(enabled));
205 }
206
207 void EncodingProfile::set_format(const Glib::RefPtr<Gst::Caps>& format)
208 {
209 gst_encoding_profile_set_format(gobj(), Glib::unwrap(format));
210 }
211
212 void EncodingProfile::set_preset(const Glib::ustring& preset)
213 {
214 gst_encoding_profile_set_preset(gobj(), preset.c_str());
215 }
216
217 void EncodingProfile::set_preset_name(const Glib::ustring& preset_name)
218 {
219 gst_encoding_profile_set_preset_name(gobj(), preset_name.c_str());
220 }
221
222 void EncodingProfile::set_restriction(const Glib::RefPtr<Gst::Caps>& restriction)
223 {
224 gst_encoding_profile_set_restriction(gobj(), Glib::unwrap(restriction));
225 }
226
227 void EncodingProfile::set_presence(guint presence)
228 {
229 gst_encoding_profile_set_presence(gobj(), presence);
230 }
231
232 bool EncodingProfile::is_equal(const Glib::RefPtr<Gst::EncodingProfile>& profile2) const
233 {
234 return gst_encoding_profile_is_equal(const_cast<GstEncodingProfile*>(gobj()), Glib::unwrap(profile2));
235 }
236
237 bool EncodingProfile::is_enabled() const
238 {
239 return gst_encoding_profile_is_enabled(const_cast<GstEncodingProfile*>(gobj()));
240 }
241
242 Glib::RefPtr<Gst::Caps> EncodingProfile::get_input_caps() const
243 {
244 return Glib::wrap(gst_encoding_profile_get_input_caps(const_cast<GstEncodingProfile*>(gobj())));
245 }
246
247 Glib::ustring EncodingProfile::get_type_nick() const
248 {
249 return Glib::convert_const_gchar_ptr_to_ustring(gst_encoding_profile_get_type_nick(const_cast<GstEncodingProfile*>(gobj())));
250 }
251
252 bool EncodingProfile::get_allow_dynamic_output() const
253 {
254 return gst_encoding_profile_get_allow_dynamic_output(const_cast<GstEncodingProfile*>(gobj()));
255 }
256
257 void EncodingProfile::set_allow_dynamic_output(bool allow_dynamic_output)
258 {
259 gst_encoding_profile_set_allow_dynamic_output(gobj(), static_cast<int>(allow_dynamic_output));
260 }
261
262
263 } // namespace Gst
264
265