Package org.freedesktop.gstreamer.gst
Class ProtectionMeta
java.lang.Object
org.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).
- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.readInfo()Read the value of the fieldinfo.@Nullable MetareadMeta()Read the value of the fieldmeta.voidWrite a value in the fieldinfo.voidWrite a value in the fieldmeta.Methods inherited from class org.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 fieldmetainfo- value for the fieldinfo
-
-
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
-
readInfo
-
writeInfo
Write a value in the fieldinfo.- Parameters:
info- The new value for the fieldinfo
-
getInfo
-