Package org.freedesktop.gstreamer.gst
Class AllocationParams
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.AllocationParams
-
Constructor Summary
ConstructorDescriptionCreate a newGstAllocationParams
on the heap.AllocationParams
(MemorySegment address) Create a AllocationParams proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of this AllocationParams.void
free()
Free this AllocationParamsstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the AllocationParams classvoid
init()
Initialize this AllocationParams to its default valueslong
Read the value of the fieldalign
.Read the value of the fieldflags
.long
Read the value of the fieldprefix
.void
writeAlign
(long align) Write a value in the fieldalign
.void
writeFlags
(Set<MemoryFlags> flags) Write a value in the fieldflags
.void
writePrefix
(long prefix) Write a value in the fieldprefix
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AllocationParams
Create a AllocationParams proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AllocationParams
public AllocationParams()Create a newGstAllocationParams
on the heap. This function is for use in GStreamer language bindings. In your own code, you can just declare aGstAllocationParams
on the stack or in a struct, and call gst_allocation_params_init() to initialize it.You do not need to call gst_allocation_params_init() on the instance returned by this function.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readFlags
Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-
readAlign
public long readAlign()Read the value of the fieldalign
.- Returns:
- The value of the field
align
-
writeAlign
public void writeAlign(long align) Write a value in the fieldalign
.- Parameters:
align
- The new value for the fieldalign
-
readPrefix
public long readPrefix()Read the value of the fieldprefix
.- Returns:
- The value of the field
prefix
-
writePrefix
public void writePrefix(long prefix) Write a value in the fieldprefix
.- Parameters:
prefix
- The new value for the fieldprefix
-
copy
Create a copy of this AllocationParams.- Returns:
- a new
GstAllocationParams
.
-
free
public void free()Free this AllocationParams -
init
public void init()Initialize this AllocationParams to its default values
-