Package ch.bailu.gtk.gst
Klasse CapsFeatures
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.CapsFeatures
- Alle implementierten Schnittstellen:
PointerInterface
#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_new_any() 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`.
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_new_any() 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`.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCapsFeatures
(PointerContainer pointer) CapsFeatures
(Str feature1, Object... _ellipsis) Creates a new #GstCapsFeatures with the given features.CapsFeatures
(String feature1, Object... _ellipsis) Creates a new #GstCapsFeatures with the given features. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Adds @feature to @features.void
Adds @feature to @features.void
addId
(int feature) Veraltet.void
Adds @feature to @features.void
addStaticStr
(Str feature) Adds @feature to @features.void
addStaticStr
(String feature) Adds @feature to @features.boolean
Checks if @features contains @feature.boolean
Checks if @features contains @feature.boolean
containsId
(int feature) Veraltet.boolean
containsIdStr
(IdStr feature) Checks if @features contains @feature.copy()
Duplicates a #GstCapsFeatures and all its values.void
free()
Frees a #GstCapsFeatures and all its values.static CapsFeatures
fromString
(Str features) Creates a #GstCapsFeatures from a string representation.static ClassHandler
static int
getNth
(int i) Returns the @i-th feature of @features.int
getNthId
(int i) Veraltet.getNthIdStr
(int i) Returns the @i-th feature of @features.static long
static TypeSystem.TypeSize
int
getSize()
Returns the number of features in @features.static long
static TypeSystem.TypeSize
boolean
isAny()
Checks if @features is %GST_CAPS_FEATURES_ANY.boolean
isEqual
(CapsFeatures features2) Checks if @features1 and @features2 are equal.static CapsFeatures
Creates a new, ANY #GstCapsFeatures.static CapsFeatures
Creates a new, empty #GstCapsFeatures.static CapsFeatures
newIdCapsFeatures
(int feature1, Object... _ellipsis) Veraltet.static CapsFeatures
newIdStrCapsFeatures
(IdStr feature1, Object... _ellipsis) Creates a new #GstCapsFeatures with the given features.static CapsFeatures
newSingleCapsFeatures
(Str feature) Creates a new #GstCapsFeatures with a single feature.static CapsFeatures
newSingleCapsFeatures
(String feature) Creates a new #GstCapsFeatures with a single feature.static CapsFeatures
newSingleStaticStrCapsFeatures
(Str feature) Creates a new #GstCapsFeatures with a single feature.static CapsFeatures
newSingleStaticStrCapsFeatures
(String feature) Creates a new #GstCapsFeatures with a single feature.static CapsFeatures
newStaticStrCapsFeatures
(Str feature1, Object... _ellipsis) Creates a new #GstCapsFeatures with the given features.static CapsFeatures
newStaticStrCapsFeatures
(String feature1, Object... _ellipsis) Creates a new #GstCapsFeatures with the given features.void
Removes @feature from @features.void
Removes @feature from @features.void
removeId
(int feature) Veraltet.void
removeIdStr
(IdStr feature) Removes @feature from @features.boolean
setParentRefcount
(Int refcount) Sets the parent_refcount field of #GstCapsFeatures.toStr()
Converts @features to a human-readable string representation.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
CapsFeatures
-
CapsFeatures
Creates a new #GstCapsFeatures with the given features.
The last argument must be %NULL.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features
-
CapsFeatures
Creates a new #GstCapsFeatures with the given features.
The last argument must be %NULL.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features
-
-
Methodendetails
-
getClassHandler
-
newAnyCapsFeatures
Creates a new, ANY #GstCapsFeatures. This will be equal
to any other #GstCapsFeatures but caps with these are
unfixed.- Gibt zurück:
- a new, ANY #GstCapsFeatures
-
newEmptyCapsFeatures
Creates a new, empty #GstCapsFeatures.- Gibt zurück:
- a new, empty #GstCapsFeatures
-
newIdCapsFeatures
Veraltet.Creates a new #GstCapsFeatures with the given features.
The last argument must be 0.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features- Gibt zurück:
- a new, empty #GstCapsFeatures
-
newIdStrCapsFeatures
Creates a new #GstCapsFeatures with the given features.
The last argument must be 0.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features- Gibt zurück:
- a new, empty #GstCapsFeatures
-
newSingleCapsFeatures
Creates a new #GstCapsFeatures with a single feature.- Parameter:
feature
- The feature- Gibt zurück:
- a new #GstCapsFeatures
-
newSingleCapsFeatures
Creates a new #GstCapsFeatures with a single feature.- Parameter:
feature
- The feature- Gibt zurück:
- a new #GstCapsFeatures
-
newSingleStaticStrCapsFeatures
Creates a new #GstCapsFeatures with a single feature.
@feature needs to be valid for the remaining lifetime of the process, e.g. has
to be a static string.- Parameter:
feature
- The feature- Gibt zurück:
- a new #GstCapsFeatures
-
newSingleStaticStrCapsFeatures
Creates a new #GstCapsFeatures with a single feature.
@feature needs to be valid for the remaining lifetime of the process, e.g. has
to be a static string.- Parameter:
feature
- The feature- Gibt zurück:
- a new #GstCapsFeatures
-
newStaticStrCapsFeatures
Creates a new #GstCapsFeatures with the given features.
The last argument must be %NULL.
@feature1 and all other features need to be valid for the remaining lifetime
of the process, e.g. have to be a static string.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features- Gibt zurück:
- a new, empty #GstCapsFeatures
-
newStaticStrCapsFeatures
Creates a new #GstCapsFeatures with the given features.
The last argument must be %NULL.
@feature1 and all other features need to be valid for the remaining lifetime
of the process, e.g. have to be a static string.- Parameter:
feature1
- name of first feature to set_ellipsis
- additional features- Gibt zurück:
- a new, empty #GstCapsFeatures
-
add
Adds @feature to @features.- Parameter:
feature
- a feature.
-
add
Adds @feature to @features.- Parameter:
feature
- a feature.
-
addId
Veraltet.Adds @feature to @features.- Parameter:
feature
- a feature.
-
addIdStr
Adds @feature to @features.- Parameter:
feature
- a feature.
-
addStaticStr
Adds @feature to @features.
@feature needs to be valid for the remaining lifetime of the process, e.g. has
to be a static string.- Parameter:
feature
- a feature.
-
addStaticStr
Adds @feature to @features.
@feature needs to be valid for the remaining lifetime of the process, e.g. has
to be a static string.- Parameter:
feature
- a feature.
-
contains
Checks if @features contains @feature.- Parameter:
feature
- a feature- Gibt zurück:
- %TRUE if @features contains @feature.
-
contains
Checks if @features contains @feature.- Parameter:
feature
- a feature- Gibt zurück:
- %TRUE if @features contains @feature.
-
containsId
Veraltet.Checks if @features contains @feature.- Parameter:
feature
- a feature- Gibt zurück:
- %TRUE if @features contains @feature.
-
containsIdStr
Checks if @features contains @feature.- Parameter:
feature
- a feature- Gibt zurück:
- %TRUE if @features contains @feature.
-
copy
Duplicates a #GstCapsFeatures and all its values.- Gibt zurück:
- a new #GstCapsFeatures.
-
free
public void free()Frees a #GstCapsFeatures and all its values. The caps features must not
have a parent when this function is called. -
getNth
Returns the @i-th feature of @features.- Parameter:
i
- index of the feature- Gibt zurück:
- The @i-th feature of @features.
-
getNthId
Veraltet.Returns the @i-th feature of @features.- Parameter:
i
- index of the feature- Gibt zurück:
- The @i-th feature of @features.
-
getNthIdStr
Returns the @i-th feature of @features.- Parameter:
i
- index of the feature- Gibt zurück:
- The @i-th feature of @features.
-
getSize
public int getSize()Returns the number of features in @features.- Gibt zurück:
- The number of features in @features.
-
isAny
public boolean isAny()Checks if @features is %GST_CAPS_FEATURES_ANY.- Gibt zurück:
- %TRUE if @features is %GST_CAPS_FEATURES_ANY.
-
isEqual
Checks if @features1 and @features2 are equal.- Parameter:
features2
- a #GstCapsFeatures.- Gibt zurück:
- %TRUE if @features1 and @features2 are equal.
-
remove
Removes @feature from @features.- Parameter:
feature
- a feature.
-
remove
Removes @feature from @features.- Parameter:
feature
- a feature.
-
removeId
Veraltet.Removes @feature from @features.- Parameter:
feature
- a feature.
-
removeIdStr
Removes @feature from @features.- Parameter:
feature
- a feature.
-
setParentRefcount
Sets the parent_refcount field of #GstCapsFeatures. This field is used to
determine whether a caps features is mutable or not. This function should only be
called by code implementing parent objects of #GstCapsFeatures, as described in
[the MT refcounting design document](additional/design/MT-refcounting.md).- Parameter:
refcount
- a pointer to the parent's refcount- Gibt zurück:
- %TRUE if the parent refcount could be set.
-
toStr
Converts @features to a human-readable string representation.
For debugging purposes its easier to do something like this:
``` C
GST_LOG ("features is %" GST_PTR_FORMAT, features);
```
This prints the features in human readable form.- Gibt zurück:
- a pointer to string allocated by g_malloc().
-
fromString
Creates a #GstCapsFeatures from a string representation.- Parameter:
features
- a string representation of a #GstCapsFeatures.- Gibt zurück:
- a new #GstCapsFeatures or %NULL when the string could not be parsed.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-