Package org.freedesktop.gstreamer.gst
Class StaticCaps
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.StaticCaps
- All Implemented Interfaces:
Proxy
Data structure to initialize
GstCaps from a string description usually
used in conjunction with GST_STATIC_CAPS() and gst_static_caps_get() to
instantiate a GstCaps.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new StaticCaps.StaticCaps(Arena arena) Allocate a new StaticCaps.StaticCaps(MemorySegment address) Create a StaticCaps proxy instance for the provided memory address.StaticCaps(Caps caps, String string) Allocate a new StaticCaps with the fields set to the provided values.StaticCaps(Caps caps, String string, Arena arena) Allocate a new StaticCaps with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleans up the cached caps contained instaticCaps.@Nullable Capsget()Converts aGstStaticCapsto aGstCaps.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the StaticCaps classreadCaps()Read the value of the fieldcaps.Read the value of the fieldstring.voidWrite a value in the fieldcaps.voidwriteString(String string, Arena _arena) Write a value in the fieldstring.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
StaticCaps
Create a StaticCaps proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
StaticCaps
Allocate a new StaticCaps.- Parameters:
arena- to control the memory allocation scope
-
StaticCaps
public StaticCaps()Allocate a new StaticCaps. The memory is allocated withArena.ofAuto(). -
StaticCaps
-
StaticCaps
Allocate a new StaticCaps with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
caps- value for the fieldcapsstring- value for the fieldstring
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readCaps
-
writeCaps
Write a value in the fieldcaps.- Parameters:
caps- The new value for the fieldcaps
-
readString
Read the value of the fieldstring.- Returns:
- The value of the field
string
-
writeString
-
cleanup
public void cleanup()Cleans up the cached caps contained instaticCaps. -
get
Converts aGstStaticCapsto aGstCaps.- Returns:
- a pointer to the
GstCaps. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.
-