DynamicTypeFactory

gstreamer.DynamicTypeFactory is used to represent a type that can be automatically loaded the first time it is used. For example, a non-standard type for use in caps fields.

In general, applications and plugins don't need to use the factory beyond registering the type in a plugin init function. Once that is done, the type is stored in the registry, and ready as soon as the registry is loaded.

Registering a type for dynamic loading

1 
2 
3 static gboolean
4 plugin_init (GstPlugin * plugin)
5 {
6 return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD);
7 }

Constructors

this
this(GstDynamicTypeFactory* gstDynamicTypeFactory, bool ownedRef = false)

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

Members

Functions

getDynamicTypeFactoryStruct
GstDynamicTypeFactory* getDynamicTypeFactoryStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()
load
GType load(string factoryname)

Variables

gstDynamicTypeFactory
GstDynamicTypeFactory* gstDynamicTypeFactory;

the main Gtk struct

Inherited Members

From PluginFeature

gstPluginFeature
GstPluginFeature* gstPluginFeature;

the main Gtk struct

getPluginFeatureStruct
GstPluginFeature* getPluginFeatureStruct(bool transferOwnership = false)

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