Package org.freedesktop.gstreamer.video
Class VideoCaptionMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCaptionMeta
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoCaptionMeta.VideoCaptionMeta
(Arena arena) Allocate a new VideoCaptionMeta.VideoCaptionMeta
(MemorySegment address) Create a VideoCaptionMeta proxy instance for the provided memory address.VideoCaptionMeta
(Meta meta, VideoCaptionType captionType, byte[] data, long size) Allocate a new VideoCaptionMeta with the fields set to the provided values.VideoCaptionMeta
(Meta meta, VideoCaptionType captionType, byte[] data, long size, Arena arena) Allocate a new VideoCaptionMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.Read the value of the fieldcaption_type
.byte[]
readData()
Read the value of the fielddata
.readMeta()
Read the value of the fieldmeta
.long
readSize()
Read the value of the fieldsize
.void
writeCaptionType
(VideoCaptionType captionType) Write a value in the fieldcaption_type
.void
Write a value in the fielddata
.void
Write a value in the fieldmeta
.void
writeSize
(long size) Write a value in the fieldsize
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoCaptionMeta
Create a VideoCaptionMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoCaptionMeta
Allocate a new VideoCaptionMeta.- Parameters:
arena
- to control the memory allocation scope
-
VideoCaptionMeta
public VideoCaptionMeta()Allocate a new VideoCaptionMeta. The memory is allocated withArena.ofAuto()
. -
VideoCaptionMeta
public VideoCaptionMeta(Meta meta, VideoCaptionType captionType, byte[] data, long size, Arena arena) Allocate a new VideoCaptionMeta with the fields set to the provided values.- Parameters:
meta
- value for the fieldmeta
captionType
- value for the fieldcaptionType
data
- value for the fielddata
size
- value for the fieldsize
arena
- to control the memory allocation scope
-
VideoCaptionMeta
Allocate a new VideoCaptionMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
captionType
- value for the fieldcaptionType
data
- value for the fielddata
size
- value for the fieldsize
-
-
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
-
readCaptionType
Read the value of the fieldcaption_type
.- Returns:
- The value of the field
caption_type
-
writeCaptionType
Write a value in the fieldcaption_type
.- Parameters:
captionType
- The new value for the fieldcaption_type
-
readData
public byte[] readData()Read the value of the fielddata
.- Returns:
- The value of the field
data
-
writeData
Write a value in the fielddata
.- Parameters:
data
- The new value for the fielddata
_arena
- to control the memory allocation scope
-
readSize
public long readSize()Read the value of the fieldsize
.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(long size) Write a value in the fieldsize
.- Parameters:
size
- The new value for the fieldsize
-
getInfo
-