Package org.freedesktop.gstreamer.video
Class VideoCropMeta
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCropMeta
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new VideoCropMeta.VideoCropMeta(Arena arena) Allocate a new VideoCropMeta.VideoCropMeta(MemorySegment address) Create a VideoCropMeta proxy instance for the provided memory address.VideoCropMeta(Meta meta, int x, int y, int width, int height) Allocate a new VideoCropMeta with the fields set to the provided values.VideoCropMeta(Meta meta, int x, int y, int width, int height, Arena arena) Allocate a new VideoCropMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.intRead the value of the fieldheight.@Nullable MetareadMeta()Read the value of the fieldmeta.intRead the value of the fieldwidth.intreadX()Read the value of the fieldx.intreadY()Read the value of the fieldy.voidwriteHeight(int height) Write a value in the fieldheight.voidWrite a value in the fieldmeta.voidwriteWidth(int width) Write a value in the fieldwidth.voidwriteX(int x) Write a value in the fieldx.voidwriteY(int y) Write a value in the fieldy.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoCropMeta
Create a VideoCropMeta proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
VideoCropMeta
Allocate a new VideoCropMeta.- Parameters:
arena- to control the memory allocation scope
-
VideoCropMeta
public VideoCropMeta()Allocate a new VideoCropMeta. The memory is allocated withArena.ofAuto(). -
VideoCropMeta
Allocate a new VideoCropMeta with the fields set to the provided values.- Parameters:
meta- value for the fieldmetax- value for the fieldxy- value for the fieldywidth- value for the fieldwidthheight- value for the fieldheightarena- to control the memory allocation scope
-
VideoCropMeta
Allocate a new VideoCropMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
meta- value for the fieldmetax- value for the fieldxy- value for the fieldywidth- value for the fieldwidthheight- value for the fieldheight
-
-
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
-
readX
public int readX()Read the value of the fieldx.- Returns:
- The value of the field
x
-
writeX
public void writeX(int x) Write a value in the fieldx.- Parameters:
x- The new value for the fieldx
-
readY
public int readY()Read the value of the fieldy.- Returns:
- The value of the field
y
-
writeY
public void writeY(int y) Write a value in the fieldy.- Parameters:
y- The new value for the fieldy
-
readWidth
public int readWidth()Read the value of the fieldwidth.- Returns:
- The value of the field
width
-
writeWidth
public void writeWidth(int width) Write a value in the fieldwidth.- Parameters:
width- The new value for the fieldwidth
-
readHeight
public int readHeight()Read the value of the fieldheight.- Returns:
- The value of the field
height
-
writeHeight
public void writeHeight(int height) Write a value in the fieldheight.- Parameters:
height- The new value for the fieldheight
-
getInfo
-