ElementFactory
Object Hierarchy:
Description:
ElementFactory is used to create instances of elements. A GstElementfactory can be
added to a Plugin as it is also a
PluginFeature. Use the find and
create functions to create element instances or use
make as a convenient shortcut. The following code example shows you how
to create a GstFileSrc element.
Using an element factory:
#include <gst/gst.h>
GstElement *src;
GstElementFactory *srcfactory;
gst_init (&argc, &argv);
srcfactory = gst_element_factory_find ("filesrc");
g_return_if_fail (srcfactory != NULL);
src = gst_element_factory_create (srcfactory, "src");
g_return_if_fail (src != NULL);
...
Last reviewed on 2005-11-23 (0.9.5)
Namespace: Gst
Package: gstreamer-0.10
Content:
Static methods:
-
public static ElementFactory? find (string name)
Search for an element factory of the given name. Refs the returned element factory; caller is
responsible for unreffing.
-
public static unowned List list_filter (List list, Caps caps, PadDirection direction, bool subsetonly)
Filter out all the elementfactories in list that can handle caps in the given
direction. If subsetonly is true, then only the elements whose pads templates are a complete superset of
caps will be returned. Else any element whose pad templates caps can intersect with caps will be returned.
ElementFactory elements that match the given requisits. Use
gst_plugin_feature_list_free after usage.
-
public static unowned List list_get_elements (ElementFactoryListType type, Rank minrank)
Get a list of factories that match the given type. Only elements with a rank greater or
equal to minrank will be returned. The list of factories is returned by decreasing rank.
ElementFactory elements. Use gst_plugin_feature_list_free after
usage.
-
public static Element? make (string factoryname, string? name)
Create a new element of the type defined by the given element factory. If name is NULL, then the element
will receive a guaranteed unique name, consisting of the element factory name and a number. If name is given, it will be given the
name supplied.
Creation methods:
Methods: