Class: Gst::TypeFindFactory
- Inherits:
-
PluginFeature
- Object
- GObject::InitiallyUnowned
- Object
- PluginFeature
- Gst::TypeFindFactory
- Defined in:
- lib/gst/type-find-factory.rb
Class Method Summary collapse
-
.list ⇒ GLib::List<Gst::TypeFindFactory>
Gets the list of all registered typefind factories.
Instance Method Summary collapse
-
#call_function(find) ⇒ nil
Calls the Gst::TypeFindFunction associated with this factory.
-
#caps ⇒ Gst::Caps
Gets the Gst::Caps associated with a typefind factory.
-
#extensions ⇒ Array<String>
Gets the extensions associated with a Gst::TypeFindFactory.
-
#extensions_raw ⇒ Array<String>
Gets the extensions associated with a Gst::TypeFindFactory.
-
#has_function ⇒ Boolean
Check whether the factory has a typefind function.
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
.list ⇒ GLib::List<Gst::TypeFindFactory>
Gets the list of all registered typefind factories. You must free the list using gst_plugin_feature_list_free().
The returned factories are sorted by highest rank first, and then by factory name.
Free-function: gst_plugin_feature_list_free
Instance Method Details
#call_function(find) ⇒ nil
Calls the Gst::TypeFindFunction associated with this factory.
#caps ⇒ Gst::Caps
Gets the Gst::Caps associated with a typefind factory.
#extensions ⇒ Array<String>
Gets the extensions associated with a Gst::TypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using g_strdupv(). This function may return nil to indicate a 0-length list.
20 21 22 |
# File 'lib/gst/type-find-factory.rb', line 20 def extensions extensions_raw || [] end |
#extensions_raw ⇒ Array<String>
Gets the extensions associated with a Gst::TypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using g_strdupv(). This function may return nil to indicate a 0-length list.
|
|
# File 'lib/gst/type-find-factory.rb', line 19
|
#has_function ⇒ Boolean
Check whether the factory has a typefind function. Typefind factories without typefind functions are a last-effort fallback mechanism to e.g. assume a certain media type based on the file extension.