DeviceProviderFactory

gstreamer.DeviceProviderFactory is used to create instances of device providers. A GstDeviceProviderfactory can be added to a gstreamer.Plugin as it is also a gstreamer.PluginFeature

Use the Device.providerFactoryFind and Device.providerFactoryGet functions to create device provider instances or use Device.providerFactoryGetByName as a convenient shortcut.

Constructors

this
this(GstDeviceProviderFactory* gstDeviceProviderFactory, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

get
DeviceProvider get()

Returns the device provider of the type defined by the given device providerfactory.

getDeviceProviderFactoryStruct
GstDeviceProviderFactory* getDeviceProviderFactoryStruct(bool transferOwnership)

Get the main Gtk struct

getDeviceProviderType
GType getDeviceProviderType()

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 Plugin.featureLoad.

getMetadata
string getMetadata(string key)

Get the metadata on factory with key.

getMetadataKeys
string[] getMetadataKeys()

Get the available keys for the metadata on factory.

getStruct
void* getStruct()

the main Gtk struct as a void*

hasClasses
bool hasClasses(string classes)

Check if factory matches all of the given classes

hasClassesv
bool hasClassesv(string[] classes)

Check if factory matches all of the given classes

Static functions

find
DeviceProviderFactory find(string name)

Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing.

getByName
DeviceProvider getByName(string factoryname)

Returns the device provider of the type defined by the given device provider factory.

getType
GType getType()
listGetDeviceProviders
ListG listGetDeviceProviders(GstRank minrank)

Get a list of factories with a rank greater or equal to minrank. The list of factories is returned by decreasing rank.

Variables

gstDeviceProviderFactory
GstDeviceProviderFactory* gstDeviceProviderFactory;

the main Gtk struct

Inherited Members

From PluginFeature

gstPluginFeature
GstPluginFeature* gstPluginFeature;

the main Gtk struct

getPluginFeatureStruct
GstPluginFeature* getPluginFeatureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
listCopy
ListG listCopy(ListG list)

Copies the list of features. Caller should call gst_plugin_feature_list_free when done with the list.

listDebug
void listDebug(ListG list)

Debug the plugin feature names in list.

listFree
void listFree(ListG list)

Unrefs each member of list, then frees the list.

rankCompareFunc
int rankCompareFunc(void* p1, void* p2)

Compares the two given gstreamer.PluginFeature instances. This function can be used as a GCompareFunc when sorting by rank and then by name.

checkVersion
bool checkVersion(uint minMajor, uint minMinor, uint minMicro)

Checks whether the given plugin feature is at least the required version

getPlugin
Plugin getPlugin()

Get the plugin that provides this feature.

getPluginName
string getPluginName()

Get the name of the plugin that provides this feature.

getRank
uint getRank()

Gets the rank of a plugin feature.

load
PluginFeature load()

Loads the plugin containing feature if it's not already loaded. feature is unaffected; use the return value instead.

setRank
void setRank(uint rank)

Specifies a rank for a plugin feature, so that autoplugging uses the most appropriate feature.

Meta