public abstract class Clock
GStreamer clock class.
Override the vmethods to implement the clock functionality.
- public bool add_observation (ClockTime slave, ClockTime master, out double r_squared)
master of the master clock and the time
of the slave clock are added to the list of observations.
- public ClockTime adjust_unlocked (ClockTime @internal)
Converts the given
internal clock time to the external time,
adjusting for the rate and reference time set with set_calibration
and making sure that the returned time is increasing.
- public virtual ClockTime change_resolution (ClockTime old_resolution, ClockTime new_resolution)
- public void get_calibration (out ClockTime @internal, out ClockTime external, out ClockTime rate_num, out ClockTime rate_denom)
Gets the internal rate and reference time of
- public virtual ClockTime get_internal_time ()
Gets the current internal time of the given clock.
- public Clock? get_master ()
Get the master clock that
clock is slaved to or
when the clock is not slaved to any master clock.
- public virtual ClockTime get_resolution ()
Get the accuracy of the clock.
- public ClockTime get_time ()
Gets the current time of the given clock.
- public bool periodic_id_reinit (ClockID id, ClockTime start_time, ClockTime interval)
Reinitializes the provided periodic
id to the provided start
time and interval.
- public void set_calibration (ClockTime @internal, ClockTime external, ClockTime rate_num, ClockTime rate_denom)
Adjusts the rate and time of
- public bool set_master (Clock? master)
master as the master clock for
- public ClockTime set_resolution (ClockTime resolution)
Set the accuracy of the clock.
- public bool single_shot_id_reinit (ClockID id, ClockTime time)
Reinitializes the provided single shot
id to the provided
- public ClockTime unadjust_unlocked (ClockTime external)
Converts the given
external clock time to the internal time
clock, using the rate and reference time set with
- public virtual void unschedule (ClockEntry entry)
- public virtual ClockReturn wait (ClockEntry entry)
- public virtual ClockReturn wait_async (ClockEntry entry)
- public virtual ClockReturn wait_jitter (ClockEntry entry, out ClockTimeDiff jitter)
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object