Package org.freedesktop.gstreamer.gst
Class MetaTransformCopy
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.MetaTransformCopy
- All Implemented Interfaces:
Proxy
Extra data passed to a "gst-copy" transform
GstMetaTransformFunction.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.longRead the value of the fieldoffset.booleanRead the value of the fieldregion.longreadSize()Read the value of the fieldsize.voidwriteOffset(long offset) Write a value in the fieldoffset.voidwriteRegion(boolean region) Write a value in the fieldregion.voidwriteSize(long size) Write a value in the fieldsize.Methods inherited from class org.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 fieldregionoffset- value for the fieldoffsetsize- value for the fieldsizearena- 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 fieldregionoffset- value for the fieldoffsetsize- 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
-