2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstScheduler
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
An abstract class for plugable schedulers.
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
This is a base class for custom schedulers.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_SCHEDULER_PARENT ##### -->
|
|
|
|
<para>
|
|
|
|
Get the parent object of this scheduler.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched: the scheduler to get the parent of.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_SCHEDULER_STATE ##### -->
|
|
|
|
<para>
|
|
|
|
Get the state of the scheduler.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched: the scheduler to get the state of.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GstSchedulerState ##### -->
|
|
|
|
<para>
|
2002-12-14 13:02:16 +00:00
|
|
|
The state of the scheduler
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-12-14 13:02:16 +00:00
|
|
|
@GST_SCHEDULER_STATE_NONE: no state
|
|
|
|
@GST_SCHEDULER_STATE_RUNNING: the scheduler is running
|
|
|
|
@GST_SCHEDULER_STATE_STOPPED: the scheduler is stopped
|
|
|
|
@GST_SCHEDULER_STATE_ERROR: the scheduler is in error
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### ENUM GstSchedulerFlags ##### -->
|
|
|
|
<para>
|
2002-12-14 13:02:16 +00:00
|
|
|
Flags for the scheduler
|
2002-03-31 14:00:33 +00:00
|
|
|
</para>
|
|
|
|
|
2002-12-14 13:02:16 +00:00
|
|
|
@GST_SCHEDULER_FLAG_FIXED_CLOCK: The scheduler has a fixed clock
|
|
|
|
@GST_SCHEDULER_FLAG_LAST: subclasses can start numbering their flags starting
|
|
|
|
from here.
|
2002-03-31 14:00:33 +00:00
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### MACRO gst_scheduler_destroy ##### -->
|
|
|
|
<para>
|
|
|
|
Destroy the scheduler
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched: The scheduler to destroy.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_setup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_reset ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_add_element ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_remove_element ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_state_transition ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
@transition:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-12-14 13:02:16 +00:00
|
|
|
<!-- ##### FUNCTION gst_scheduler_scheduling_change ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_scheduler_lock_element ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_unlock_element ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_yield ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_interrupt ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_error ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_pad_connect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_pad_disconnect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_pad_select ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@padlist:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_scheduler_add_scheduler ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@sched2:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_remove_scheduler ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@sched2:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_auto_clock ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_get_clock ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_set_clock ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@clock:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_use_clock ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@clock:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_clock_wait ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@element:
|
2002-12-30 17:54:02 +00:00
|
|
|
@id:
|
2002-06-12 22:27:18 +00:00
|
|
|
@jitter:
|
2002-03-31 14:00:33 +00:00
|
|
|
@Returns:
|
2002-12-30 17:54:02 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@clock:
|
|
|
|
@time:
|
2002-03-31 14:00:33 +00:00
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_scheduler_iterate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_scheduler_show ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@sched:
|
|
|
|
|
|
|
|
|