Class VideoCaptionMeta

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCaptionMeta
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoCaptionMeta extends ProxyInstance
Extra buffer metadata providing Closed Caption.
Since:
1.16
  • Constructor Details

    • VideoCaptionMeta

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

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

      public VideoCaptionMeta()
      Allocate a new VideoCaptionMeta. The memory is allocated with Arena.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 field meta
      captionType - value for the field captionType
      data - value for the field data
      size - value for the field size
      arena - to control the memory allocation scope
    • VideoCaptionMeta

      public VideoCaptionMeta(Meta meta, VideoCaptionType captionType, byte[] data, long size)
      Allocate a new VideoCaptionMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      captionType - value for the field captionType
      data - value for the field data
      size - value for the field size
  • 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
    • readCaptionType

      public VideoCaptionType readCaptionType()
      Read the value of the field caption_type.
      Returns:
      The value of the field caption_type
    • writeCaptionType

      public void writeCaptionType(VideoCaptionType captionType)
      Write a value in the field caption_type.
      Parameters:
      captionType - The new value for the field caption_type
    • readData

      public @Nullable byte @Nullable [] readData()
      Read the value of the field data.
      Returns:
      The value of the field data
    • writeData

      public void writeData(@Nullable byte @Nullable [] data, Arena _arena)
      Write a value in the field data.
      Parameters:
      data - The new value for the field data
      _arena - to control the memory allocation scope
    • readSize

      public long readSize()
      Read the value of the field size.
      Returns:
      The value of the field size
    • writeSize

      public void writeSize(long size)
      Write a value in the field size.
      Parameters:
      size - The new value for the field size
    • getInfo

      public static MetaInfo getInfo()