Class Clock
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class Clock : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Clock
- Implements
- Derived
- Inherited Members
Constructors
Clock()
public Clock()
Clock(params ConstructArgument[])
protected Clock(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Clock(IntPtr, bool)
protected Clock(IntPtr ptr, bool ownedRef)
Parameters
Fields
SyncedSignal
Signal Descriptor for OnSynced.
public static readonly Signal<Clock, Clock.SyncedSignalArgs> SyncedSignal
Field Value
TimeoutPropertyDefinition
public static readonly Property<ulong, Clock> TimeoutPropertyDefinition
Field Value
WindowSizePropertyDefinition
public static readonly Property<int, Clock> WindowSizePropertyDefinition
Field Value
WindowThresholdPropertyDefinition
public static readonly Property<int, Clock> WindowThresholdPropertyDefinition
Field Value
Properties
Timeout
public ulong Timeout { get; set; }
Property Value
WindowSize
public int WindowSize { get; set; }
Property Value
WindowThreshold
public int WindowThreshold { get; set; }
Property Value
Methods
AddObservation(ClockTime, ClockTime, out double)
public bool AddObservation(ClockTime slave, ClockTime master, out double rSquared)
Parameters
Returns
AddObservationUnapplied(ClockTime, ClockTime, out double, out ClockTime, out ClockTime, out ClockTime, out ClockTime)
[Version("1.6")]
public bool AddObservationUnapplied(ClockTime slave, ClockTime master, out double rSquared, out ClockTime @internal, out ClockTime external, out ClockTime rateNum, out ClockTime rateDenom)
Parameters
slave
ClockTimemaster
ClockTimerSquared
doubleinternal
ClockTimeexternal
ClockTimerateNum
ClockTimerateDenom
ClockTime
Returns
AdjustUnlocked(ClockTime)
public ClockTime AdjustUnlocked(ClockTime @internal)
Parameters
internal
ClockTime
Returns
AdjustWithCalibration(ClockTime, ClockTime, ClockTime, ClockTime, ClockTime)
[Version("1.6")]
public ClockTime AdjustWithCalibration(ClockTime internalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)
Parameters
Returns
GetCalibration(out ClockTime, out ClockTime, out ClockTime, out ClockTime)
public void GetCalibration(out ClockTime @internal, out ClockTime external, out ClockTime rateNum, out ClockTime rateDenom)
Parameters
GetGType()
public static Type GetGType()
Returns
GetInternalTime()
public ClockTime GetInternalTime()
Returns
GetMaster()
public Clock? GetMaster()
Returns
GetResolution()
public ClockTime GetResolution()
Returns
GetTime()
public ClockTime GetTime()
Returns
GetTimeout()
public ClockTime GetTimeout()
Returns
IdCompareFunc(IntPtr, IntPtr)
public static int IdCompareFunc(IntPtr id1, IntPtr id2)
Parameters
Returns
IdGetClock(ClockID)
[Version("1.16")]
public static Clock? IdGetClock(ClockID id)
Parameters
id
ClockID
Returns
IdGetTime(ClockID)
public static ClockTime IdGetTime(ClockID id)
Parameters
id
ClockID
Returns
IdRef(ClockID)
public static ClockID IdRef(ClockID id)
Parameters
id
ClockID
Returns
IdUnref(ClockID)
public static void IdUnref(ClockID id)
Parameters
id
ClockID
IdUnschedule(ClockID)
public static void IdUnschedule(ClockID id)
Parameters
id
ClockID
IdUsesClock(ClockID, Clock)
[Version("1.16")]
public static bool IdUsesClock(ClockID id, Clock clock)
Parameters
Returns
IdWait(ClockID, out ClockTimeDiff)
public static ClockReturn IdWait(ClockID id, out ClockTimeDiff jitter)
Parameters
id
ClockIDjitter
ClockTimeDiff
Returns
IdWaitAsync(ClockID, ClockCallback)
public static ClockReturn IdWaitAsync(ClockID id, ClockCallback func)
Parameters
id
ClockIDfunc
ClockCallback
Returns
IsSynced()
[Version("1.6")]
public bool IsSynced()
Returns
NewPeriodicId(ClockTime, ClockTime)
public ClockID NewPeriodicId(ClockTime startTime, ClockTime interval)
Parameters
Returns
NewSingleShotId(ClockTime)
public ClockID NewSingleShotId(ClockTime time)
Parameters
time
ClockTime
Returns
PeriodicIdReinit(ClockID, ClockTime, ClockTime)
public bool PeriodicIdReinit(ClockID id, ClockTime startTime, ClockTime interval)
Parameters
Returns
SetCalibration(ClockTime, ClockTime, ClockTime, ClockTime)
public void SetCalibration(ClockTime @internal, ClockTime external, ClockTime rateNum, ClockTime rateDenom)
Parameters
SetMaster(Clock?)
public bool SetMaster(Clock? master)
Parameters
master
Clock
Returns
SetResolution(ClockTime)
public ClockTime SetResolution(ClockTime resolution)
Parameters
resolution
ClockTime
Returns
SetSynced(bool)
[Version("1.6")]
public void SetSynced(bool synced)
Parameters
synced
bool
SetTimeout(ClockTime)
public void SetTimeout(ClockTime timeout)
Parameters
timeout
ClockTime
SingleShotIdReinit(ClockID, ClockTime)
public bool SingleShotIdReinit(ClockID id, ClockTime time)
Parameters
Returns
UnadjustUnlocked(ClockTime)
public ClockTime UnadjustUnlocked(ClockTime external)
Parameters
external
ClockTime
Returns
UnadjustWithCalibration(ClockTime, ClockTime, ClockTime, ClockTime, ClockTime)
[Version("1.8")]
public ClockTime UnadjustWithCalibration(ClockTime externalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)
Parameters
Returns
WaitForSync(ClockTime)
[Version("1.6")]
public bool WaitForSync(ClockTime timeout)
Parameters
timeout
ClockTime
Returns
Events
OnSynced
public event SignalHandler<Clock, Clock.SyncedSignalArgs> OnSynced