ElementClass

GStreamer element class. Override the vmethods to implement the element functionality.

Constructors

this
this(GstElementClass* gstElementClass, bool ownedRef)

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

Members

Functions

addMetadata
void addMetadata(string key, string value)

Set key with value as metadata in klass.

addPadTemplate
void addPadTemplate(PadTemplate templ)

Adds a padtemplate to an element class. This is mainly used in the _class_init functions of classes. If a pad template with the same name as an already existing one is added the old one is replaced by the new one.

addStaticMetadata
void addStaticMetadata(string key, string value)

Set key with value as metadata in klass.

addStaticPadTemplate
void addStaticPadTemplate(StaticPadTemplate staticTempl)

Adds a pad template to an element class based on the static pad template templ. This is mainly used in the _class_init functions of element implementations. If a pad template with the same name already exists, the old one is replaced by the new one.

addStaticPadTemplateWithGtype
void addStaticPadTemplateWithGtype(StaticPadTemplate staticTempl, GType padType)

Adds a pad template to an element class based on the static pad template templ. This is mainly used in the _class_init functions of element implementations. If a pad template with the same name already exists, the old one is replaced by the new one.

getElementClassStruct
GstElementClass* getElementClassStruct(bool transferOwnership)

Get the main Gtk struct

getMetadata
string getMetadata(string key)

Get metadata with key in klass.

getPadTemplate
PadTemplate getPadTemplate(string name)

Retrieves a padtemplate from element_class with the given name. > If you use this function in the GInstanceInitFunc of an object class > that has subclasses, make sure to pass the g_class parameter of the > GInstanceInitFunc here.

getPadTemplateList
ListG getPadTemplateList()

Retrieves a list of the pad templates associated with element_class. The list must not be modified by the calling code. > If you use this function in the GInstanceInitFunc of an object class > that has subclasses, make sure to pass the g_class parameter of the > GInstanceInitFunc here.

getStruct
void* getStruct()

the main Gtk struct as a void*

setMetadata
void setMetadata(string longname, string classification, string description, string author)

Sets the detailed information for a gstreamer.ElementClass > This function is for use in _class_init functions only.

setStaticMetadata
void setStaticMetadata(string longname, string classification, string description, string author)

Sets the detailed information for a gstreamer.ElementClass

Variables

gstElementClass
GstElementClass* gstElementClass;

the main Gtk struct