2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstClock
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-03-31 14:00:33 +00:00
|
|
|
Abstract class for global clocks
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
#GstSystemClock
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### TYPEDEF GstClockTime ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
A datatype to hold a time, measured in microseconds.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### TYPEDEF GstClockTimeDiff ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
A datatype to hold a timedifference, measured in microseconds.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstClockCallback ##### -->
|
|
|
|
<para>
|
|
|
|
The function prototype of the callback.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock: The clock that triggered the callback
|
|
|
|
@time: The time it was triggered
|
|
|
|
@id: The id that expired
|
|
|
|
@user_data: user data passed in the async_wait call
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### TYPEDEF GstClockID ##### -->
|
|
|
|
<para>
|
|
|
|
A detatype to hold the handle to an outstanding async clock callback
|
|
|
|
</para>
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### ENUM GstClockReturn ##### -->
|
|
|
|
<para>
|
|
|
|
The return value of a clock operation.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@GST_CLOCK_STOPPED: The clock is stopped.
|
|
|
|
@GST_CLOCK_TIMEOUT: The operation timed out.
|
|
|
|
@GST_CLOCK_EARLY: The operation was scheduled too late.
|
|
|
|
@GST_CLOCK_ERROR: An error occured
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### MACRO GST_CLOCK_DIFF ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Calculate a difference between to clock times.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@s: the first time
|
|
|
|
@e: the second time
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_TIMEVAL_TO_TIME ##### -->
|
|
|
|
<para>
|
|
|
|
Convert a GTimeVal to a GstClockTime
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@tv: the timeval to convert
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GstClock ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
The opaque data structure of the clock.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2002-05-09 14:23:02 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_set_active ##### -->
|
2002-03-31 14:00:33 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@active:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_is_active ##### -->
|
|
|
|
<para>
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@clock:
|
|
|
|
@Returns:
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_async_supported ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@clock:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_wait_async ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@clock:
|
|
|
|
@time:
|
|
|
|
@func:
|
|
|
|
@user_data:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_cancel_wait_async ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
2002-03-31 14:00:33 +00:00
|
|
|
@id:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_notify_async ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
2002-03-31 14:00:33 +00:00
|
|
|
@interval:
|
|
|
|
@func:
|
|
|
|
@user_data:
|
|
|
|
@Returns:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_remove_notify_async ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
2002-03-31 14:00:33 +00:00
|
|
|
@id:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_clock_unlock_id ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
2002-03-31 14:00:33 +00:00
|
|
|
@id:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_wait_id ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@id:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_get_next_id ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_get_time ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_id_get_time ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@id:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_get_resolution ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_set_resolution ##### -->
|
|
|
|
<para>
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@resolution:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_set_speed ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@speed:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_get_speed ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@Returns:
|
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@speed:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_reset ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@clock:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_clock_wait ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@clock:
|
|
|
|
@time:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|