Class: Gst::ElementFactory
- Inherits:
-
PluginFeature
- Object
- GObject::InitiallyUnowned
- Object
- PluginFeature
- Gst::ElementFactory
- Defined in:
- lib/gst/element-factory.rb
Class Method Summary collapse
-
.find(name) ⇒ Gst::ElementFactory
Search for an element factory of the given name.
-
.list_filter(list, caps, direction, subsetonly) ⇒ GLib::List<Gst::ElementFactory>
Filter out all the elementfactories in list that can handle caps in the given direction.
-
.list_get_elements(type, minrank) ⇒ GLib::List<Gst::ElementFactory>
Get a list of factories that match the given type.
-
.make(factoryname, name) ⇒ Gst::Element
Create a new element of the type defined by the given element factory.
-
.make_full(factoryname, first, array) ⇒ Gst::Element
Create a new element of the type defined by the given element factory.
-
.make_valist(factoryname, first, properties) ⇒ Gst::Element
Create a new element of the type defined by the given element factory.
-
.make_with_properties(factoryname, n, names, values) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory.
Instance Method Summary collapse
- #author ⇒ Object
-
#can_sink_all_caps(caps) ⇒ Boolean
Checks if the factory can sink all possible capabilities.
-
#can_sink_any_caps(caps) ⇒ Boolean
Checks if the factory can sink any possible capability.
-
#can_src_all_caps(caps) ⇒ Boolean
Checks if the factory can src all possible capabilities.
-
#can_src_any_caps(caps) ⇒ Boolean
Checks if the factory can src any possible capability.
-
#create(name) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory.
-
#create_full(first, array) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory.
-
#create_valist(first, properties) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory.
-
#create_with_properties(n, names, values) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory.
- #description ⇒ Object
-
#element_type ⇒ GLib::Type
Get the #GType for elements managed by this factory.
-
#get_metadata(key) ⇒ String
Get the metadata on factory with key.
-
#has_interface(interfacename) ⇒ Boolean
Check if factory implements the interface with name interfacename.
- #klass ⇒ Object
-
#list_is_type(type) ⇒ Boolean
Check if factory is of the given types.
- #long_name ⇒ Object
-
#metadata_keys ⇒ Array<String>
Get the available keys for the metadata on factory.
-
#num_pad_templates ⇒ Integer
Gets the number of pad_templates in this factory.
-
#skip_documentation ⇒ Boolean
Queries whether registered element managed by factory needs to be excluded from documentation system or not.
-
#static_pad_templates ⇒ GLib::List<Gst::StaticPadTemplate>
Gets the #GList of Gst::StaticPadTemplate for this factory.
-
#uri_protocols ⇒ Array<String>
Gets an array of protocols this element supports or nil if no protocols are supported.
-
#uri_type ⇒ Gst::URIType
Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none.
Methods inherited from PluginFeature
#check_version, list_copy, list_debug, list_free, #load, #plugin, #plugin_name, #rank, #rank=, rank_compare_func, #rank_raw
Methods inherited from Object
#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref
Class Method Details
.find(name) ⇒ Gst::ElementFactory
Search for an element factory of the given name. Refs the returned element factory; caller is responsible for unreffing. nil otherwise
.list_filter(list, caps, direction, subsetonly) ⇒ GLib::List<Gst::ElementFactory>
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.
.list_get_elements(type, minrank) ⇒ GLib::List<Gst::ElementFactory>
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.
.make(factoryname, name) ⇒ Gst::Element
Create a new element of the type defined by the given element factory. If name is nil, 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. if unable to create element
.make_full(factoryname, first, array) ⇒ Gst::Element
Create a new element of the type defined by the given element factory. The supplied list of properties, will be passed at object construction. if unable to create element
.make_valist(factoryname, first, properties) ⇒ Gst::Element
Create a new element of the type defined by the given element factory. The supplied list of properties, will be passed at object construction. if unable to create element
.make_with_properties(factoryname, n, names, values) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction.
Instance Method Details
#author ⇒ Object
31 32 33 |
# File 'lib/gst/element-factory.rb', line 31 def ("author") end |
#can_sink_all_caps(caps) ⇒ Boolean
Checks if the factory can sink all possible capabilities.
#can_sink_any_caps(caps) ⇒ Boolean
Checks if the factory can sink any possible capability.
#can_src_all_caps(caps) ⇒ Boolean
Checks if the factory can src all possible capabilities.
#can_src_any_caps(caps) ⇒ Boolean
Checks if the factory can src any possible capability.
#create(name) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory. It will be given the name supplied, since all elements require a name as their first argument.
#create_full(first, array) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction.
#create_valist(first, properties) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction.
#create_with_properties(n, names, values) ⇒ Gst::Element
Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction.
#description ⇒ Object
27 28 29 |
# File 'lib/gst/element-factory.rb', line 27 def description ("description") end |
#element_type ⇒ GLib::Type
Get the #GType for elements managed by this factory. The type can only be retrieved if the element factory is loaded, which can be assured with gst_plugin_feature_load(). the factory is not loaded.
#get_metadata(key) ⇒ String
Get the metadata on factory with key. when there was no metadata with the given key.
#has_interface(interfacename) ⇒ Boolean
Check if factory implements the interface with name interfacename.
#klass ⇒ Object
23 24 25 |
# File 'lib/gst/element-factory.rb', line 23 def klass ("klass") end |
#list_is_type(type) ⇒ Boolean
Check if factory is of the given types.
#long_name ⇒ Object
19 20 21 |
# File 'lib/gst/element-factory.rb', line 19 def long_name ("long-name") end |
#metadata_keys ⇒ Array<String>
Get the available keys for the metadata on factory. an array of key strings, or nil when there is no metadata. Free with g_strfreev() when no longer needed.
#num_pad_templates ⇒ Integer
Gets the number of pad_templates in this factory.
#skip_documentation ⇒ Boolean
Queries whether registered element managed by factory needs to be excluded from documentation system or not.
#static_pad_templates ⇒ GLib::List<Gst::StaticPadTemplate>
Gets the #GList of Gst::StaticPadTemplate for this factory.
#uri_protocols ⇒ Array<String>
Gets an array of protocols this element supports or nil if no protocols are supported. You may not change the contents of the returned array, as it is still owned by the element factory. Use g_strdupv() to make a copy of the protocol string array if you need to.
#uri_type ⇒ Gst::URIType
Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none.