GStreamer clock class. Override the vmethods to implement the clock functionality.
master of the master clock and the time slave of the slave clock
are added to the list of observations. If enough observations are available, a linear regression algorithm is run on the
observations and clock is recalibrated. If this functions returns true, r_squared will
contain the correlation coefficient of the interpolation. A value of 1.0 means a perfect regression was performed. This value can be
used to control the sampling frequency of the master and slave clocks. regression algorithm. MT safe.
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. This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock
subclasses. This function is the reverse of unadjust_unlocked.
clock. See
set_calibration for more information. caller is not interested in the
values. MT safe.
clock is slaved to or null when the clock is not
slaved to any master clock. not slaved to a master clock. Unref after usage. MT safe.
id to the provided start time and interval. Does not
modify the reference count.
clock. A rate of 1/1 is the normal speed of the clock.
Values bigger than 1/1 make the clock go faster. get_time should have been
external at internal time internal. This internal time should not be in the future; that is, it should be
less than the value of get_internal_time when this function is
called. Subsequent calls to get_time will return clock times computed as
follows:
master as the master clock for clock. clock will be
automatically calibrated so that get_time reports the same time as the master
clock. A clock provider that slaves its clock to a master can get the current calibration values with
get_calibration. however keep reporting its time adjusted with the last
configured rate and time offsets. Trying to set a master on a clock without the
CAN_SET_MASTER flag will make this function return false
. MT safe.
id to the provided time. Does not modify the
reference count.
external clock time to the internal time of clock, using
the rate and reference time set with set_calibration. This function
should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. This function is the reverse of
adjust_unlocked.
