| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/clock.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/clock.h>cxx . . $ `<file>/gstreamer/gstreamermm/clock.h`/ |
| 7 | #include <gstreamermm/private/clock_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/clock_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 | |
| 29 | |
| 30 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/ |
| 31 | { |
| 32 | |
| 33 | extern "C" |
| 34 | { |
| 35 | |
| 36 | static gboolean ClockID_Clock_gstreamermm_callback(GstClockcxx . . $ GstClock#* clock, GstClockTime time, GstClockID id, void* data) |
| 37 | { |
| 38 | Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#::SlotClockcxx . . $ Gst/ClockID#SlotClock#* the_slot = static_cast<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#::SlotClockcxx . . $ Gst/ClockID#SlotClock#*>(data); |
| 39 | |
| 40 | try |
| 41 | { |
| 42 | bool result = (*the_slot)(cxx . . $ sigc/slot3#`operator()`(c865b22a2ca68cb8).Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(clock, true), time, |
| 43 | Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).(reinterpret_cast<GstClockEntry*>(id), true)); |
| 44 | |
| 45 | //Delete the once executing slot before returning result |
| 46 | delete the_slot; |
| 47 | |
| 48 | return result; |
| 49 | } |
| 50 | catch(...) |
| 51 | { |
| 52 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 53 | } |
| 54 | |
| 55 | return false; |
| 56 | } |
| 57 | |
| 58 | |
| 59 | static void ClockID_Clock_gstreamermm_callback_destroy(void* data) |
| 60 | { |
| 61 | delete static_cast<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#::SlotClockcxx . . $ Gst/ClockID#SlotClock#*>(data); |
| 62 | } |
| 63 | |
| 64 | } // extern "C" |
| 65 | |
| 66 | } // anonymous namespace |
| 67 | |
| 68 | namespace Gstcxx . . $ Gst/ |
| 69 | { |
| 70 | |
| 71 | ClockReturncxx . . $ Gst/ClockReturn# ClockIDcxx . . $ Gst/ClockID#::wait_asynccxx . . $ Gst/ClockID#wait_async(292d9184b2d06347).(const SlotClockcxx . . $ Gst/ClockID#SlotClock#& slot) |
| 72 | { |
| 73 | SlotClockcxx . . $ Gst/ClockID#SlotClock#* slot_copy = new SlotClockcxx . . $ Gst/ClockID#SlotClock#(slot); |
| 74 | return static_cast<ClockReturncxx . . $ Gst/ClockReturn#>(gst_clock_id_wait_async(gobjcxx . . $ Gst/ClockID#gobj(6cd05bb22451511a).(), &ClockID_Clock_gstreamermm_callback, slot_copy, &ClockID_Clock_gstreamermm_callback_destroy)); |
| 75 | } |
| 76 | |
| 77 | } |
| 78 | |
| 79 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/ |
| 80 | { |
| 81 | |
| 82 | |
| 83 | static void Clock_signal_synced_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_callback(72662c00b13cd3f5).(GstClockcxx . . $ GstClock#* self, gboolean p0,void* data) |
| 84 | { |
| 85 | using namespace Gst; |
| 86 | using SlotTypecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_callback(72662c00b13cd3f5).SlotType# = sigccxx . . $ sigc/::slotcxx . . $ sigc/slot#< void,bool >; |
| 87 | |
| 88 | auto obj = dynamic_cast<Clockcxx . . $ Gst/Clock#*>(Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*) self)); |
| 89 | // Do not try to call a signal on a disassociated wrapper. |
| 90 | if(obj) |
| 91 | { |
| 92 | try |
| 93 | { |
| 94 | if(const auto slot = Glibcxx . . $ Glib/::SignalProxyNormalcxx . . $ Glib/SignalProxyNormal#::data_to_slotcxx . . $ Glib/SignalProxyBase#data_to_slot(1b18816c898558ea).(data)) |
| 95 | (*static_cast<SlotTypecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_callback(72662c00b13cd3f5).SlotType#*>(slot))(cxx . . $ sigc/slot1#`operator()`(9ee06a69519573d9).p0 |
| 96 | ); |
| 97 | } |
| 98 | catch(...) |
| 99 | { |
| 100 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | static const Glibcxx . . $ Glib/::SignalProxyInfocxx . . $ Glib/SignalProxyInfo# Clock_signal_synced_infocxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_info. = |
| 106 | { |
| 107 | "synced", |
| 108 | (GCallback) &Clock_signal_synced_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_callback(72662c00b13cd3f5)., |
| 109 | (GCallback) &Clock_signal_synced_callbackcxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_callback(72662c00b13cd3f5). |
| 110 | }; |
| 111 | |
| 112 | |
| 113 | } // anonymous namespace |
| 114 | |
| 115 | |
| 116 | /* Why reinterpret_cast<ClockID*>(gobject) is needed: |
| 117 | * |
| 118 | * A ClockID instance is in fact always a GstClockEntry instance. |
| 119 | * Unfortunately, GstClockEntry cannot be a member of ClockID, |
| 120 | * because it is an opaque struct. Also, the C interface does not provide |
| 121 | * any hooks to install a destroy notification handler, thus we cannot |
| 122 | * wrap it dynamically either. |
| 123 | * |
| 124 | * The cast works because ClockID does not have any member data, and |
| 125 | * it is impossible to derive from it. This is ensured by using final on the |
| 126 | * class and by using = delete on the default constructor. |
| 127 | */ |
| 128 | |
| 129 | namespace Glibcxx . . $ Glib/ |
| 130 | { |
| 131 | |
| 132 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#> wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).(GstClockEntry* object, bool take_copy) |
| 133 | { |
| 134 | if(take_copy && object) |
| 135 | gst_clock_id_ref(object); |
| 136 | |
| 137 | // See the comment at the top of this file, if you want to know why the cast works. |
| 138 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>(reinterpret_cast<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#*>(object)); |
| 139 | } |
| 140 | |
| 141 | } // namespace Glib |
| 142 | |
| 143 | |
| 144 | namespace Gstcxx . . $ Gst/ |
| 145 | { |
| 146 | |
| 147 | |
| 148 | void ClockIDcxx . . $ Gst/ClockID#::referencecxx . . $ Gst/ClockID#reference(83f5f38750778ac8).() const |
| 149 | { |
| 150 | // See the comment at the top of this file, if you want to know why the cast works. |
| 151 | gst_clock_id_ref(reinterpret_cast<GstClockEntry*>(const_cast<ClockIDcxx . . $ Gst/ClockID#*>(this))); |
| 152 | } |
| 153 | |
| 154 | void ClockIDcxx . . $ Gst/ClockID#::unreferencecxx . . $ Gst/ClockID#unreference(83f5f38750778ac8).() const |
| 155 | { |
| 156 | // See the comment at the top of this file, if you want to know why the cast works. |
| 157 | gst_clock_id_unref(reinterpret_cast<GstClockEntry*>(const_cast<ClockIDcxx . . $ Gst/ClockID#*>(this))); |
| 158 | } |
| 159 | |
| 160 | GstClockEntry* ClockIDcxx . . $ Gst/ClockID#::gobjcxx . . $ Gst/ClockID#gobj(6cd05bb22451511a).() |
| 161 | { |
| 162 | // See the comment at the top of this file, if you want to know why the cast works. |
| 163 | return reinterpret_cast<GstClockEntry*>(this); |
| 164 | } |
| 165 | |
| 166 | const GstClockEntry* ClockIDcxx . . $ Gst/ClockID#::gobjcxx . . $ Gst/ClockID#gobj(432a50a27244655).() const |
| 167 | { |
| 168 | // See the comment at the top of this file, if you want to know why the cast works. |
| 169 | return reinterpret_cast<const GstClockEntry*>(this); |
| 170 | } |
| 171 | |
| 172 | GstClockEntry* ClockIDcxx . . $ Gst/ClockID#::gobj_copycxx . . $ Gst/ClockID#gobj_copy(664c40f3b795db7c).() const |
| 173 | { |
| 174 | // See the comment at the top of this file, if you want to know why the cast works. |
| 175 | const auto gobject = reinterpret_cast<GstClockEntry*>(const_cast<ClockIDcxx . . $ Gst/ClockID#*>(this)); |
| 176 | gst_clock_id_ref(gobject); |
| 177 | return gobject; |
| 178 | } |
| 179 | |
| 180 | |
| 181 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# ClockIDcxx . . $ Gst/ClockID#::get_timecxx . . $ Gst/ClockID#get_time(fe4d2d262d4164a8).() const |
| 182 | { |
| 183 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_id_get_time(const_cast<GstClockEntry*>(gobjcxx . . $ Gst/ClockID#gobj(432a50a27244655).())))); |
| 184 | } |
| 185 | |
| 186 | ClockReturncxx . . $ Gst/ClockReturn# ClockIDcxx . . $ Gst/ClockID#::waitcxx . . $ Gst/ClockID#wait(c3f2999c1c1cb454).(Gstcxx . . $ Gst/::ClockTimeDiffcxx . . $ Gst/ClockTimeDiff#& jitter) |
| 187 | { |
| 188 | return ((ClockReturncxx . . $ Gst/ClockReturn#)(gst_clock_id_wait(gobjcxx . . $ Gst/ClockID#gobj(6cd05bb22451511a).(), (GstClockTimeDiff*)(&jitter)))); |
| 189 | } |
| 190 | |
| 191 | ClockReturncxx . . $ Gst/ClockReturn# ClockIDcxx . . $ Gst/ClockID#::waitcxx . . $ Gst/ClockID#wait(b3ed4a2df3e573e7).() |
| 192 | { |
| 193 | return ((ClockReturncxx . . $ Gst/ClockReturn#)(gst_clock_id_wait(gobjcxx . . $ Gst/ClockID#gobj(6cd05bb22451511a).(), nullptr))); |
| 194 | } |
| 195 | |
| 196 | void ClockIDcxx . . $ Gst/ClockID#::unschedulecxx . . $ Gst/ClockID#unschedule(49f6e7a06ebc5aa8).() |
| 197 | { |
| 198 | gst_clock_id_unschedule(gobjcxx . . $ Gst/ClockID#gobj(6cd05bb22451511a).()); |
| 199 | } |
| 200 | |
| 201 | |
| 202 | } // namespace Gst |
| 203 | |
| 204 | |
| 205 | namespace Glibcxx . . $ Glib/ |
| 206 | { |
| 207 | |
| 208 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(GstClockcxx . . $ GstClock#* object, bool take_copy) |
| 209 | { |
| 210 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#>( dynamic_cast<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 211 | //We use dynamic_cast<> in case of multiple inheritance. |
| 212 | } |
| 213 | |
| 214 | } /* namespace Glib */ |
| 215 | |
| 216 | |
| 217 | namespace Gstcxx . . $ Gst/ |
| 218 | { |
| 219 | |
| 220 | |
| 221 | /* The *_Class implementation: */ |
| 222 | |
| 223 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& Clock_Classcxx . . $ Gst/Clock_Class#::initcxx . . $ Gst/Clock_Class#init(bf348c0cd369184d).() |
| 224 | { |
| 225 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 226 | { |
| 227 | // Glib::Class has to know the class init function to clone custom types. |
| 228 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &Clock_Classcxx . . $ Gst/Clock_Class#::class_init_functioncxx . . $ Gst/Clock_Class#class_init_function(6c58c5e2437d25a2).; |
| 229 | |
| 230 | // This is actually just optimized away, apparently with no harm. |
| 231 | // Make sure that the parent type has been created. |
| 232 | //CppClassParent::CppObjectType::get_type(); |
| 233 | |
| 234 | // Create the wrapper type, with the same class/instance size as the base type. |
| 235 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_clock_get_type()); |
| 236 | |
| 237 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 238 | |
| 239 | } |
| 240 | |
| 241 | return *this; |
| 242 | } |
| 243 | |
| 244 | |
| 245 | void Clock_Classcxx . . $ Gst/Clock_Class#::class_init_functioncxx . . $ Gst/Clock_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 246 | { |
| 247 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>(g_class); |
| 248 | CppClassParentcxx . . $ Gst/Clock_Class#CppClassParent#::class_init_functioncxx . . $ Gst/Object_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 249 | |
| 250 | klass->change_resolutioncxx . . $ _GstClockClass#change_resolution. = &change_resolution_vfunc_callbackcxx . . $ Gst/Clock_Class#change_resolution_vfunc_callback(8560e76cc68ad5fb).; |
| 251 | klass->get_resolutioncxx . . $ _GstClockClass#get_resolution. = &get_resolution_vfunc_callbackcxx . . $ Gst/Clock_Class#get_resolution_vfunc_callback(c6ad3b5af3034d87).; |
| 252 | klass->get_internal_timecxx . . $ _GstClockClass#get_internal_time. = &get_internal_time_vfunc_callbackcxx . . $ Gst/Clock_Class#get_internal_time_vfunc_callback(c6ad3b5af3034d87).; |
| 253 | klass->waitcxx . . $ _GstClockClass#wait. = &wait_vfunc_callbackcxx . . $ Gst/Clock_Class#wait_vfunc_callback(ba03153b5391dc25).; |
| 254 | klass->wait_asynccxx . . $ _GstClockClass#wait_async. = &wait_async_vfunc_callbackcxx . . $ Gst/Clock_Class#wait_async_vfunc_callback(362ea30fa512afce).; |
| 255 | klass->unschedulecxx . . $ _GstClockClass#unschedule. = &unschedule_vfunc_callbackcxx . . $ Gst/Clock_Class#unschedule_vfunc_callback(2cd33d0f9c6806b0).; |
| 256 | |
| 257 | } |
| 258 | |
| 259 | GstClockTime Clock_Classcxx . . $ Gst/Clock_Class#::change_resolution_vfunc_callbackcxx . . $ Gst/Clock_Class#change_resolution_vfunc_callback(8560e76cc68ad5fb).(GstClockcxx . . $ GstClock#* self, GstClockTime old_resolution, GstClockTime new_resolution) |
| 260 | { |
| 261 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 262 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 263 | |
| 264 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 265 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 266 | // generated classes can use this optimisation, which avoids the unnecessary |
| 267 | // parameter conversions if there is no possibility of the virtual function |
| 268 | // being overridden: |
| 269 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 270 | { |
| 271 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 272 | if(obj) // This can be NULL during destruction. |
| 273 | { |
| 274 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 275 | { |
| 276 | // Call the virtual member method, which derived classes might override. |
| 277 | return ((GstClockTime)(obj->change_resolution_vfunccxx . . $ Gst/Clock#change_resolution_vfunc(80bad76eed2d2579).(((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(old_resolution)) |
| 278 | , ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(new_resolution)) |
| 279 | ))); |
| 280 | } |
| 281 | catch(...) |
| 282 | { |
| 283 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 289 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 290 | ); |
| 291 | |
| 292 | // Call the original underlying C function: |
| 293 | if(base && base->change_resolutioncxx . . $ _GstClockClass#change_resolution.) |
| 294 | return (*base->change_resolutioncxx . . $ _GstClockClass#change_resolution.)(self, old_resolution, new_resolution); |
| 295 | |
| 296 | using RTypecxx . . $ Gst/Clock_Class#change_resolution_vfunc_callback(8560e76cc68ad5fb).RType# = GstClockTime; |
| 297 | return RTypecxx . . $ Gst/Clock_Class#change_resolution_vfunc_callback(8560e76cc68ad5fb).RType#(); |
| 298 | } |
| 299 | GstClockTime Clock_Classcxx . . $ Gst/Clock_Class#::get_resolution_vfunc_callbackcxx . . $ Gst/Clock_Class#get_resolution_vfunc_callback(c6ad3b5af3034d87).(GstClockcxx . . $ GstClock#* self) |
| 300 | { |
| 301 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 302 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 303 | |
| 304 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 305 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 306 | // generated classes can use this optimisation, which avoids the unnecessary |
| 307 | // parameter conversions if there is no possibility of the virtual function |
| 308 | // being overridden: |
| 309 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 310 | { |
| 311 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 312 | if(obj) // This can be NULL during destruction. |
| 313 | { |
| 314 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 315 | { |
| 316 | // Call the virtual member method, which derived classes might override. |
| 317 | return ((GstClockTime)(obj->get_resolution_vfunccxx . . $ Gst/Clock#get_resolution_vfunc(fe4d2d262d4164a8).())); |
| 318 | } |
| 319 | catch(...) |
| 320 | { |
| 321 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 322 | } |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 327 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 328 | ); |
| 329 | |
| 330 | // Call the original underlying C function: |
| 331 | if(base && base->get_resolutioncxx . . $ _GstClockClass#get_resolution.) |
| 332 | return (*base->get_resolutioncxx . . $ _GstClockClass#get_resolution.)(self); |
| 333 | |
| 334 | using RTypecxx . . $ Gst/Clock_Class#get_resolution_vfunc_callback(c6ad3b5af3034d87).RType# = GstClockTime; |
| 335 | return RTypecxx . . $ Gst/Clock_Class#get_resolution_vfunc_callback(c6ad3b5af3034d87).RType#(); |
| 336 | } |
| 337 | GstClockTime Clock_Classcxx . . $ Gst/Clock_Class#::get_internal_time_vfunc_callbackcxx . . $ Gst/Clock_Class#get_internal_time_vfunc_callback(c6ad3b5af3034d87).(GstClockcxx . . $ GstClock#* self) |
| 338 | { |
| 339 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 340 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 341 | |
| 342 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 343 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 344 | // generated classes can use this optimisation, which avoids the unnecessary |
| 345 | // parameter conversions if there is no possibility of the virtual function |
| 346 | // being overridden: |
| 347 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 348 | { |
| 349 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 350 | if(obj) // This can be NULL during destruction. |
| 351 | { |
| 352 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 353 | { |
| 354 | // Call the virtual member method, which derived classes might override. |
| 355 | return ((GstClockTime)(obj->get_internal_time_vfunccxx . . $ Gst/Clock#get_internal_time_vfunc(fe4d2d262d4164a8).())); |
| 356 | } |
| 357 | catch(...) |
| 358 | { |
| 359 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 360 | } |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 365 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 366 | ); |
| 367 | |
| 368 | // Call the original underlying C function: |
| 369 | if(base && base->get_internal_timecxx . . $ _GstClockClass#get_internal_time.) |
| 370 | return (*base->get_internal_timecxx . . $ _GstClockClass#get_internal_time.)(self); |
| 371 | |
| 372 | using RTypecxx . . $ Gst/Clock_Class#get_internal_time_vfunc_callback(c6ad3b5af3034d87).RType# = GstClockTime; |
| 373 | return RTypecxx . . $ Gst/Clock_Class#get_internal_time_vfunc_callback(c6ad3b5af3034d87).RType#(); |
| 374 | } |
| 375 | GstClockReturn Clock_Classcxx . . $ Gst/Clock_Class#::wait_vfunc_callbackcxx . . $ Gst/Clock_Class#wait_vfunc_callback(ba03153b5391dc25).(GstClockcxx . . $ GstClock#* self, GstClockEntry* entry, GstClockTimeDiff* jitter) |
| 376 | { |
| 377 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 378 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 379 | |
| 380 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 381 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 382 | // generated classes can use this optimisation, which avoids the unnecessary |
| 383 | // parameter conversions if there is no possibility of the virtual function |
| 384 | // being overridden: |
| 385 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 386 | { |
| 387 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 388 | if(obj) // This can be NULL during destruction. |
| 389 | { |
| 390 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 391 | { |
| 392 | // Call the virtual member method, which derived classes might override. |
| 393 | return ((GstClockReturn)(obj->wait_vfunccxx . . $ Gst/Clock#wait_vfunc(bb37f715c22c57fa).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).(entry, true) |
| 394 | , (Gstcxx . . $ Gst/::ClockTimeDiffcxx . . $ Gst/ClockTimeDiff#&)(*jitter) |
| 395 | ))); |
| 396 | } |
| 397 | catch(...) |
| 398 | { |
| 399 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 400 | } |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 405 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 406 | ); |
| 407 | |
| 408 | // Call the original underlying C function: |
| 409 | if(base && base->waitcxx . . $ _GstClockClass#wait.) |
| 410 | return (*base->waitcxx . . $ _GstClockClass#wait.)(self, entry, jitter); |
| 411 | |
| 412 | using RTypecxx . . $ Gst/Clock_Class#wait_vfunc_callback(ba03153b5391dc25).RType# = GstClockReturn; |
| 413 | return RTypecxx . . $ Gst/Clock_Class#wait_vfunc_callback(ba03153b5391dc25).RType#(); |
| 414 | } |
| 415 | GstClockReturn Clock_Classcxx . . $ Gst/Clock_Class#::wait_async_vfunc_callbackcxx . . $ Gst/Clock_Class#wait_async_vfunc_callback(362ea30fa512afce).(GstClockcxx . . $ GstClock#* self, GstClockEntry* entry) |
| 416 | { |
| 417 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 418 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 419 | |
| 420 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 421 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 422 | // generated classes can use this optimisation, which avoids the unnecessary |
| 423 | // parameter conversions if there is no possibility of the virtual function |
| 424 | // being overridden: |
| 425 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 426 | { |
| 427 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 428 | if(obj) // This can be NULL during destruction. |
| 429 | { |
| 430 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 431 | { |
| 432 | // Call the virtual member method, which derived classes might override. |
| 433 | return ((GstClockReturn)(obj->wait_async_vfunccxx . . $ Gst/Clock#wait_async_vfunc(7de56e05e59472d7).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).(entry, true) |
| 434 | ))); |
| 435 | } |
| 436 | catch(...) |
| 437 | { |
| 438 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 439 | } |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 444 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 445 | ); |
| 446 | |
| 447 | // Call the original underlying C function: |
| 448 | if(base && base->wait_asynccxx . . $ _GstClockClass#wait_async.) |
| 449 | return (*base->wait_asynccxx . . $ _GstClockClass#wait_async.)(self, entry); |
| 450 | |
| 451 | using RTypecxx . . $ Gst/Clock_Class#wait_async_vfunc_callback(362ea30fa512afce).RType# = GstClockReturn; |
| 452 | return RTypecxx . . $ Gst/Clock_Class#wait_async_vfunc_callback(362ea30fa512afce).RType#(); |
| 453 | } |
| 454 | void Clock_Classcxx . . $ Gst/Clock_Class#::unschedule_vfunc_callbackcxx . . $ Gst/Clock_Class#unschedule_vfunc_callback(2cd33d0f9c6806b0).(GstClockcxx . . $ GstClock#* self, GstClockEntry* entry) |
| 455 | { |
| 456 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 457 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 458 | |
| 459 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 460 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 461 | // generated classes can use this optimisation, which avoids the unnecessary |
| 462 | // parameter conversions if there is no possibility of the virtual function |
| 463 | // being overridden: |
| 464 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 465 | { |
| 466 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/Clock_Class#CppObjectType#* const>(obj_base); |
| 467 | if(obj) // This can be NULL during destruction. |
| 468 | { |
| 469 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 470 | { |
| 471 | // Call the virtual member method, which derived classes might override. |
| 472 | obj->unschedule_vfunccxx . . $ Gst/Clock#unschedule_vfunc(11efcfe1ea1fb9e1).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).(entry, true) |
| 473 | ); |
| 474 | return; |
| 475 | } |
| 476 | catch(...) |
| 477 | { |
| 478 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 479 | } |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/Clock_Class#BaseClassType#*>( |
| 484 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 485 | ); |
| 486 | |
| 487 | // Call the original underlying C function: |
| 488 | if(base && base->unschedulecxx . . $ _GstClockClass#unschedule.) |
| 489 | (*base->unschedulecxx . . $ _GstClockClass#unschedule.)(self, entry); |
| 490 | } |
| 491 | |
| 492 | |
| 493 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* Clock_Classcxx . . $ Gst/Clock_Class#::wrap_newcxx . . $ Gst/Clock_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 494 | { |
| 495 | return new Clockcxx . . $ Gst/Clock#Clock(542d9cf6ece1ca11).((GstClockcxx . . $ GstClock#*)object); |
| 496 | } |
| 497 | |
| 498 | |
| 499 | /* The implementation: */ |
| 500 | |
| 501 | GstClockcxx . . $ GstClock#* Clockcxx . . $ Gst/Clock#::gobj_copycxx . . $ Gst/Clock#gobj_copy(80f54af30214d733).() |
| 502 | { |
| 503 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 504 | return gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(); |
| 505 | } |
| 506 | |
| 507 | Clockcxx . . $ Gst/Clock#::Clockcxx . . $ Gst/Clock#Clock(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 508 | : |
| 509 | Objectcxx . . $ Gst/Object#(construct_params) |
| 510 | { |
| 511 | |
| 512 | } |
| 513 | |
| 514 | Clockcxx . . $ Gst/Clock#::Clockcxx . . $ Gst/Clock#Clock(542d9cf6ece1ca11).(GstClockcxx . . $ GstClock#* castitem) |
| 515 | : |
| 516 | Objectcxx . . $ Gst/Object#((GstObjectcxx . . $ GstObject#*)(castitem)) |
| 517 | {} |
| 518 | |
| 519 | |
| 520 | Clockcxx . . $ Gst/Clock#::Clockcxx . . $ Gst/Clock#Clock(b0c78cf6bb8d07ab).(Clockcxx . . $ Gst/Clock#&& src) noexcept |
| 521 | : Objectcxx . . $ Gst/Object#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 522 | {} |
| 523 | |
| 524 | Clockcxx . . $ Gst/Clock#& Clockcxx . . $ Gst/Clock#::operatorcxx . . $ Gst/Clock#`operator=`(6e0193aa2538c7ad).=(Clockcxx . . $ Gst/Clock#&& src) noexcept |
| 525 | { |
| 526 | Objectcxx . . $ Gst/Object#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 527 | return *this; |
| 528 | } |
| 529 | |
| 530 | |
| 531 | Clockcxx . . $ Gst/Clock#::~cxx . . $ Gst/Clock#`~Clock`(ced63f7c635d850d).Clockcxx . . $ Gst/Clock#() noexcept |
| 532 | {} |
| 533 | |
| 534 | |
| 535 | Clockcxx . . $ Gst/Clock#::CppClassTypecxx . . $ Gst/Clock#CppClassType# Clockcxx . . $ Gst/Clock#::clock_class_cxx . . $ Gst/Clock#clock_class_.; // initialize static member |
| 536 | |
| 537 | GType Clockcxx . . $ Gst/Clock#::get_typecxx . . $ Gst/Clock#get_type(f708dce9a8856c70).() |
| 538 | { |
| 539 | return clock_class_cxx . . $ Gst/Clock#clock_class_..initcxx . . $ Gst/Clock_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 540 | } |
| 541 | |
| 542 | |
| 543 | GType Clockcxx . . $ Gst/Clock#::get_base_typecxx . . $ Gst/Clock#get_base_type(f708dce9a8856c70).() |
| 544 | { |
| 545 | return gst_clock_get_type(); |
| 546 | } |
| 547 | |
| 548 | bool Clockcxx . . $ Gst/Clock#::add_observationcxx . . $ Gst/Clock#add_observation(6ac50531a0d54704).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# slave_time, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# master_time, gdouble& result) |
| 549 | { |
| 550 | return gst_clock_add_observation(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(slave_time)), ((GstClockTime)(master_time)), &result); |
| 551 | } |
| 552 | |
| 553 | bool Clockcxx . . $ Gst/Clock#::add_observationcxx . . $ Gst/Clock#add_observation(e974bf0ce678af12).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# slave_time, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# master_time, gdouble& result, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& internal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& external, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& rate_num, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& rate_denom) |
| 554 | { |
| 555 | return gst_clock_add_observation_unapplied(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(slave_time)), ((GstClockTime)(master_time)), &result, (GstClockTime*)(&internal), (GstClockTime*)(&external), (GstClockTime*)(&rate_num), (GstClockTime*)(&rate_denom)); |
| 556 | } |
| 557 | |
| 558 | bool Clockcxx . . $ Gst/Clock#::set_mastercxx . . $ Gst/Clock#set_master(25fdc17f3a15db99).(const Clockcxx . . $ Gst/Clock#& master_clock) |
| 559 | { |
| 560 | return gst_clock_set_master(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockcxx . . $ GstClock#*)(&master_clock))); |
| 561 | } |
| 562 | |
| 563 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> Clockcxx . . $ Gst/Clock#::get_mastercxx . . $ Gst/Clock#get_master(675458b535f1101e).() |
| 564 | { |
| 565 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(gst_clock_get_master(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).())); |
| 566 | } |
| 567 | |
| 568 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> Clockcxx . . $ Gst/Clock#::get_mastercxx . . $ Gst/Clock#get_master(d423a9683e0d77bf).() const |
| 569 | { |
| 570 | return const_castcxx . . $ Glib/RefPtr#RefPtr(9e4c744904342adc).<Clockcxx . . $ Gst/Clock#*>(this)->get_mastercxx . . $ Gst/Clock#get_master(675458b535f1101e).(); |
| 571 | } |
| 572 | |
| 573 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::set_resolutioncxx . . $ Gst/Clock#set_resolution(ecdaa1632f49f591).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# resolution) |
| 574 | { |
| 575 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_set_resolution(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(resolution))))); |
| 576 | } |
| 577 | |
| 578 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::get_resolutioncxx . . $ Gst/Clock#get_resolution(fe4d2d262d4164a8).() const |
| 579 | { |
| 580 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_get_resolution(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).())))); |
| 581 | } |
| 582 | |
| 583 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::get_timecxx . . $ Gst/Clock#get_time(fe4d2d262d4164a8).() const |
| 584 | { |
| 585 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_get_time(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).())))); |
| 586 | } |
| 587 | |
| 588 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#> Clockcxx . . $ Gst/Clock#::create_single_shot_idcxx . . $ Gst/Clock#create_single_shot_id(cf4bfa2a1435e941).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# time) |
| 589 | { |
| 590 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).((GstClockEntry*)(gst_clock_new_single_shot_id(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(time))))); |
| 591 | } |
| 592 | |
| 593 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#> Clockcxx . . $ Gst/Clock#::create_periodic_idcxx . . $ Gst/Clock#create_periodic_id(9db29e41d184d396).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# start_time, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# intervals) |
| 594 | { |
| 595 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(38bf25ee8a196bc3).((GstClockEntry*)(gst_clock_new_periodic_id(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(start_time)), ((GstClockTime)(intervals))))); |
| 596 | } |
| 597 | |
| 598 | bool Clockcxx . . $ Gst/Clock#::single_shot_id_reinitcxx . . $ Gst/Clock#single_shot_id_reinit(3f0cb116a7eef0a3).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>& id, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# time) |
| 599 | { |
| 600 | return gst_clock_single_shot_id_reinit(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(id), ((GstClockTime)(time))); |
| 601 | } |
| 602 | |
| 603 | bool Clockcxx . . $ Gst/Clock#::periodic_id_reinitcxx . . $ Gst/Clock#periodic_id_reinit(6292f1baf304b1de).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>& id, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# start_time, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# interval) |
| 604 | { |
| 605 | return gst_clock_periodic_id_reinit(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(id), ((GstClockTime)(start_time)), ((GstClockTime)(interval))); |
| 606 | } |
| 607 | |
| 608 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::get_internal_timecxx . . $ Gst/Clock#get_internal_time(fe4d2d262d4164a8).() const |
| 609 | { |
| 610 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_get_internal_time(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).())))); |
| 611 | } |
| 612 | |
| 613 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::adjust_unlockedcxx . . $ Gst/Clock#adjust_unlocked(ecdaa1632f49f591).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# internal_time) |
| 614 | { |
| 615 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_adjust_unlocked(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(internal_time))))); |
| 616 | } |
| 617 | |
| 618 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::unadjust_unlockedcxx . . $ Gst/Clock#unadjust_unlocked(ecdaa1632f49f591).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# external_time) |
| 619 | { |
| 620 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_unadjust_unlocked(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(external_time))))); |
| 621 | } |
| 622 | |
| 623 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::adjust_with_calibrationcxx . . $ Gst/Clock#adjust_with_calibration(c4fa26cdfd6aaaba).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# internal_target, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cinternal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cexternal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cnum, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cdenom) |
| 624 | { |
| 625 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_adjust_with_calibration(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(internal_target)), ((GstClockTime)(cinternal)), ((GstClockTime)(cexternal)), ((GstClockTime)(cnum)), ((GstClockTime)(cdenom))))); |
| 626 | } |
| 627 | |
| 628 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Clockcxx . . $ Gst/Clock#::unadjust_with_calibrationcxx . . $ Gst/Clock#unadjust_with_calibration(c4fa26cdfd6aaaba).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# external_target, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cinternal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cexternal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cnum, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# cdenom) |
| 629 | { |
| 630 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_clock_unadjust_with_calibration(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(external_target)), ((GstClockTime)(cinternal)), ((GstClockTime)(cexternal)), ((GstClockTime)(cnum)), ((GstClockTime)(cdenom))))); |
| 631 | } |
| 632 | |
| 633 | void Clockcxx . . $ Gst/Clock#::get_calibrationcxx . . $ Gst/Clock#get_calibration(33566314d7ad4119).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& internal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& external, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& rate_num, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& rate_denom) const |
| 634 | { |
| 635 | gst_clock_get_calibration(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).()), (GstClockTime*)(&internal), (GstClockTime*)(&external), (GstClockTime*)(&rate_num), (GstClockTime*)(&rate_denom)); |
| 636 | } |
| 637 | |
| 638 | void Clockcxx . . $ Gst/Clock#::set_calibrationcxx . . $ Gst/Clock#set_calibration(dfc0e7064a760dbe).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# internal, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# external, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# rate_num, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# rate_denom) |
| 639 | { |
| 640 | gst_clock_set_calibration(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(internal)), ((GstClockTime)(external)), ((GstClockTime)(rate_num)), ((GstClockTime)(rate_denom))); |
| 641 | } |
| 642 | |
| 643 | bool Clockcxx . . $ Gst/Clock#::wait_for_synccxx . . $ Gst/Clock#wait_for_sync(31596a199e1d8a50).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# timeout) |
| 644 | { |
| 645 | return gst_clock_wait_for_sync(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), ((GstClockTime)(timeout))); |
| 646 | } |
| 647 | |
| 648 | bool Clockcxx . . $ Gst/Clock#::is_syncedcxx . . $ Gst/Clock#is_synced(50ce9a9e25b4a850).() const |
| 649 | { |
| 650 | return gst_clock_is_synced(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).())); |
| 651 | } |
| 652 | |
| 653 | void Clockcxx . . $ Gst/Clock#::set_syncedcxx . . $ Gst/Clock#set_synced(b45ddcbc8423892c).(bool synced) |
| 654 | { |
| 655 | gst_clock_set_synced(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(), static_cast<int>(synced)); |
| 656 | } |
| 657 | |
| 658 | |
| 659 | Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void,bool > Clockcxx . . $ Gst/Clock#::signal_syncedcxx . . $ Gst/Clock#signal_synced(638bcca94a0ed112).() |
| 660 | { |
| 661 | return Glibcxx . . $ Glib/SignalProxy#SignalProxy(99c0b07349c102a).::SignalProxycxx . . $ Glib/SignalProxy#< void,bool >(this, &Clock_signal_synced_infocxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/clock.cc`/Clock_signal_synced_info.); |
| 662 | } |
| 663 | |
| 664 | |
| 665 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 > Clockcxx . . $ Gst/Clock#::property_timeoutcxx . . $ Gst/Clock#property_timeout(d486e8c449033ce8).() |
| 666 | { |
| 667 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 >(this, "timeout"); |
| 668 | } |
| 669 | |
| 670 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 > Clockcxx . . $ Gst/Clock#::property_timeoutcxx . . $ Gst/Clock#property_timeout(626cd103ac35282).() const |
| 671 | { |
| 672 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 >(this, "timeout"); |
| 673 | } |
| 674 | |
| 675 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< int > Clockcxx . . $ Gst/Clock#::property_window_sizecxx . . $ Gst/Clock#property_window_size(bf3998fdb218c766).() |
| 676 | { |
| 677 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< int >(this, "window-size"); |
| 678 | } |
| 679 | |
| 680 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< int > Clockcxx . . $ Gst/Clock#::property_window_sizecxx . . $ Gst/Clock#property_window_size(7e9006e11d14f0d6).() const |
| 681 | { |
| 682 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< int >(this, "window-size"); |
| 683 | } |
| 684 | |
| 685 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< int > Clockcxx . . $ Gst/Clock#::property_window_thresholdcxx . . $ Gst/Clock#property_window_threshold(bf3998fdb218c766).() |
| 686 | { |
| 687 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< int >(this, "window-threshold"); |
| 688 | } |
| 689 | |
| 690 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< int > Clockcxx . . $ Gst/Clock#::property_window_thresholdcxx . . $ Gst/Clock#property_window_threshold(7e9006e11d14f0d6).() const |
| 691 | { |
| 692 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< int >(this, "window-threshold"); |
| 693 | } |
| 694 | |
| 695 | |
| 696 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::change_resolution_vfunccxx . . $ Gst/Clock#change_resolution_vfunc(80bad76eed2d2579).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# old_resolution, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# new_resolution) |
| 697 | { |
| 698 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 699 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 700 | ); |
| 701 | |
| 702 | if(base && base->change_resolutioncxx . . $ _GstClockClass#change_resolution.) |
| 703 | { |
| 704 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# retval(((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)((*base->change_resolutioncxx . . $ _GstClockClass#change_resolution.)(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(),((GstClockTime)(old_resolution)),((GstClockTime)(new_resolution)))))); |
| 705 | return retval; |
| 706 | } |
| 707 | |
| 708 | using RTypecxx . . $ Gst/Clock#change_resolution_vfunc(80bad76eed2d2579).RType# = Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#; |
| 709 | return RTypecxx . . $ Gst/Clock#change_resolution_vfunc(80bad76eed2d2579).RType#(); |
| 710 | } |
| 711 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::get_resolution_vfunccxx . . $ Gst/Clock#get_resolution_vfunc(fe4d2d262d4164a8).() const |
| 712 | { |
| 713 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 714 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 715 | ); |
| 716 | |
| 717 | if(base && base->get_resolutioncxx . . $ _GstClockClass#get_resolution.) |
| 718 | { |
| 719 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# retval(((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)((*base->get_resolutioncxx . . $ _GstClockClass#get_resolution.)(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).()))))); |
| 720 | return retval; |
| 721 | } |
| 722 | |
| 723 | using RTypecxx . . $ Gst/Clock#get_resolution_vfunc(fe4d2d262d4164a8).RType# = Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#; |
| 724 | return RTypecxx . . $ Gst/Clock#get_resolution_vfunc(fe4d2d262d4164a8).RType#(); |
| 725 | } |
| 726 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::get_internal_time_vfunccxx . . $ Gst/Clock#get_internal_time_vfunc(fe4d2d262d4164a8).() const |
| 727 | { |
| 728 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 729 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 730 | ); |
| 731 | |
| 732 | if(base && base->get_internal_timecxx . . $ _GstClockClass#get_internal_time.) |
| 733 | { |
| 734 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# retval(((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)((*base->get_internal_timecxx . . $ _GstClockClass#get_internal_time.)(const_cast<GstClockcxx . . $ GstClock#*>(gobjcxx . . $ Gst/Clock#gobj(cf21fedfb3d1c54).()))))); |
| 735 | return retval; |
| 736 | } |
| 737 | |
| 738 | using RTypecxx . . $ Gst/Clock#get_internal_time_vfunc(fe4d2d262d4164a8).RType# = Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#; |
| 739 | return RTypecxx . . $ Gst/Clock#get_internal_time_vfunc(fe4d2d262d4164a8).RType#(); |
| 740 | } |
| 741 | ClockReturncxx . . $ Gst/ClockReturn# Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::wait_vfunccxx . . $ Gst/Clock#wait_vfunc(bb37f715c22c57fa).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>& id, Gstcxx . . $ Gst/::ClockTimeDiffcxx . . $ Gst/ClockTimeDiff#& jitter) |
| 742 | { |
| 743 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 744 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 745 | ); |
| 746 | |
| 747 | if(base && base->waitcxx . . $ _GstClockClass#wait.) |
| 748 | { |
| 749 | ClockReturncxx . . $ Gst/ClockReturn# retval(((ClockReturncxx . . $ Gst/ClockReturn#)((*base->waitcxx . . $ _GstClockClass#wait.)(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(),Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(id),(GstClockTimeDiff*)(&jitter))))); |
| 750 | return retval; |
| 751 | } |
| 752 | |
| 753 | using RTypecxx . . $ Gst/Clock#wait_vfunc(bb37f715c22c57fa).RType# = ClockReturncxx . . $ Gst/ClockReturn#; |
| 754 | return RTypecxx . . $ Gst/Clock#wait_vfunc(bb37f715c22c57fa).RType#(); |
| 755 | } |
| 756 | ClockReturncxx . . $ Gst/ClockReturn# Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::wait_async_vfunccxx . . $ Gst/Clock#wait_async_vfunc(7de56e05e59472d7).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>& id) |
| 757 | { |
| 758 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 759 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 760 | ); |
| 761 | |
| 762 | if(base && base->wait_asynccxx . . $ _GstClockClass#wait_async.) |
| 763 | { |
| 764 | ClockReturncxx . . $ Gst/ClockReturn# retval(((ClockReturncxx . . $ Gst/ClockReturn#)((*base->wait_asynccxx . . $ _GstClockClass#wait_async.)(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(),Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(id))))); |
| 765 | return retval; |
| 766 | } |
| 767 | |
| 768 | using RTypecxx . . $ Gst/Clock#wait_async_vfunc(7de56e05e59472d7).RType# = ClockReturncxx . . $ Gst/ClockReturn#; |
| 769 | return RTypecxx . . $ Gst/Clock#wait_async_vfunc(7de56e05e59472d7).RType#(); |
| 770 | } |
| 771 | void Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#::unschedule_vfunccxx . . $ Gst/Clock#unschedule_vfunc(11efcfe1ea1fb9e1).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::ClockIDcxx . . $ Gst/ClockID#>& id) |
| 772 | { |
| 773 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/Clock#BaseClassType#*>( |
| 774 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 775 | ); |
| 776 | |
| 777 | if(base && base->unschedulecxx . . $ _GstClockClass#unschedule.) |
| 778 | { |
| 779 | (*base->unschedulecxx . . $ _GstClockClass#unschedule.)(gobjcxx . . $ Gst/Clock#gobj(80f54af30214d733).(),Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(id)); |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | |
| 784 | } // namespace Gst |
| 785 | |
| 786 |