Table of Contents

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

ptr IntPtr
ownedRef bool

Fields

SyncedSignal

Signal Descriptor for OnSynced.

public static readonly Signal<Clock, Clock.SyncedSignalArgs> SyncedSignal

Field Value

Signal<Clock, Clock.SyncedSignalArgs>

TimeoutPropertyDefinition

public static readonly Property<ulong, Clock> TimeoutPropertyDefinition

Field Value

Property<ulong, Clock>

WindowSizePropertyDefinition

public static readonly Property<int, Clock> WindowSizePropertyDefinition

Field Value

Property<int, Clock>

WindowThresholdPropertyDefinition

public static readonly Property<int, Clock> WindowThresholdPropertyDefinition

Field Value

Property<int, Clock>

Properties

Timeout

public ulong Timeout { get; set; }

Property Value

ulong

WindowSize

public int WindowSize { get; set; }

Property Value

int

WindowThreshold

public int WindowThreshold { get; set; }

Property Value

int

Methods

AddObservation(ClockTime, ClockTime, out double)

public bool AddObservation(ClockTime slave, ClockTime master, out double rSquared)

Parameters

slave ClockTime
master ClockTime
rSquared double

Returns

bool

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 ClockTime
master ClockTime
rSquared double
internal ClockTime
external ClockTime
rateNum ClockTime
rateDenom ClockTime

Returns

bool

AdjustUnlocked(ClockTime)

public ClockTime AdjustUnlocked(ClockTime @internal)

Parameters

internal ClockTime

Returns

ClockTime

AdjustWithCalibration(ClockTime, ClockTime, ClockTime, ClockTime, ClockTime)

[Version("1.6")]
public ClockTime AdjustWithCalibration(ClockTime internalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)

Parameters

internalTarget ClockTime
cinternal ClockTime
cexternal ClockTime
cnum ClockTime
cdenom ClockTime

Returns

ClockTime

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

internal ClockTime
external ClockTime
rateNum ClockTime
rateDenom ClockTime

GetGType()

public static Type GetGType()

Returns

Type

GetInternalTime()

public ClockTime GetInternalTime()

Returns

ClockTime

GetMaster()

public Clock? GetMaster()

Returns

Clock

GetResolution()

public ClockTime GetResolution()

Returns

ClockTime

GetTime()

public ClockTime GetTime()

Returns

ClockTime

GetTimeout()

public ClockTime GetTimeout()

Returns

ClockTime

IdCompareFunc(IntPtr, IntPtr)

public static int IdCompareFunc(IntPtr id1, IntPtr id2)

Parameters

id1 IntPtr
id2 IntPtr

Returns

int

IdGetClock(ClockID)

[Version("1.16")]
public static Clock? IdGetClock(ClockID id)

Parameters

id ClockID

Returns

Clock

IdGetTime(ClockID)

public static ClockTime IdGetTime(ClockID id)

Parameters

id ClockID

Returns

ClockTime

IdRef(ClockID)

public static ClockID IdRef(ClockID id)

Parameters

id ClockID

Returns

ClockID

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

id ClockID
clock Clock

Returns

bool

IdWait(ClockID, out ClockTimeDiff)

public static ClockReturn IdWait(ClockID id, out ClockTimeDiff jitter)

Parameters

id ClockID
jitter ClockTimeDiff

Returns

ClockReturn

IdWaitAsync(ClockID, ClockCallback)

public static ClockReturn IdWaitAsync(ClockID id, ClockCallback func)

Parameters

id ClockID
func ClockCallback

Returns

ClockReturn

IsSynced()

[Version("1.6")]
public bool IsSynced()

Returns

bool

NewPeriodicId(ClockTime, ClockTime)

public ClockID NewPeriodicId(ClockTime startTime, ClockTime interval)

Parameters

startTime ClockTime
interval ClockTime

Returns

ClockID

NewSingleShotId(ClockTime)

public ClockID NewSingleShotId(ClockTime time)

Parameters

time ClockTime

Returns

ClockID

PeriodicIdReinit(ClockID, ClockTime, ClockTime)

public bool PeriodicIdReinit(ClockID id, ClockTime startTime, ClockTime interval)

Parameters

id ClockID
startTime ClockTime
interval ClockTime

Returns

bool

SetCalibration(ClockTime, ClockTime, ClockTime, ClockTime)

public void SetCalibration(ClockTime @internal, ClockTime external, ClockTime rateNum, ClockTime rateDenom)

Parameters

internal ClockTime
external ClockTime
rateNum ClockTime
rateDenom ClockTime

SetMaster(Clock?)

public bool SetMaster(Clock? master)

Parameters

master Clock

Returns

bool

SetResolution(ClockTime)

public ClockTime SetResolution(ClockTime resolution)

Parameters

resolution ClockTime

Returns

ClockTime

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

id ClockID
time ClockTime

Returns

bool

UnadjustUnlocked(ClockTime)

public ClockTime UnadjustUnlocked(ClockTime external)

Parameters

external ClockTime

Returns

ClockTime

UnadjustWithCalibration(ClockTime, ClockTime, ClockTime, ClockTime, ClockTime)

[Version("1.8")]
public ClockTime UnadjustWithCalibration(ClockTime externalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)

Parameters

externalTarget ClockTime
cinternal ClockTime
cexternal ClockTime
cnum ClockTime
cdenom ClockTime

Returns

ClockTime

WaitForSync(ClockTime)

[Version("1.6")]
public bool WaitForSync(ClockTime timeout)

Parameters

timeout ClockTime

Returns

bool

Events

OnSynced

public event SignalHandler<Clock, Clock.SyncedSignalArgs> OnSynced

Event Type

SignalHandler<Clock, Clock.SyncedSignalArgs>