Class VideoCodecAlphaMeta

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

@Generated("org.javagi.JavaGI") public class VideoCodecAlphaMeta extends ProxyInstance
This meta is primarily for internal use in GStreamer elements to support VP8/VP9 transparent video stored into WebM or Matroska containers, or transparent static AV1 images. Nothing prevents you from using this meta for custom purposes, but it generally can't be used to easily to add support for alpha channels to CODECs or formats that don't support that out of the box.
Since:
1.20
  • Constructor Details

    • VideoCodecAlphaMeta

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

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

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

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

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

      public Buffer readBuffer()
      Read the value of the field buffer.
      Returns:
      The value of the field buffer
    • writeBuffer

      public void writeBuffer(Buffer buffer)
      Write a value in the field buffer.
      Parameters:
      buffer - The new value for the field buffer
    • getInfo

      public static MetaInfo getInfo()