Package org.freedesktop.gstreamer.gst
Class MetaTransformCopy
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.MetaTransformCopy
- All Implemented Interfaces:
Proxy
Extra data passed to a "gst-copy" transform
GstMetaTransformFunction
.-
Constructor Summary
ConstructorDescriptionAllocate a new MetaTransformCopy.MetaTransformCopy
(boolean region, long offset, long size) Allocate a new MetaTransformCopy with the fields set to the provided values.MetaTransformCopy
(boolean region, long offset, long size, Arena arena) Allocate a new MetaTransformCopy with the fields set to the provided values.MetaTransformCopy
(Arena arena) Allocate a new MetaTransformCopy.MetaTransformCopy
(MemorySegment address) Create a MetaTransformCopy proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.long
Read the value of the fieldoffset
.boolean
Read the value of the fieldregion
.long
readSize()
Read the value of the fieldsize
.void
writeOffset
(long offset) Write a value in the fieldoffset
.void
writeRegion
(boolean region) Write a value in the fieldregion
.void
writeSize
(long size) Write a value in the fieldsize
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
MetaTransformCopy
Create a MetaTransformCopy proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
MetaTransformCopy
Allocate a new MetaTransformCopy.- Parameters:
arena
- to control the memory allocation scope
-
MetaTransformCopy
public MetaTransformCopy()Allocate a new MetaTransformCopy. The memory is allocated withArena.ofAuto()
. -
MetaTransformCopy
Allocate a new MetaTransformCopy with the fields set to the provided values.- Parameters:
region
- value for the fieldregion
offset
- value for the fieldoffset
size
- value for the fieldsize
arena
- to control the memory allocation scope
-
MetaTransformCopy
public MetaTransformCopy(boolean region, long offset, long size) Allocate a new MetaTransformCopy with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
region
- value for the fieldregion
offset
- value for the fieldoffset
size
- value for the fieldsize
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRegion
public boolean readRegion()Read the value of the fieldregion
.- Returns:
- The value of the field
region
-
writeRegion
public void writeRegion(boolean region) Write a value in the fieldregion
.- Parameters:
region
- The new value for the fieldregion
-
readOffset
public long readOffset()Read the value of the fieldoffset
.- Returns:
- The value of the field
offset
-
writeOffset
public void writeOffset(long offset) Write a value in the fieldoffset
.- Parameters:
offset
- The new value for the fieldoffset
-
readSize
public long readSize()Read the value of the fieldsize
.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(long size) Write a value in the fieldsize
.- Parameters:
size
- The new value for the fieldsize
-