GstSchedulerFactory

Name

GstSchedulerFactory -- Create schedulers from a factory

Synopsis


#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);

Object Hierarchy


  GObject
   +----GstObject
         +----GstPluginFeature
               +----GstSchedulerFactory

Description

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.

Details

gst_schedulerfactory_create ()

GstScheduler* gst_schedulerfactory_create   (GstSchedulerFactory *factory,
                                             GstElement *parent);

Create a new GstScheduler instance from the given schedulerfactory with the given parent.

factory : the factory used to create the instance
parent : the parent element of this scheduler
Returns : A new GstScheduler instance.


gst_schedulerfactory_destroy ()

void        gst_schedulerfactory_destroy    (GstSchedulerFactory *factory);

Removes the scheduler from the global list.

factory : factory to destroy


gst_schedulerfactory_find ()

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


gst_schedulerfactory_get_list ()

GList*      gst_schedulerfactory_get_list   (void);

Get the global list of schedulerfactories.

Returns : GList of type GstSchedulerFactory


gst_schedulerfactory_make ()

GstScheduler* gst_schedulerfactory_make     (const gchar *name,
                                             GstElement *parent);

Create a new GstScheduler instance from the schedulerfactory with the given name and parent.

name : the name of the factory used to create the instance
parent : the parent element of this scheduler
Returns : A new GstScheduler instance.


gst_schedulerfactory_new ()

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.


gst_schedulerfactory_get_default_name ()

const gchar* gst_schedulerfactory_get_default_name
                                            (void);

Get the default schedulerfactory name.

Returns : the name of the default scheduler.


gst_schedulerfactory_set_default_name ()

void        gst_schedulerfactory_set_default_name
                                            (const gchar *name);

Set the default schedulerfactory name.

name : the name of the factory used as a default