gst.caps_features

Module for [CapsFeatures] class

Types 1

#GstCapsFeatures can optionally be set on a #GstCaps to add requirements for additional features for a specific #GstStructure. 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 #GstCapsFeatures are equivalent with the #GstCapsFeatures that only contain #GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY. ANY #GstCapsFeatures as created by gst.caps_features.CapsFeatures.newAny are equal to any other #GstCapsFeatures and can be used to specify that any #GstCapsFeatures would be supported, e.g. for elements that don't touch buffer memory. #GstCaps with ANY #GstCapsFeatures are considered non-fixed and during negotiation some #GstCapsFeatures have to be selected.

Examples for caps features would be the requirement of a specific #GstMemory types or the requirement of having a specific #GstMeta on the buffer. Features are given as a string of the format memory:GstMemoryTypeName or meta:GstMetaAPIName.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
CapsFeatures self() nothrowReturns `this`, for use in `with` statements.
gst.caps_features.CapsFeatures newAny() static nothrowCreates a new, ANY #GstCapsFeatures. This will be equal to any other #GstCapsFeatures but caps with these are unfixed. Returns: a new, ANY #GstCapsFeatures
gst.caps_features.CapsFeatures newEmpty() static nothrowCreates a new, empty #GstCapsFeatures. Returns: a new, empty #GstCapsFeatures
gst.caps_features.CapsFeatures newSingle(string feature) static nothrowCreates a new #GstCapsFeatures with a single feature.
void add(string feature) nothrowAdds feature to features.
void addId(glib.types.Quark feature) nothrowAdds feature to features.
bool contains(string feature) nothrowChecks if features contains feature.
bool containsId(glib.types.Quark feature) nothrowChecks if features contains feature.
gst.caps_features.CapsFeatures copy() nothrowDuplicates a #GstCapsFeatures and all its values. Returns: a new #GstCapsFeatures.
string getNth(uint i) nothrowReturns the `i`-th feature of features.
glib.types.Quark getNthId(uint i) nothrowReturns the `i`-th feature of features.
uint getSize() nothrowReturns the number of features in features. Returns: The number of features in features.
bool isAny() nothrowChecks if features is `GST_CAPS_FEATURES_ANY`. Returns: true if features is `GST_CAPS_FEATURES_ANY`.
bool isEqual(gst.caps_features.CapsFeatures features2) nothrowChecks if features1 and features2 are equal.
void remove(string feature) nothrowRemoves feature from features.
void removeId(glib.types.Quark feature) nothrowRemoves feature from features.
string toString_() nothrowConverts features to a human-readable string representation.
gst.caps_features.CapsFeatures fromString(string features) static nothrowCreates a #GstCapsFeatures from a string representation.
Constructors
this(void * ptr, Flag!"Take" take)