Package org.freedesktop.gstreamer.gst
Class StaticCaps
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 TypeMethodDescriptionvoid
cleanup()
Cleans up the cached caps contained in this StaticCaps.get()
Converts aGstStaticCaps
to aGstCaps
.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the StaticCaps classreadCaps()
Read the value of the fieldcaps
.Read the value of the fieldstring
.void
Write a value in the fieldcaps
.void
writeString
(String string, Arena _arena) Write a value in the fieldstring
.Methods inherited from class io.github.jwharm.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 fieldcaps
string
- 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 in this StaticCaps. -
get
Converts aGstStaticCaps
to 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.
-