Class: Gst::TypeFindFactory

Inherits:
PluginFeature show all
Defined in:
lib/gst/type-find-factory.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.listGLib::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

Returns:

Instance Method Details

#call_function(find) ⇒ nil

Calls the Gst::TypeFindFunction associated with this factory.

Parameters:

  • find (Gst::TypeFind)

    a properly setup Gst::TypeFind entry. The get_data and suggest_type members must be set.

Returns:

  • (nil)

#capsGst::Caps

Gets the Gst::Caps associated with a typefind factory.

Returns:

  • (Gst::Caps)

    the Gst::Caps associated with this factory

#extensionsArray<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.

Returns:

  • (Array<String>)

    an array of extensions associated with this factory



20
21
22
# File 'lib/gst/type-find-factory.rb', line 20

def extensions
  extensions_raw || []
end

#extensions_rawArray<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.

Returns:

  • (Array<String>)

    an array of extensions associated with this factory



# File 'lib/gst/type-find-factory.rb', line 19

#has_functionBoolean

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.

Returns:

  • (Boolean)

    true if the factory has a typefind functions set, otherwise false