GStreamer Library Reference Manual (Core) | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gst/gst.h> GstScheduler* gst_schedulerfactory_create (GstSchedulerFactory *factory, GstElement *parent); void gst_schedulerfactory_destroy (GstSchedulerFactory *factory); GstSchedulerFactory* gst_schedulerfactory_find (const gchar *name); GList* gst_schedulerfactory_get_list (void); GstScheduler* gst_schedulerfactory_make (const gchar *name, GstElement *parent); GstSchedulerFactory* gst_schedulerfactory_new (const gchar *name, const gchar *longdesc, GType type); const gchar* gst_schedulerfactory_get_default_name (void); void gst_schedulerfactory_set_default_name (const gchar *name); |
A schedulerfactory is used to create instances of a scheduler. It can be added to a GstPlugin as it extends GstPluginFeature.
Use gst_schedulerfactory_new() to create a new scheduler which can be registered to a plugin with gst_plugin_add_feature().
Use gst_schedulerfactory_find() to find the named schedulerfactory. or use gst_schedulerfactory_get_list() to get a list of all available schedulers.
Once an schedulerfactory has been obtained use gst_schedulerfactory_create() to instantiate a real scheduler. Optionally gst_schedulerfactory_make() to create a scheduler from the named factory.
Use gst_schedulerfactory_destroy() to remove the factory from the global list.
GstScheduler* gst_schedulerfactory_create (GstSchedulerFactory *factory, GstElement *parent); |
Create a new GstScheduler instance from the given schedulerfactory with the given parent.
void gst_schedulerfactory_destroy (GstSchedulerFactory *factory); |
Removes the scheduler from the global list.
GstSchedulerFactory* gst_schedulerfactory_find (const gchar *name); |
Search for an schedulerfactory of the given name.
name : | name of schedulerfactory to find |
Returns : | GstSchedulerFactory if found, NULL otherwise |
GList* gst_schedulerfactory_get_list (void); |
Get the global list of schedulerfactories.
Returns : | GList of type GstSchedulerFactory |
GstScheduler* gst_schedulerfactory_make (const gchar *name, GstElement *parent); |
Create a new GstScheduler instance from the schedulerfactory with the given name and parent.
GstSchedulerFactory* gst_schedulerfactory_new (const gchar *name, const gchar *longdesc, GType type); |
Create a new schedulerfactory with the given parameters
name : | name of schedulerfactory to create |
longdesc : | long description of schedulerfactory to create |
type : | the gtk type of the GstScheduler element of this factory |
Returns : | a new GstSchedulerFactory. |
const gchar* gst_schedulerfactory_get_default_name (void); |
Get the default schedulerfactory name.