Package org.freedesktop.gstreamer.video
Class VideoTileInfo
java.lang.Object
org.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.
- Since:
- 1.22
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.intRead the value of the fieldheight.intreadSize()Read the value of the fieldsize.intRead the value of the fieldstride.intRead the value of the fieldwidth.voidwriteHeight(int height) Write a value in the fieldheight.voidwriteSize(int size) Write a value in the fieldsize.voidwriteStride(int stride) Write a value in the fieldstride.voidwriteWidth(int width) Write a value in the fieldwidth.Methods inherited from class org.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 fieldwidthheight- value for the fieldheightstride- value for the fieldstridesize- value for the fieldsizearena- 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 fieldwidthheight- value for the fieldheightstride- value for the fieldstridesize- 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
-