Top |
Functions
Object Hierarchy
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstPluginFeature ╰── GstDeviceProviderFactory
Description
GstDeviceProviderFactory is used to create instances of device providers. A GstDeviceProviderfactory can be added to a GstPlugin as it is also a GstPluginFeature.
Use the gst_device_provider_factory_find()
and
gst_device_provider_factory_get()
functions to create device
provider instances or use gst_device_provider_factory_get_by_name()
as a
convenient shortcut.
Functions
gst_device_provider_factory_find ()
GstDeviceProviderFactory *
gst_device_provider_factory_find (const gchar *name
);
Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing.
Since: 1.4
gst_device_provider_factory_get ()
GstDeviceProvider *
gst_device_provider_factory_get (GstDeviceProviderFactory *factory
);
Returns the device provider of the type defined by the given device providerfactory.
Returns
the GstDeviceProvider or NULL
if the device provider couldn't be created.
[transfer full][nullable]
Since: 1.4
gst_device_provider_factory_get_by_name ()
GstDeviceProvider *
gst_device_provider_factory_get_by_name
(const gchar *factoryname
);
Returns the device provider of the type defined by the given device provider factory.
Since: 1.4
gst_device_provider_factory_get_device_provider_type ()
GType
gst_device_provider_factory_get_device_provider_type
(GstDeviceProviderFactory *factory
);
Get the GType for device providers managed by this factory. The type can
only be retrieved if the device provider factory is loaded, which can be
assured with gst_plugin_feature_load()
.
Since: 1.4
gst_device_provider_factory_get_metadata ()
const gchar * gst_device_provider_factory_get_metadata (GstDeviceProviderFactory *factory
,const gchar *key
);
Get the metadata on factory
with key
.
Returns
the metadata with key
on factory
or NULL
when there was no metadata with the given key
.
[nullable]
Since: 1.4
gst_device_provider_factory_get_metadata_keys ()
gchar **
gst_device_provider_factory_get_metadata_keys
(GstDeviceProviderFactory *factory
);
Get the available keys for the metadata on factory
.
Returns
a NULL
-terminated array of key strings, or NULL
when there is no
metadata. Free with g_strfreev()
when no longer needed.
[transfer full][element-type utf8][array zero-terminated=1][nullable]
Since: 1.4
gst_device_provider_factory_has_classes ()
gboolean gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory
,const gchar *classes
);
Check if factory
matches all of the given classes
Parameters
factory |
||
classes |
a "/" separate list of classes to match, only match if all classes are matched. |
[allow-none] |
Since: 1.4
gst_device_provider_factory_has_classesv ()
gboolean gst_device_provider_factory_has_classesv (GstDeviceProviderFactory *factory
,gchar **classes
);
Check if factory
matches all of the given classes
Parameters
factory |
||
classes |
a |
[array zero-terminated=1][allow-none] |
Since: 1.4
gst_device_provider_factory_list_get_device_providers ()
GList *
gst_device_provider_factory_list_get_device_providers
(GstRank minrank
);
Get a list of factories with a rank greater or equal to minrank
.
The list of factories is returned by decreasing rank.
Returns
a GList of GstDeviceProviderFactory device providers. Use
gst_plugin_feature_list_free()
after usage.
[transfer full][element-type Gst.DeviceProviderFactory]
Since: 1.4
Types and Values
GstDeviceProviderFactory
typedef struct _GstDeviceProviderFactory GstDeviceProviderFactory;
The opaque GstDeviceProviderFactory data structure.
Since: 1.4
GstDeviceProviderFactoryClass
typedef struct _GstDeviceProviderFactoryClass GstDeviceProviderFactoryClass;
The opaque GstDeviceProviderFactoryClass data structure.
Since: 1.4