Debian Codegraph @

gstreamer/gstreamermm/typefind.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/typefind.cc`/
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/typefind.h>cxx . . $ `<file>/gstreamer/gstreamermm/typefind.h`/
7 #include <gstreamermm/private/typefind_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/typefind_p.h`/
8
9 #include <cstring> // std::memset()
10
11 /* gstreamermm - a C++ wrapper for gstreamer
12 *
13 * Copyright 2009 The gstreamermm Development Team
14 *
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free
27 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 */
29
30 #include <gst/gst.h>
31 #include <gstreamermm/caps.h>cxx . . $ `<file>/gstreamer/gstreamermm/caps.h`/
32 #include <gstreamermm/plugin.h>cxx . . $ `<file>/gstreamer/gstreamermm/plugin.h`/
33
34 namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/typefind.cc`/
35 {
36
37 extern "C"
38 {
39
40 static void TypeFind_Find_gstreamermm_callback(GstTypeFind*, void* data)
41 {
42 Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#::SlotFindcxx . . $ Gst/TypeFind#SlotFind#& slot_find = *static_cast<Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#::SlotFindcxx . . $ Gst/TypeFind#SlotFind#*>(data);
43
44 try
45 {
46 slot_find(cxx . . $ sigc/slot0#`operator()`(8f5363d873dd4781).);
47 }
48 catch (...)
49 {
50 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
51 }
52 }
53
54 static void TypeFind_Find_gstreamermm_callback_destroy(void* data)
55 {
56 delete static_cast<Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#::SlotFindcxx . . $ Gst/TypeFind#SlotFind#*>(data);
57 }
58
59 } // extern "C"
60
61 } // anonymous namespace
62
63 namespace Gstcxx . . $ Gst/
64 {
65
66 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(7c504eb0bb936e37).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Plugincxx . . $ Gst/Plugin#>& plugin,
67 const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank, const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot,
68 const Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle#& extensions,
69 const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps)
70 {
71 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
72 return gst_type_find_register(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(plugin), name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
73 &TypeFind_Find_gstreamermm_callback,
74 (gchar*)extensions.datacxx . . $ Glib/ArrayHandle#data(b6fa4944fac54184).(), const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)), slot_copy,
75 &TypeFind_Find_gstreamermm_callback_destroy);
76 }
77
78 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(6d283f3883cb68da).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Plugincxx . . $ Gst/Plugin#>& plugin,
79 const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank, const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot,
80 const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps)
81 {
82 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
83 return gst_type_find_register(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(plugin), name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
84 &TypeFind_Find_gstreamermm_callback, nullptr, const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)), slot_copy,
85 &TypeFind_Find_gstreamermm_callback_destroy);
86 }
87
88 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(baaddeee89605b3f).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Plugincxx . . $ Gst/Plugin#>& plugin,
89 const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank, const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot,
90 const Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle#& extensions)
91 {
92 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
93 return gst_type_find_register(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(plugin), name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
94 &TypeFind_Find_gstreamermm_callback,
95 (gchar*)extensions.datacxx . . $ Glib/ArrayHandle#data(b6fa4944fac54184).(), nullptr, slot_copy,
96 &TypeFind_Find_gstreamermm_callback_destroy);
97 }
98
99 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(c1df373bd910114c).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Plugincxx . . $ Gst/Plugin#>& plugin,
100 const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank, const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot)
101 {
102 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
103 return gst_type_find_register(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(plugin), name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
104 &TypeFind_Find_gstreamermm_callback, nullptr, nullptr, slot_copy,
105 &TypeFind_Find_gstreamermm_callback_destroy);
106 }
107
108 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(140478ec11a66faa).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank,
109 const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot, const Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle#& extensions,
110 const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps)
111 {
112 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
113 return gst_type_find_register(nullptr, name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
114 &TypeFind_Find_gstreamermm_callback,
115 (gchar*)extensions.datacxx . . $ Glib/ArrayHandle#data(b6fa4944fac54184).(), const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)), slot_copy,
116 &TypeFind_Find_gstreamermm_callback_destroy);
117 }
118
119 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(f33945ddd1fac757).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank,
120 const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps)
121 {
122 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
123 return gst_type_find_register(nullptr, name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
124 &TypeFind_Find_gstreamermm_callback, nullptr, const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)), slot_copy,
125 &TypeFind_Find_gstreamermm_callback_destroy);
126 }
127
128 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(6d97519a2e2ca3f3).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank,
129 const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot, const Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle#& extensions)
130 {
131 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
132 return gst_type_find_register(nullptr, name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
133 &TypeFind_Find_gstreamermm_callback,
134 (gchar*)extensions.datacxx . . $ Glib/ArrayHandle#data(b6fa4944fac54184).(), nullptr, slot_copy,
135 &TypeFind_Find_gstreamermm_callback_destroy);
136 }
137
138 bool TypeFindcxx . . $ Gst/TypeFind#::register_slotcxx . . $ Gst/TypeFind#register_slot(e255ee4c8916eb1c).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, guint rank,
139 const SlotFindcxx . . $ Gst/TypeFind#SlotFind#& find_slot)
140 {
141 SlotFindcxx . . $ Gst/TypeFind#SlotFind#* slot_copy = new SlotFindcxx . . $ Gst/TypeFind#SlotFind#(find_slot);
142 return gst_type_find_register(nullptr, name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), rank,
143 &TypeFind_Find_gstreamermm_callback, nullptr, nullptr, slot_copy,
144 &TypeFind_Find_gstreamermm_callback_destroy);
145 }
146
147 } // namespace Gst
148
149 namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/typefind.cc`/
150 {
151 } // anonymous namespace
152
153 // static
154 GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::TypeFindProbability>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).()
155 {
156 return gst_type_find_probability_get_type();
157 }
158
159
160 namespace Glibcxx . . $ Glib/
161 {
162
163 Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#& wrapcxx . . $ Glib/wrap(d1f2098b252b1192).(GstTypeFind* object)
164 {
165 return *reinterpret_cast<Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#*>(object);
166 }
167
168 const Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#& wrapcxx . . $ Glib/wrap(3e851b572dadfe8e).(const GstTypeFind* object)
169 {
170 return *reinterpret_cast<const Gstcxx . . $ Gst/::TypeFindcxx . . $ Gst/TypeFind#*>(object);
171 }
172
173 } // namespace Glib
174
175
176 namespace Gstcxx . . $ Gst/
177 {
178
179
180 TypeFindcxx . . $ Gst/TypeFind#::TypeFindcxx . . $ Gst/TypeFind#TypeFind(7ca95039359a63af).(const TypeFindcxx . . $ Gst/TypeFind#& other) noexcept
181 :
182 gobject_cxx . . $ Gst/TypeFind#gobject_.(other.gobject_cxx . . $ Gst/TypeFind#gobject_.)
183 {
184 }
185
186 TypeFindcxx . . $ Gst/TypeFind#& TypeFindcxx . . $ Gst/TypeFind#::operatorcxx . . $ Gst/TypeFind#`operator=`(c02fee5b40d6d909).=(const TypeFindcxx . . $ Gst/TypeFind#& other) noexcept
187 {
188 gobject_cxx . . $ Gst/TypeFind#gobject_. =cxx . . $ _GstTypeFind#`operator=`(5b425107f4b0fb3e). other.gobject_cxx . . $ Gst/TypeFind#gobject_.;
189 return *this;
190 }
191
192 TypeFindcxx . . $ Gst/TypeFind#::TypeFindcxx . . $ Gst/TypeFind#TypeFind(35b8352e89730abf).(TypeFindcxx . . $ Gst/TypeFind#&& other) noexcept
193 :
194 gobject_cxx . . $ Gst/TypeFind#gobject_.(std::movecxx . . $ std/move(e35c19a1ba7baa26).(other.gobject_cxx . . $ Gst/TypeFind#gobject_.))
195 {
196 //We could wipe other.gobject_ via memset,
197 //but that is not really necessary:
198 //other.gobject_ = nullptr;
199 }
200
201 TypeFindcxx . . $ Gst/TypeFind#& TypeFindcxx . . $ Gst/TypeFind#::operatorcxx . . $ Gst/TypeFind#`operator=`(a5dd9542123dd489).=(TypeFindcxx . . $ Gst/TypeFind#&& other) noexcept
202 {
203 gobject_cxx . . $ Gst/TypeFind#gobject_. =cxx . . $ _GstTypeFind#`operator=`(dc7b7465a23c6768). std::movecxx . . $ std/move(e35c19a1ba7baa26).(other.gobject_cxx . . $ Gst/TypeFind#gobject_.);
204 return *this;
205 }
206
207 // static
208 GType TypeFindcxx . . $ Gst/TypeFind#::get_typecxx . . $ Gst/TypeFind#get_type(f708dce9a8856c70).()
209 {
210 return gst_type_find_get_type();
211 }
212
213 TypeFindcxx . . $ Gst/TypeFind#::TypeFindcxx . . $ Gst/TypeFind#TypeFind(49f6e7a06ebc5aa8).()
214 {
215 std::memset(&gobject_cxx . . $ Gst/TypeFind#gobject_., 0, sizeof(GstTypeFind));
216 }
217
218 TypeFindcxx . . $ Gst/TypeFind#::TypeFindcxx . . $ Gst/TypeFind#TypeFind(8a4607a9d056a753).(const GstTypeFind* gobject)
219 {
220 if(gobject)
221 gobject_cxx . . $ Gst/TypeFind#gobject_. =cxx . . $ _GstTypeFind#`operator=`(5b425107f4b0fb3e). *gobject;
222 else
223 std::memset(&gobject_cxx . . $ Gst/TypeFind#gobject_., 0, sizeof(GstTypeFind));
224 }
225
226
227 std::vectorcxx . . $ std/vector#<guint8> TypeFindcxx . . $ Gst/TypeFind#::peekcxx . . $ Gst/TypeFind#peek(dbf8fada51b1d7ac).(gint64 offset, guint size) const
228 {
229 return Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<guint8>::array_to_vectorcxx . . $ Glib/ArrayHandler#array_to_vector(29018dfb1d4a3af1).(gst_type_find_peek(const_cast<GstTypeFind*>(gobjcxx . . $ Gst/TypeFind#gobj(d15a1b7b75c62eda).()), offset, size), Glibcxx . . $ Glib/::OWNERSHIP_NONEcxx . . $ Glib/OWNERSHIP_NONE.);
230 }
231
232 void TypeFindcxx . . $ Gst/TypeFind#::suggestcxx . . $ Gst/TypeFind#suggest(48adb2be2572f418).(guint probability, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) const
233 {
234 gst_type_find_suggest(const_cast<GstTypeFind*>(gobjcxx . . $ Gst/TypeFind#gobj(d15a1b7b75c62eda).()), probability, const_cast<GstCaps*>(Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)));
235 }
236
237 guint64 TypeFindcxx . . $ Gst/TypeFind#::get_lengthcxx . . $ Gst/TypeFind#get_length(fe4d2d262d4164a8).() const
238 {
239 return gst_type_find_get_length(const_cast<GstTypeFind*>(gobjcxx . . $ Gst/TypeFind#gobj(d15a1b7b75c62eda).()));
240 }
241
242
243 } // namespace Gst
244
245