Package org.freedesktop.gstreamer.video
Class VideoTileInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoTileInfo
- All Implemented Interfaces:
Proxy
Description of a tile. This structure allow to describe arbitrary tile
dimensions and sizes.
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoTileInfo.VideoTileInfo
(int width, int height, int stride, int size) Allocate a new VideoTileInfo with the fields set to the provided values.VideoTileInfo
(int width, int height, int stride, int size, Arena arena) Allocate a new VideoTileInfo with the fields set to the provided values.VideoTileInfo
(Arena arena) Allocate a new VideoTileInfo.VideoTileInfo
(MemorySegment address) Create a VideoTileInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldheight
.int
readSize()
Read the value of the fieldsize
.int
Read the value of the fieldstride
.int
Read the value of the fieldwidth
.void
writeHeight
(int height) Write a value in the fieldheight
.void
writeSize
(int size) Write a value in the fieldsize
.void
writeStride
(int stride) Write a value in the fieldstride
.void
writeWidth
(int width) Write a value in the fieldwidth
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoTileInfo
Create a VideoTileInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoTileInfo
Allocate a new VideoTileInfo.- Parameters:
arena
- to control the memory allocation scope
-
VideoTileInfo
public VideoTileInfo()Allocate a new VideoTileInfo. The memory is allocated withArena.ofAuto()
. -
VideoTileInfo
Allocate a new VideoTileInfo with the fields set to the provided values.- Parameters:
width
- value for the fieldwidth
height
- value for the fieldheight
stride
- value for the fieldstride
size
- value for the fieldsize
arena
- to control the memory allocation scope
-
VideoTileInfo
public VideoTileInfo(int width, int height, int stride, int size) Allocate a new VideoTileInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
width
- value for the fieldwidth
height
- value for the fieldheight
stride
- value for the fieldstride
size
- value for the fieldsize
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
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
-
readStride
public int readStride()Read the value of the fieldstride
.- Returns:
- The value of the field
stride
-
writeStride
public void writeStride(int stride) Write a value in the fieldstride
.- Parameters:
stride
- The new value for the fieldstride
-
readSize
public int readSize()Read the value of the fieldsize
.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(int size) Write a value in the fieldsize
.- Parameters:
size
- The new value for the fieldsize
-