1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class Clock : Gst.Object {
14 protected Clock (IntPtr raw) : base(raw) {}
16 protected Clock() : base(IntPtr.Zero)
18 CreateNativeObject (new string [0], new GLib.Value [0]);
21 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
22 static extern ulong gst_clock_get_timeout(IntPtr raw);
24 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
25 static extern void gst_clock_set_timeout(IntPtr raw, ulong timeout);
27 [GLib.Property ("timeout")]
28 public ulong Timeout {
30 ulong raw_ret = gst_clock_get_timeout(Handle);
35 gst_clock_set_timeout(Handle, value);
39 [GLib.Property ("window-size")]
40 public int WindowSize {
42 GLib.Value val = GetProperty ("window-size");
48 GLib.Value val = new GLib.Value(value);
49 SetProperty("window-size", val);
54 [GLib.Property ("window-threshold")]
55 public int WindowThreshold {
57 GLib.Value val = GetProperty ("window-threshold");
63 GLib.Value val = new GLib.Value(value);
64 SetProperty("window-threshold", val);
69 [GLib.Signal("synced")]
70 public event Gst.SyncedHandler Synced {
72 this.AddSignalHandler ("synced", value, typeof (Gst.SyncedArgs));
75 this.RemoveSignalHandler ("synced", value);
79 static SyncedNativeDelegate Synced_cb_delegate;
80 static SyncedNativeDelegate SyncedVMCallback {
82 if (Synced_cb_delegate == null)
83 Synced_cb_delegate = new SyncedNativeDelegate (Synced_cb);
84 return Synced_cb_delegate;
88 static void OverrideSynced (GLib.GType gtype)
90 OverrideSynced (gtype, SyncedVMCallback);
93 static void OverrideSynced (GLib.GType gtype, SyncedNativeDelegate callback)
95 OverrideVirtualMethod (gtype, "synced", callback);
97 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
98 delegate void SyncedNativeDelegate (IntPtr inst, bool synced);
100 static void Synced_cb (IntPtr inst, bool synced)
103 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
104 __obj.OnSynced (synced);
105 } catch (Exception e) {
106 GLib.ExceptionManager.RaiseUnhandledException (e, false);
110 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideSynced")]
111 protected virtual void OnSynced (bool synced)
113 InternalSynced (synced);
116 private void InternalSynced (bool synced)
118 GLib.Value ret = GLib.Value.Empty;
119 GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
120 GLib.Value[] vals = new GLib.Value [2];
121 vals [0] = new GLib.Value (this);
122 inst_and_params.Append (vals [0]);
123 vals [1] = new GLib.Value (synced);
124 inst_and_params.Append (vals [1]);
125 g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
126 foreach (GLib.Value v in vals)
130 static ChangeResolutionNativeDelegate ChangeResolution_cb_delegate;
131 static ChangeResolutionNativeDelegate ChangeResolutionVMCallback {
133 if (ChangeResolution_cb_delegate == null)
134 ChangeResolution_cb_delegate = new ChangeResolutionNativeDelegate (ChangeResolution_cb);
135 return ChangeResolution_cb_delegate;
139 static void OverrideChangeResolution (GLib.GType gtype)
141 OverrideChangeResolution (gtype, ChangeResolutionVMCallback);
144 static void OverrideChangeResolution (GLib.GType gtype, ChangeResolutionNativeDelegate callback)
147 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("change_resolution"));
148 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
152 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
153 delegate ulong ChangeResolutionNativeDelegate (IntPtr inst, ulong old_resolution, ulong new_resolution);
155 static ulong ChangeResolution_cb (IntPtr inst, ulong old_resolution, ulong new_resolution)
158 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
160 __result = __obj.OnChangeResolution (old_resolution, new_resolution);
162 } catch (Exception e) {
163 GLib.ExceptionManager.RaiseUnhandledException (e, true);
164 // NOTREACHED: above call does not return.
169 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideChangeResolution")]
170 protected virtual ulong OnChangeResolution (ulong old_resolution, ulong new_resolution)
172 return InternalChangeResolution (old_resolution, new_resolution);
175 private ulong InternalChangeResolution (ulong old_resolution, ulong new_resolution)
177 ChangeResolutionNativeDelegate unmanaged = null;
179 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("change_resolution"));
180 unmanaged = (ChangeResolutionNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChangeResolutionNativeDelegate));
182 if (unmanaged == null) return 0;
184 ulong __result = unmanaged (this.Handle, old_resolution, new_resolution);
188 static GetResolutionNativeDelegate GetResolution_cb_delegate;
189 static GetResolutionNativeDelegate GetResolutionVMCallback {
191 if (GetResolution_cb_delegate == null)
192 GetResolution_cb_delegate = new GetResolutionNativeDelegate (GetResolution_cb);
193 return GetResolution_cb_delegate;
197 static void OverrideGetResolution (GLib.GType gtype)
199 OverrideGetResolution (gtype, GetResolutionVMCallback);
202 static void OverrideGetResolution (GLib.GType gtype, GetResolutionNativeDelegate callback)
205 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_resolution"));
206 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
210 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
211 delegate ulong GetResolutionNativeDelegate (IntPtr inst);
213 static ulong GetResolution_cb (IntPtr inst)
216 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
218 __result = __obj.OnGetResolution ();
220 } catch (Exception e) {
221 GLib.ExceptionManager.RaiseUnhandledException (e, true);
222 // NOTREACHED: above call does not return.
227 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideGetResolution")]
228 protected virtual ulong OnGetResolution ()
230 return InternalGetResolution ();
233 private ulong InternalGetResolution ()
235 GetResolutionNativeDelegate unmanaged = null;
237 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_resolution"));
238 unmanaged = (GetResolutionNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetResolutionNativeDelegate));
240 if (unmanaged == null) return 0;
242 ulong __result = unmanaged (this.Handle);
246 static GetInternalTimeNativeDelegate GetInternalTime_cb_delegate;
247 static GetInternalTimeNativeDelegate GetInternalTimeVMCallback {
249 if (GetInternalTime_cb_delegate == null)
250 GetInternalTime_cb_delegate = new GetInternalTimeNativeDelegate (GetInternalTime_cb);
251 return GetInternalTime_cb_delegate;
255 static void OverrideGetInternalTime (GLib.GType gtype)
257 OverrideGetInternalTime (gtype, GetInternalTimeVMCallback);
260 static void OverrideGetInternalTime (GLib.GType gtype, GetInternalTimeNativeDelegate callback)
263 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_internal_time"));
264 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
268 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
269 delegate ulong GetInternalTimeNativeDelegate (IntPtr inst);
271 static ulong GetInternalTime_cb (IntPtr inst)
274 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
276 __result = __obj.OnGetInternalTime ();
278 } catch (Exception e) {
279 GLib.ExceptionManager.RaiseUnhandledException (e, true);
280 // NOTREACHED: above call does not return.
285 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideGetInternalTime")]
286 protected virtual ulong OnGetInternalTime ()
288 return InternalGetInternalTime ();
291 private ulong InternalGetInternalTime ()
293 GetInternalTimeNativeDelegate unmanaged = null;
295 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_internal_time"));
296 unmanaged = (GetInternalTimeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetInternalTimeNativeDelegate));
298 if (unmanaged == null) return 0;
300 ulong __result = unmanaged (this.Handle);
304 static WaitNativeDelegate Wait_cb_delegate;
305 static WaitNativeDelegate WaitVMCallback {
307 if (Wait_cb_delegate == null)
308 Wait_cb_delegate = new WaitNativeDelegate (Wait_cb);
309 return Wait_cb_delegate;
313 static void OverrideWait (GLib.GType gtype)
315 OverrideWait (gtype, WaitVMCallback);
318 static void OverrideWait (GLib.GType gtype, WaitNativeDelegate callback)
321 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("wait"));
322 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
326 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
327 delegate int WaitNativeDelegate (IntPtr inst, IntPtr entry, long jitter);
329 static int Wait_cb (IntPtr inst, IntPtr entry, long jitter)
332 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
333 Gst.ClockReturn __result;
334 __result = __obj.OnWait (entry == IntPtr.Zero ? null : (Gst.ClockEntry) GLib.Opaque.GetOpaque (entry, typeof (Gst.ClockEntry), false), jitter);
335 return (int) __result;
336 } catch (Exception e) {
337 GLib.ExceptionManager.RaiseUnhandledException (e, true);
338 // NOTREACHED: above call does not return.
343 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideWait")]
344 protected virtual Gst.ClockReturn OnWait (Gst.ClockEntry entry, long jitter)
346 return InternalWait (entry, jitter);
349 private Gst.ClockReturn InternalWait (Gst.ClockEntry entry, long jitter)
351 WaitNativeDelegate unmanaged = null;
353 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("wait"));
354 unmanaged = (WaitNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(WaitNativeDelegate));
356 if (unmanaged == null) return (Gst.ClockReturn) 0;
358 int __result = unmanaged (this.Handle, entry == null ? IntPtr.Zero : entry.Handle, jitter);
359 return (Gst.ClockReturn) __result;
362 static WaitAsyncNativeDelegate WaitAsync_cb_delegate;
363 static WaitAsyncNativeDelegate WaitAsyncVMCallback {
365 if (WaitAsync_cb_delegate == null)
366 WaitAsync_cb_delegate = new WaitAsyncNativeDelegate (WaitAsync_cb);
367 return WaitAsync_cb_delegate;
371 static void OverrideWaitAsync (GLib.GType gtype)
373 OverrideWaitAsync (gtype, WaitAsyncVMCallback);
376 static void OverrideWaitAsync (GLib.GType gtype, WaitAsyncNativeDelegate callback)
379 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("wait_async"));
380 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
384 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
385 delegate int WaitAsyncNativeDelegate (IntPtr inst, IntPtr entry);
387 static int WaitAsync_cb (IntPtr inst, IntPtr entry)
390 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
391 Gst.ClockReturn __result;
392 __result = __obj.OnWaitAsync (entry == IntPtr.Zero ? null : (Gst.ClockEntry) GLib.Opaque.GetOpaque (entry, typeof (Gst.ClockEntry), false));
393 return (int) __result;
394 } catch (Exception e) {
395 GLib.ExceptionManager.RaiseUnhandledException (e, true);
396 // NOTREACHED: above call does not return.
401 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideWaitAsync")]
402 protected virtual Gst.ClockReturn OnWaitAsync (Gst.ClockEntry entry)
404 return InternalWaitAsync (entry);
407 private Gst.ClockReturn InternalWaitAsync (Gst.ClockEntry entry)
409 WaitAsyncNativeDelegate unmanaged = null;
411 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("wait_async"));
412 unmanaged = (WaitAsyncNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(WaitAsyncNativeDelegate));
414 if (unmanaged == null) return (Gst.ClockReturn) 0;
416 int __result = unmanaged (this.Handle, entry == null ? IntPtr.Zero : entry.Handle);
417 return (Gst.ClockReturn) __result;
420 static UnscheduleNativeDelegate Unschedule_cb_delegate;
421 static UnscheduleNativeDelegate UnscheduleVMCallback {
423 if (Unschedule_cb_delegate == null)
424 Unschedule_cb_delegate = new UnscheduleNativeDelegate (Unschedule_cb);
425 return Unschedule_cb_delegate;
429 static void OverrideUnschedule (GLib.GType gtype)
431 OverrideUnschedule (gtype, UnscheduleVMCallback);
434 static void OverrideUnschedule (GLib.GType gtype, UnscheduleNativeDelegate callback)
437 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("unschedule"));
438 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
442 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
443 delegate void UnscheduleNativeDelegate (IntPtr inst, IntPtr entry);
445 static void Unschedule_cb (IntPtr inst, IntPtr entry)
448 Clock __obj = GLib.Object.GetObject (inst, false) as Clock;
449 __obj.OnUnschedule (entry == IntPtr.Zero ? null : (Gst.ClockEntry) GLib.Opaque.GetOpaque (entry, typeof (Gst.ClockEntry), false));
450 } catch (Exception e) {
451 GLib.ExceptionManager.RaiseUnhandledException (e, false);
455 [GLib.DefaultSignalHandler(Type=typeof(Gst.Clock), ConnectionMethod="OverrideUnschedule")]
456 protected virtual void OnUnschedule (Gst.ClockEntry entry)
458 InternalUnschedule (entry);
461 private void InternalUnschedule (Gst.ClockEntry entry)
463 UnscheduleNativeDelegate unmanaged = null;
465 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("unschedule"));
466 unmanaged = (UnscheduleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(UnscheduleNativeDelegate));
468 if (unmanaged == null) return;
470 unmanaged (this.Handle, entry == null ? IntPtr.Zero : entry.Handle);
474 // Internal representation of the wrapped structure ABI.
475 static GLib.AbiStruct _class_abi = null;
476 static public new GLib.AbiStruct class_abi {
478 if (_class_abi == null)
479 _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
480 new GLib.AbiField("change_resolution"
481 , Gst.Object.class_abi.Fields
482 , (uint) Marshal.SizeOf(typeof(IntPtr)) // change_resolution
485 , (uint) Marshal.SizeOf(typeof(IntPtr))
488 new GLib.AbiField("get_resolution"
490 , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_resolution
491 , "change_resolution"
492 , "get_internal_time"
493 , (uint) Marshal.SizeOf(typeof(IntPtr))
496 new GLib.AbiField("get_internal_time"
498 , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_internal_time
501 , (uint) Marshal.SizeOf(typeof(IntPtr))
504 new GLib.AbiField("wait"
506 , (uint) Marshal.SizeOf(typeof(IntPtr)) // wait
507 , "get_internal_time"
509 , (uint) Marshal.SizeOf(typeof(IntPtr))
512 new GLib.AbiField("wait_async"
514 , (uint) Marshal.SizeOf(typeof(IntPtr)) // wait_async
517 , (uint) Marshal.SizeOf(typeof(IntPtr))
520 new GLib.AbiField("unschedule"
522 , (uint) Marshal.SizeOf(typeof(IntPtr)) // unschedule
525 , (uint) Marshal.SizeOf(typeof(IntPtr))
528 new GLib.AbiField("_gst_reserved"
530 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
533 , (uint) Marshal.SizeOf(typeof(IntPtr))
543 // End of the ABI representation.
545 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
546 static extern IntPtr gst_clock_get_type();
548 public static new GLib.GType GType {
550 IntPtr raw_ret = gst_clock_get_type();
551 GLib.GType ret = new GLib.GType(raw_ret);
556 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
557 static extern int gst_clock_id_compare_func(IntPtr id1, IntPtr id2);
559 public static int IdCompareFunc(IntPtr id1, IntPtr id2) {
560 int raw_ret = gst_clock_id_compare_func(id1, id2);
565 public static int IdCompareFunc() {
566 return IdCompareFunc (IntPtr.Zero, IntPtr.Zero);
569 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
570 static extern IntPtr gst_clock_id_get_clock(IntPtr id);
572 public static Gst.Clock IdGetClock(IntPtr id) {
573 IntPtr raw_ret = gst_clock_id_get_clock(id);
574 Gst.Clock ret = GLib.Object.GetObject(raw_ret, true) as Gst.Clock;
578 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
579 static extern ulong gst_clock_id_get_time(IntPtr id);
581 public static ulong IdGetTime(IntPtr id) {
582 ulong raw_ret = gst_clock_id_get_time(id);
587 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
588 static extern IntPtr gst_clock_id_ref(IntPtr id);
590 public static IntPtr IdRef(IntPtr id) {
591 IntPtr raw_ret = gst_clock_id_ref(id);
592 IntPtr ret = raw_ret;
596 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
597 static extern void gst_clock_id_unref(IntPtr id);
599 public static void IdUnref(IntPtr id) {
600 gst_clock_id_unref(id);
603 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
604 static extern void gst_clock_id_unschedule(IntPtr id);
606 public static void IdUnschedule(IntPtr id) {
607 gst_clock_id_unschedule(id);
610 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
611 static extern bool gst_clock_id_uses_clock(IntPtr id, IntPtr clock);
613 public static bool IdUsesClock(IntPtr id, Gst.Clock clock) {
614 bool raw_ret = gst_clock_id_uses_clock(id, clock == null ? IntPtr.Zero : clock.Handle);
619 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
620 static extern int gst_clock_id_wait(IntPtr id, out long jitter);
622 public static Gst.ClockReturn IdWait(IntPtr id, out long jitter) {
623 int raw_ret = gst_clock_id_wait(id, out jitter);
624 Gst.ClockReturn ret = (Gst.ClockReturn) raw_ret;
628 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
629 static extern int gst_clock_id_wait_async(IntPtr id, GstSharp.ClockCallbackNative func, IntPtr user_data, GLib.DestroyNotify destroy_data);
631 public static Gst.ClockReturn IdWaitAsync(IntPtr id, Gst.ClockCallback func) {
632 GstSharp.ClockCallbackWrapper func_wrapper = new GstSharp.ClockCallbackWrapper (func);
634 GLib.DestroyNotify destroy_data;
636 user_data = IntPtr.Zero;
639 user_data = (IntPtr) GCHandle.Alloc (func_wrapper);
640 destroy_data = GLib.DestroyHelper.NotifyHandler;
642 int raw_ret = gst_clock_id_wait_async(id, func_wrapper.NativeDelegate, user_data, destroy_data);
643 Gst.ClockReturn ret = (Gst.ClockReturn) raw_ret;
647 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
648 static extern bool gst_clock_add_observation(IntPtr raw, ulong slave, ulong master, out double r_squared);
650 public bool AddObservation(ulong slave, ulong master, out double r_squared) {
651 bool raw_ret = gst_clock_add_observation(Handle, slave, master, out r_squared);
656 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
657 static extern bool gst_clock_add_observation_unapplied(IntPtr raw, ulong slave, ulong master, out double r_squared, out ulong _internal, out ulong external, out ulong rate_num, out ulong rate_denom);
659 public bool AddObservationUnapplied(ulong slave, ulong master, out double r_squared, out ulong _internal, out ulong external, out ulong rate_num, out ulong rate_denom) {
660 bool raw_ret = gst_clock_add_observation_unapplied(Handle, slave, master, out r_squared, out _internal, out external, out rate_num, out rate_denom);
665 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
666 static extern ulong gst_clock_adjust_unlocked(IntPtr raw, ulong _internal);
668 public ulong AdjustUnlocked(ulong _internal) {
669 ulong raw_ret = gst_clock_adjust_unlocked(Handle, _internal);
674 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
675 static extern ulong gst_clock_adjust_with_calibration(IntPtr raw, ulong internal_target, ulong cinternal, ulong cexternal, ulong cnum, ulong cdenom);
677 public ulong AdjustWithCalibration(ulong internal_target, ulong cinternal, ulong cexternal, ulong cnum, ulong cdenom) {
678 ulong raw_ret = gst_clock_adjust_with_calibration(Handle, internal_target, cinternal, cexternal, cnum, cdenom);
683 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
684 static extern void gst_clock_get_calibration(IntPtr raw, out ulong _internal, out ulong external, out ulong rate_num, out ulong rate_denom);
686 public void GetCalibration(out ulong _internal, out ulong external, out ulong rate_num, out ulong rate_denom) {
687 gst_clock_get_calibration(Handle, out _internal, out external, out rate_num, out rate_denom);
690 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
691 static extern ulong gst_clock_get_internal_time(IntPtr raw);
693 public ulong InternalTime {
695 ulong raw_ret = gst_clock_get_internal_time(Handle);
701 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
702 static extern IntPtr gst_clock_get_master(IntPtr raw);
704 public Gst.Clock Master {
706 IntPtr raw_ret = gst_clock_get_master(Handle);
707 Gst.Clock ret = GLib.Object.GetObject(raw_ret, true) as Gst.Clock;
712 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
713 static extern ulong gst_clock_get_resolution(IntPtr raw);
715 public ulong Resolution {
717 ulong raw_ret = gst_clock_get_resolution(Handle);
723 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
724 static extern ulong gst_clock_get_time(IntPtr raw);
728 ulong raw_ret = gst_clock_get_time(Handle);
734 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
735 static extern bool gst_clock_is_synced(IntPtr raw);
737 public bool IsSynced {
739 bool raw_ret = gst_clock_is_synced(Handle);
745 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
746 static extern IntPtr gst_clock_new_periodic_id(IntPtr raw, ulong start_time, ulong interval);
748 public IntPtr NewPeriodicId(ulong start_time, ulong interval) {
749 IntPtr raw_ret = gst_clock_new_periodic_id(Handle, start_time, interval);
750 IntPtr ret = raw_ret;
754 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
755 static extern IntPtr gst_clock_new_single_shot_id(IntPtr raw, ulong time);
757 public IntPtr NewSingleShotId(ulong time) {
758 IntPtr raw_ret = gst_clock_new_single_shot_id(Handle, time);
759 IntPtr ret = raw_ret;
763 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
764 static extern bool gst_clock_periodic_id_reinit(IntPtr raw, IntPtr id, ulong start_time, ulong interval);
766 public bool PeriodicIdReinit(IntPtr id, ulong start_time, ulong interval) {
767 bool raw_ret = gst_clock_periodic_id_reinit(Handle, id, start_time, interval);
772 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
773 static extern void gst_clock_set_calibration(IntPtr raw, ulong _internal, ulong external, ulong rate_num, ulong rate_denom);
775 public void SetCalibration(ulong _internal, ulong external, ulong rate_num, ulong rate_denom) {
776 gst_clock_set_calibration(Handle, _internal, external, rate_num, rate_denom);
779 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
780 static extern bool gst_clock_set_master(IntPtr raw, IntPtr master);
782 public bool SetMaster(Gst.Clock master) {
783 bool raw_ret = gst_clock_set_master(Handle, master == null ? IntPtr.Zero : master.Handle);
788 public bool SetMaster() {
789 return SetMaster (null);
792 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
793 static extern ulong gst_clock_set_resolution(IntPtr raw, ulong resolution);
795 public ulong SetResolution(ulong resolution) {
796 ulong raw_ret = gst_clock_set_resolution(Handle, resolution);
801 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
802 static extern void gst_clock_set_synced(IntPtr raw, bool synced);
804 public void is_synced(bool synced) {
805 gst_clock_set_synced(Handle, synced);
808 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
809 static extern bool gst_clock_single_shot_id_reinit(IntPtr raw, IntPtr id, ulong time);
811 public bool SingleShotIdReinit(IntPtr id, ulong time) {
812 bool raw_ret = gst_clock_single_shot_id_reinit(Handle, id, time);
817 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
818 static extern ulong gst_clock_unadjust_unlocked(IntPtr raw, ulong external);
820 public ulong UnadjustUnlocked(ulong external) {
821 ulong raw_ret = gst_clock_unadjust_unlocked(Handle, external);
826 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
827 static extern ulong gst_clock_unadjust_with_calibration(IntPtr raw, ulong external_target, ulong cinternal, ulong cexternal, ulong cnum, ulong cdenom);
829 public ulong UnadjustWithCalibration(ulong external_target, ulong cinternal, ulong cexternal, ulong cnum, ulong cdenom) {
830 ulong raw_ret = gst_clock_unadjust_with_calibration(Handle, external_target, cinternal, cexternal, cnum, cdenom);
835 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
836 static extern bool gst_clock_wait_for_sync(IntPtr raw, ulong timeout);
838 public bool WaitForSync(ulong timeout) {
839 bool raw_ret = gst_clock_wait_for_sync(Handle, timeout);
845 // Internal representation of the wrapped structure ABI.
846 static GLib.AbiStruct _abi_info = null;
847 static public new GLib.AbiStruct abi_info {
849 if (_abi_info == null)
850 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
851 new GLib.AbiField("priv"
852 , Gst.Object.abi_info.Fields
853 , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
856 , (uint) Marshal.SizeOf(typeof(IntPtr))
859 new GLib.AbiField("_gst_reserved"
861 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
864 , (uint) Marshal.SizeOf(typeof(IntPtr))
874 // End of the ABI representation.