Package org.freedesktop.gstreamer.video
Class VideoAffineTransformationMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoAffineTransformationMeta
- All Implemented Interfaces:
Proxy
@Generated("io.github.jwharm.JavaGI")
public class VideoAffineTransformationMeta
extends ProxyInstance
Extra buffer metadata for performing an affine transformation using a 4x4
matrix. The transformation matrix can be composed with
gst_video_affine_transformation_meta_apply_matrix().
The vertices operated on are all in the range 0 to 1, not in Normalized Device Coordinates (-1 to +1). Transforming points in this space are assumed to have an origin at (0.5, 0.5, 0.5) in a left-handed coordinate system with the x-axis moving horizontally (positive values to the right), the y-axis moving vertically (positive values up the screen) and the z-axis perpendicular to the screen (positive values into the screen).
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoAffineTransformationMeta.Allocate a new VideoAffineTransformationMeta.Create a VideoAffineTransformationMeta proxy instance for the provided memory address.VideoAffineTransformationMeta
(Meta meta, float[] matrix) Allocate a new VideoAffineTransformationMeta with the fields set to the provided values.VideoAffineTransformationMeta
(Meta meta, float[] matrix, Arena arena) Allocate a new VideoAffineTransformationMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyMatrix
(float[] matrix) Apply a transformation using the given 4x4 transformation matrix.static MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.float[]
Read the value of the fieldmatrix
.readMeta()
Read the value of the fieldmeta
.void
writeMatrix
(float[] matrix, Arena _arena) Write a value in the fieldmatrix
.void
Write a value in the fieldmeta
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoAffineTransformationMeta
Create a VideoAffineTransformationMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoAffineTransformationMeta
Allocate a new VideoAffineTransformationMeta.- Parameters:
arena
- to control the memory allocation scope
-
VideoAffineTransformationMeta
public VideoAffineTransformationMeta()Allocate a new VideoAffineTransformationMeta. The memory is allocated withArena.ofAuto()
. -
VideoAffineTransformationMeta
-
VideoAffineTransformationMeta
Allocate a new VideoAffineTransformationMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
matrix
- value for the fieldmatrix
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
-
writeMeta
Write a value in the fieldmeta
.- Parameters:
meta
- The new value for the fieldmeta
-
readMatrix
public float[] readMatrix()Read the value of the fieldmatrix
.- Returns:
- The value of the field
matrix
-
writeMatrix
Write a value in the fieldmatrix
.- Parameters:
matrix
- The new value for the fieldmatrix
_arena
- to control the memory allocation scope
-
getInfo
-
applyMatrix
public void applyMatrix(float[] matrix) Apply a transformation using the given 4x4 transformation matrix. Performs the multiplication, meta->matrix X matrix.- Parameters:
matrix
- a 4x4 transformation matrix to be applied
-