Table of Contents

Class Clock

Namespace
Gst.Internal
Assembly
Gst-1.0.dll
public class Clock
Inheritance
Clock
Inherited Members

Methods

AddObservation(IntPtr, ClockTime, ClockTime, out double)

Calls native method gst_clock_add_observation.

public static extern bool AddObservation(IntPtr clock, ClockTime slave, ClockTime master, out double rSquared)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

slave ClockTime

Transfer ownership: None Nullable: False

master ClockTime

Transfer ownership: None Nullable: False

rSquared double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AddObservationUnapplied(IntPtr, ClockTime, ClockTime, out double, out ClockTime, out ClockTime, out ClockTime, out ClockTime)

Calls native method gst_clock_add_observation_unapplied. Version: 1.6

[Version("1.6")]
public static extern bool AddObservationUnapplied(IntPtr clock, ClockTime slave, ClockTime master, out double rSquared, out ClockTime @internal, out ClockTime external, out ClockTime rateNum, out ClockTime rateDenom)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

slave ClockTime

Transfer ownership: None Nullable: False

master ClockTime

Transfer ownership: None Nullable: False

rSquared double

Transfer ownership: Full Nullable: False

internal ClockTime
external ClockTime

Transfer ownership: Full Nullable: False

rateNum ClockTime

Transfer ownership: Full Nullable: False

rateDenom ClockTime

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AdjustUnlocked(IntPtr, ClockTime)

Calls native method gst_clock_adjust_unlocked.

public static extern ulong AdjustUnlocked(IntPtr clock, ClockTime @internal)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

internal ClockTime

Returns

ulong

Transfer ownership: None Nullable: False

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

Calls native method gst_clock_adjust_with_calibration. Version: 1.6

[Version("1.6")]
public static extern ulong AdjustWithCalibration(IntPtr clock, ClockTime internalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)

Parameters

clock IntPtr

Transfer ownership: None Nullable: True

internalTarget ClockTime

Transfer ownership: None Nullable: False

cinternal ClockTime

Transfer ownership: None Nullable: False

cexternal ClockTime

Transfer ownership: None Nullable: False

cnum ClockTime

Transfer ownership: None Nullable: False

cdenom ClockTime

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetCalibration(IntPtr, out ClockTime, out ClockTime, out ClockTime, out ClockTime)

Calls native method gst_clock_get_calibration.

public static extern void GetCalibration(IntPtr clock, out ClockTime @internal, out ClockTime external, out ClockTime rateNum, out ClockTime rateDenom)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

internal ClockTime
external ClockTime

Transfer ownership: Full Nullable: False

rateNum ClockTime

Transfer ownership: Full Nullable: False

rateDenom ClockTime

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gst_clock_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInternalTime(IntPtr)

Calls native method gst_clock_get_internal_time.

