Package org.freedesktop.gstreamer.video
Class VideoAffineTransformationMeta
java.lang.Object
org.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).
- Since:
- 1.8
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 TypeMethodDescriptionvoidapplyMatrix(@org.jspecify.annotations.Nullable float @Nullable [] matrix) Apply a transformation using the given 4x4 transformation matrix.static MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.@org.jspecify.annotations.Nullable float @Nullable []Read the value of the fieldmatrix.@Nullable MetareadMeta()Read the value of the fieldmeta.voidwriteMatrix(@org.jspecify.annotations.Nullable float @Nullable [] matrix, Arena _arena) Write a value in the fieldmatrix.voidWrite a value in the fieldmeta.Methods inherited from class org.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 fieldmetamatrix- value for the fieldmatrix
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
Read the value of the fieldmeta.- Returns:
- The value of the field
meta
-
writeMeta
Write a value in the fieldmeta.- Parameters:
meta- The new value for the fieldmeta
-
readMatrix
public @org.jspecify.annotations.Nullable float @Nullable [] 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
-
getInfo
-
applyMatrix
public void applyMatrix(@org.jspecify.annotations.Nullable float @Nullable [] 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- Throws:
IllegalArgumentException- when length ofmatrixis less than 16- Since:
- 1.8
-