Class CustomMeta

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

@Generated("org.javagi.JavaGI") public class CustomMeta extends ProxyInstance

Extra custom metadata. The structure field is the same as returned by gst_custom_meta_get_structure().

Since 1.24 it can be serialized using gst_meta_serialize() and gst_meta_deserialize(), but only if the GstStructure does not contain any fields that cannot be serialized, see SerializeFlags.STRICT.

Since:
1.20
  • Constructor Details

    • CustomMeta

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

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

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

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

      public CustomMeta(Meta meta, Structure structure)
      Allocate a new CustomMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      structure - value for the field structure
  • 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
    • readStructure

      public Structure readStructure()
      Read the value of the field structure.
      Returns:
      The value of the field structure
    • writeStructure

      public void writeStructure(Structure structure)
      Write a value in the field structure.
      Parameters:
      structure - The new value for the field structure
    • getStructure

      public Structure getStructure()
      Retrieve the GstStructure backing a custom meta, the structure's mutability is conditioned to the writability of the GstBuffer this CustomMeta is attached to.
      Returns:
      the GstStructure backing this CustomMeta
      Since:
      1.20
    • hasName

      public boolean hasName(String name)
      Checks whether the name of the custom meta is name
      Returns:
      Whether name is the name of the custom meta
      Since:
      1.20