Package org.freedesktop.gstreamer.video
Class VideoCaptionMeta
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCaptionMeta
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.Read the value of the fieldcaption_type.@org.jspecify.annotations.Nullable byte @Nullable []readData()Read the value of the fielddata.@Nullable MetareadMeta()Read the value of the fieldmeta.longreadSize()Read the value of the fieldsize.voidwriteCaptionType(VideoCaptionType captionType) Write a value in the fieldcaption_type.voidWrite a value in the fielddata.voidWrite a value in the fieldmeta.voidwriteSize(long size) Write a value in the fieldsize.Methods inherited from class org.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 fieldmetacaptionType- value for the fieldcaptionTypedata- value for the fielddatasize- value for the fieldsizearena- 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 fieldmetacaptionType- value for the fieldcaptionTypedata- value for the fielddatasize- value for the fieldsize
-
-
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
-
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 @org.jspecify.annotations.Nullable byte @Nullable [] 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
-