CapsFeatures
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gst_caps_features_get_type ()" ) ]
[ Compact ]
[ Version ( since = "1.2" ) ]
public class CapsFeatures
CapsFeatures can optionally be set on a Caps to add requirements for
additional features for a specific Structure.
Caps structures with the same name but with a non-equal set of caps features are not compatible. If a pad supports multiple sets of
features it has to add multiple equal structures with different feature sets to the caps.
Empty CapsFeatures are equivalent with the CapsFeatures that only contain
CAPS_FEATURE_MEMORY_SYSTEM_MEMORY. ANY
CapsFeatures as created by CapsFeatures.any are
equal to any other CapsFeatures and can be used to specify that any CapsFeatures
would be supported, e.g. for elements that don't touch buffer memory. Caps with ANY
CapsFeatures are considered non-fixed and during negotiation some CapsFeatures have
to be selected.
Examples for caps features would be the requirement of a specific Memory types or the
requirement of having a specific Meta on the buffer. Features are given as a string of the
format `memory:GstMemoryTypeName` or `meta:GstMetaAPIName`.
Content:
Static methods:
Creation methods:
Methods:
- public void add (string feature)
Adds feature to this.
- public void add_id (Quark feature)
Adds feature to this.
- public bool contains (string feature)
Checks if this contains
feature.
- public bool contains_id (Quark feature)
Checks if this contains
feature.
- public CapsFeatures copy ()
Duplicates a CapsFeatures and all its
values.
- public void free ()
Frees a CapsFeatures and all its values.
- public unowned string? get_nth (uint i)
Returns the i-th feature of
this.
- public Quark get_nth_id (uint i)
Returns the i-th feature of
this.
- public uint get_size ()
Returns the number of features in this
.
- public bool is_any ()
Checks if this is
gst_caps_features_any.
- public bool is_equal (CapsFeatures features2)
Checks if this and features2
are equal.
- public void remove (string feature)
Removes feature from this
.
- public void remove_id (Quark feature)
Removes feature from this
.
- public bool set_parent_refcount (int refcount)
Sets the parent_refcount field of CapsFeatures
.
- public string to_string ()
Converts this to a human-readable
string representation.