Class ProtectionMeta

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ProtectionMeta
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ProtectionMeta extends ProxyInstance
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 Details

    • ProtectionMeta

      public ProtectionMeta(MemorySegment address)
      Create a ProtectionMeta proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ProtectionMeta

      public ProtectionMeta(Arena arena)
      Allocate a new ProtectionMeta.
      Parameters:
      arena - to control the memory allocation scope
    • ProtectionMeta

      public ProtectionMeta()
      Allocate a new ProtectionMeta. The memory is allocated with Arena.ofAuto().
    • ProtectionMeta

      public ProtectionMeta(Meta meta, Structure info, Arena arena)
      Allocate a new ProtectionMeta with the fields set to the provided values.
      Parameters:
      meta - value for the field meta
      info - value for the field info
      arena - to control the memory allocation scope
    • ProtectionMeta

      public ProtectionMeta(Meta meta, Structure info)
      Allocate a new ProtectionMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      info - value for the field info
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readMeta

      public @Nullable Meta readMeta()
      Read the value of the field meta.
      Returns:
      The value of the field meta
    • writeMeta

      public void writeMeta(@Nullable Meta meta)
      Write a value in the field meta.
      Parameters:
      meta - The new value for the field meta
    • readInfo

      public Structure readInfo()
      Read the value of the field info.
      Returns:
      The value of the field info
    • writeInfo

      public void writeInfo(Structure info)
      Write a value in the field info.
      Parameters:
      info - The new value for the field info
    • getInfo

      public static MetaInfo getInfo()