Package org.freedesktop.gstreamer.gst
Class ProtectionMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ProtectionMeta
- All Implemented Interfaces:
Proxy
Metadata type that holds information about a sample from a protection-protected
track, including the information needed to decrypt it (if it is encrypted).
-
Constructor Summary
ConstructorDescriptionAllocate a new ProtectionMeta.ProtectionMeta
(Arena arena) Allocate a new ProtectionMeta.ProtectionMeta
(MemorySegment address) Create a ProtectionMeta proxy instance for the provided memory address.ProtectionMeta
(Meta meta, Structure info) Allocate a new ProtectionMeta with the fields set to the provided values.ProtectionMeta
(Meta meta, Structure info, Arena arena) Allocate a new ProtectionMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.readInfo()
Read the value of the fieldinfo
.readMeta()
Read the value of the fieldmeta
.void
Write a value in the fieldinfo
.void
Write a value in the fieldmeta
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ProtectionMeta
Create a ProtectionMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ProtectionMeta
Allocate a new ProtectionMeta.- Parameters:
arena
- to control the memory allocation scope
-
ProtectionMeta
public ProtectionMeta()Allocate a new ProtectionMeta. The memory is allocated withArena.ofAuto()
. -
ProtectionMeta
-
ProtectionMeta
Allocate a new ProtectionMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
info
- value for the fieldinfo
-
-
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
-
readInfo
-
writeInfo
Write a value in the fieldinfo
.- Parameters:
info
- The new value for the fieldinfo
-
getInfo
-