Class VideoMasteringDisplayInfoCoordinates

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

@Generated("org.javagi.JavaGI") public class VideoMasteringDisplayInfoCoordinates extends ProxyInstance
Used to represent display_primaries and white_point of GstVideoMasteringDisplayInfo struct. See GstVideoMasteringDisplayInfo
Since:
1.18
  • Constructor Details

    • VideoMasteringDisplayInfoCoordinates

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

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

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

      public VideoMasteringDisplayInfoCoordinates(short x, short y, Arena arena)
      Allocate a new VideoMasteringDisplayInfoCoordinates with the fields set to the provided values.
      Parameters:
      x - value for the field x
      y - value for the field y
      arena - to control the memory allocation scope
    • VideoMasteringDisplayInfoCoordinates

      public VideoMasteringDisplayInfoCoordinates(short x, short y)
      Allocate a new VideoMasteringDisplayInfoCoordinates with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      x - value for the field x
      y - value for the field y
  • Method Details

    • getMemoryLayout

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

      public short readX()
      Read the value of the field x.
      Returns:
      The value of the field x
    • writeX

      public void writeX(short x)
      Write a value in the field x.
      Parameters:
      x - The new value for the field x
    • readY

      public short readY()
      Read the value of the field y.
      Returns:
      The value of the field y
    • writeY

      public void writeY(short y)
      Write a value in the field y.
      Parameters:
      y - The new value for the field y