TypeFindFactory

Description These functions allow querying informations about registered typefind functions. How to create and register these functions is described in the section "Writing typefind functions". The above example shows how to write a very simple typefinder that identifies the given data. You can get quite a bit more complicated than that though. Last reviewed on 2005-11-09 (0.9.4)

Constructors

this
this(GstTypeFindFactory* gstTypeFindFactory)

Sets our main struct and passes it to the parent class

Members

Functions

callFunction
void callFunction(TypeFind find)

Calls the GstTypeFindFunction associated with this factory.

getCaps
Caps getCaps()

Gets the GstCaps associated with a typefind factory.

getExtensions
string[] getExtensions()

Gets the extensions associated with a GstTypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using g_stdupv(). This function may return NULL to indicate a 0-length list.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTypeFindFactoryStruct
GstTypeFindFactory* getTypeFindFactoryStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getList
ListG getList()

Gets the list of all registered typefind factories. You must free the list using gst_plugin_feature_list_free.

Variables

gstTypeFindFactory
GstTypeFindFactory* gstTypeFindFactory;

the main Gtk struct

Inherited Members

From PluginFeature

gstPluginFeature
GstPluginFeature* gstPluginFeature;

the main Gtk struct

getPluginFeatureStruct
GstPluginFeature* getPluginFeatureStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
typeNameFilter
int typeNameFilter(GstTypeNameData* data)

Compares type and name of plugin feature. Can be used with gst_filter_run().

setRank
void setRank(uint rank)

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

setFeatureName
void setFeatureName(string name)

Sets the name of a plugin feature. The name uniquely identifies a feature within all features of the same type. Renaming a plugin feature is not allowed. A copy is made of the name so you should free the supplied name after calling this function.

getRank
uint getRank()

Gets the rank of a plugin feature.

getName
string getName()

Gets the name 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.

listFree
void listFree(ListG list)

Unrefs each member of list, then frees the list.

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

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

Meta