public static extern ulong GetInternalTime(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetMaster(IntPtr)

Calls native method gst_clock_get_master.

public static extern IntPtr GetMaster(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetResolution(IntPtr)

Calls native method gst_clock_get_resolution.

public static extern ulong GetResolution(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetTime(IntPtr)

Calls native method gst_clock_get_time.

public static extern ulong GetTime(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetTimeout(IntPtr)

Calls native method gst_clock_get_timeout.

public static extern ulong GetTimeout(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

IdCompareFunc(IntPtr, IntPtr)

Calls native function gst_clock_id_compare_func.

public static extern int IdCompareFunc(IntPtr id1, IntPtr id2)

Parameters

id1 IntPtr

Transfer ownership: None Nullable: True

id2 IntPtr

Transfer ownership: None Nullable: True

Returns

int

Transfer ownership: None Nullable: False

IdGetClock(IntPtr)

Calls native function gst_clock_id_get_clock. Version: 1.16

[Version("1.16")]
public static extern IntPtr IdGetClock(IntPtr id)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

IdGetTime(IntPtr)

Calls native function gst_clock_id_get_time.

public static extern ulong IdGetTime(IntPtr id)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

IdRef(IntPtr)

Calls native function gst_clock_id_ref.

public static extern IntPtr IdRef(IntPtr id)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

IdUnref(IntPtr)

Calls native function gst_clock_id_unref.

public static extern void IdUnref(IntPtr id)

Parameters

id IntPtr

Transfer ownership: Full Nullable: False

IdUnschedule(IntPtr)

Calls native function gst_clock_id_unschedule.

public static extern void IdUnschedule(IntPtr id)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

IdUsesClock(IntPtr, IntPtr)

Calls native function gst_clock_id_uses_clock. Version: 1.16

[Version("1.16")]
public static extern bool IdUsesClock(IntPtr id, IntPtr clock)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

clock IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IdWait(IntPtr, out ClockTimeDiff)

Calls native function gst_clock_id_wait.

public static extern ClockReturn IdWait(IntPtr id, out ClockTimeDiff jitter)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

jitter ClockTimeDiff

Transfer ownership: Full Nullable: False

Returns

ClockReturn

Transfer ownership: None Nullable: False

IdWaitAsync(IntPtr, ClockCallback, IntPtr, DestroyNotify)

Calls native function gst_clock_id_wait_async.

public static extern ClockReturn IdWaitAsync(IntPtr id, ClockCallback func, IntPtr userData, DestroyNotify destroyData)

Parameters

id IntPtr

Transfer ownership: None Nullable: False

func ClockCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroyData DestroyNotify

Transfer ownership: None Nullable: False

Returns

ClockReturn

Transfer ownership: None Nullable: False

IsSynced(IntPtr)

Calls native method gst_clock_is_synced. Version: 1.6

[Version("1.6")]
public static extern bool IsSynced(IntPtr clock)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

NewPeriodicId(IntPtr, ClockTime, ClockTime)

Calls native method gst_clock_new_periodic_id.

public static extern IntPtr NewPeriodicId(IntPtr clock, ClockTime startTime, ClockTime interval)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

startTime ClockTime

Transfer ownership: None Nullable: False

interval ClockTime

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewSingleShotId(IntPtr, ClockTime)

Calls native method gst_clock_new_single_shot_id.

public static extern IntPtr NewSingleShotId(IntPtr clock, ClockTime time)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

time ClockTime

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

PeriodicIdReinit(IntPtr, IntPtr, ClockTime, ClockTime)

Calls native method gst_clock_periodic_id_reinit.

public static extern bool PeriodicIdReinit(IntPtr clock, IntPtr id, ClockTime startTime, ClockTime interval)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

id IntPtr

Transfer ownership: None Nullable: False

startTime ClockTime

Transfer ownership: None Nullable: False

interval ClockTime

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

SetCalibration(IntPtr, ClockTime, ClockTime, ClockTime, ClockTime)

Calls native method gst_clock_set_calibration.

public static extern void SetCalibration(IntPtr clock, ClockTime @internal, ClockTime external, ClockTime rateNum, ClockTime rateDenom)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

internal ClockTime
external ClockTime

Transfer ownership: None Nullable: False

rateNum ClockTime

Transfer ownership: None Nullable: False

rateDenom ClockTime

Transfer ownership: None Nullable: False

SetMaster(IntPtr, IntPtr)

Calls native method gst_clock_set_master.

public static extern bool SetMaster(IntPtr clock, IntPtr master)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

master IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

SetResolution(IntPtr, ClockTime)

Calls native method gst_clock_set_resolution.

public static extern ulong SetResolution(IntPtr clock, ClockTime resolution)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

resolution ClockTime

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

SetSynced(IntPtr, bool)

Calls native method gst_clock_set_synced. Version: 1.6

[Version("1.6")]
public static extern void SetSynced(IntPtr clock, bool synced)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

synced bool

Transfer ownership: None Nullable: False

SetTimeout(IntPtr, ClockTime)

Calls native method gst_clock_set_timeout.

public static extern void SetTimeout(IntPtr clock, ClockTime timeout)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

timeout ClockTime

Transfer ownership: None Nullable: False

SingleShotIdReinit(IntPtr, IntPtr, ClockTime)

Calls native method gst_clock_single_shot_id_reinit.

public static extern bool SingleShotIdReinit(IntPtr clock, IntPtr id, ClockTime time)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

id IntPtr

Transfer ownership: None Nullable: False

time ClockTime

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

UnadjustUnlocked(IntPtr, ClockTime)

Calls native method gst_clock_unadjust_unlocked.

public static extern ulong UnadjustUnlocked(IntPtr clock, ClockTime external)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

external ClockTime

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

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

Calls native method gst_clock_unadjust_with_calibration. Version: 1.8

[Version("1.8")]
public static extern ulong UnadjustWithCalibration(IntPtr clock, ClockTime externalTarget, ClockTime cinternal, ClockTime cexternal, ClockTime cnum, ClockTime cdenom)

Parameters

clock IntPtr

Transfer ownership: None Nullable: True

externalTarget ClockTime

Transfer ownership: None Nullable: False

cinternal ClockTime

Transfer ownership: None Nullable: False

cexternal ClockTime

Transfer ownership: None Nullable: False

cnum ClockTime

Transfer ownership: None Nullable: False

cdenom ClockTime

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

WaitForSync(IntPtr, ClockTime)

Calls native method gst_clock_wait_for_sync. Version: 1.6

[Version("1.6")]
public static extern bool WaitForSync(IntPtr clock, ClockTime timeout)

Parameters

clock IntPtr

Transfer ownership: None Nullable: False

timeout ClockTime

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False