Preset
Object Hierarchy:
Description:
This interface offers methods to query and manipulate parameter preset sets. A preset is a bunch of property settings, together with meta
data and a name. The name of a preset serves as key for subsequent method calls to manipulate single presets. All instances of one type
will share the list of presets. The list is created on demand, if presets are not used, the list is not created. The interface comes with
a default implementation that serves most plugins. Wrapper plugins will override most methods to implement support for the native preset
format of those wrapped plugins. One method that is useful to be overridden is
get_property_names. With that one can control which properties
are saved and in which order.
Namespace: Gst
Package: gstreamer-0.10
Content:
Methods:
-
public abstract bool delete_preset (string name)
Delete the given preset.
-
public abstract bool get_meta (string name, string tag, out string value)
Gets the value for an existing meta data tag. Meta data tag names
can be something like e.g. "comment". Returned values need to be released when done. or no value for the given tag
-
public abstract string[] get_preset_names ()
Get a copy of preset names as a NULL terminated string array. list with names, ue g_strfreev
after usage.
-
public abstract string[] get_property_names ()
Get a the names of the GObject properties that can be used for presets. array of property names which
should be freed with g_strfreev after use.
-
public abstract bool load_preset (string name)
Load the given preset.
-
public abstract bool rename_preset (string old_name, string new_name)
Renames a preset. If there is already a preset by the new_name it will be overwritten.
-
public abstract bool save_preset (string name)
Save the current object settings as a preset under the given name. If there is already a preset by this
name it will be overwritten.
-
public abstract bool set_meta (string name, string tag, string value)
Sets a new value for an existing meta data item or adds a new item. Meta data tag
names can be something like e.g. "comment". Supplying null for the