Class VideoColorPrimariesInfo

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

@Generated("org.javagi.JavaGI") public class VideoColorPrimariesInfo extends ProxyInstance
Structure describing the chromaticity coordinates of an RGB system. These values can be used to construct a matrix to transform RGB to and from the XYZ colorspace.
Since:
1.6
  • Constructor Details

    • VideoColorPrimariesInfo

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

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

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

      public VideoColorPrimariesInfo(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By, Arena arena)
      Allocate a new VideoColorPrimariesInfo with the fields set to the provided values.
      Parameters:
      primaries - value for the field primaries
      Wx - value for the field Wx
      Wy - value for the field Wy
      Rx - value for the field Rx
      Ry - value for the field Ry
      Gx - value for the field Gx
      Gy - value for the field Gy
      Bx - value for the field Bx
      By - value for the field By
      arena - to control the memory allocation scope
    • VideoColorPrimariesInfo

      public VideoColorPrimariesInfo(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By)
      Allocate a new VideoColorPrimariesInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      primaries - value for the field primaries
      Wx - value for the field Wx
      Wy - value for the field Wy
      Rx - value for the field Rx
      Ry - value for the field Ry
      Gx - value for the field Gx
      Gy - value for the field Gy
      Bx - value for the field Bx
      By - value for the field By
  • Method Details

    • getMemoryLayout

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

      public VideoColorPrimaries readPrimaries()
      Read the value of the field primaries.
      Returns:
      The value of the field primaries
    • writePrimaries

      public void writePrimaries(VideoColorPrimaries primaries)
      Write a value in the field primaries.
      Parameters:
      primaries - The new value for the field primaries
    • readWx

      public double readWx()
      Read the value of the field Wx.
      Returns:
      The value of the field Wx
    • writeWx

      public void writeWx(double Wx)
      Write a value in the field Wx.
      Parameters:
      Wx - The new value for the field Wx
    • readWy

      public double readWy()
      Read the value of the field Wy.
      Returns:
      The value of the field Wy
    • writeWy

      public void writeWy(double Wy)
      Write a value in the field Wy.
      Parameters:
      Wy - The new value for the field Wy
    • readRx

      public double readRx()
      Read the value of the field Rx.
      Returns:
      The value of the field Rx
    • writeRx

      public void writeRx(double Rx)
      Write a value in the field Rx.
      Parameters:
      Rx - The new value for the field Rx
    • readRy

      public double readRy()
      Read the value of the field Ry.
      Returns:
      The value of the field Ry
    • writeRy

      public void writeRy(double Ry)
      Write a value in the field Ry.
      Parameters:
      Ry - The new value for the field Ry
    • readGx

      public double readGx()
      Read the value of the field Gx.
      Returns:
      The value of the field Gx
    • writeGx

      public void writeGx(double Gx)
      Write a value in the field Gx.
      Parameters:
      Gx - The new value for the field Gx
    • readGy

      public double readGy()
      Read the value of the field Gy.
      Returns:
      The value of the field Gy
    • writeGy

      public void writeGy(double Gy)
      Write a value in the field Gy.
      Parameters:
      Gy - The new value for the field Gy
    • readBx

      public double readBx()
      Read the value of the field Bx.
      Returns:
      The value of the field Bx
    • writeBx

      public void writeBx(double Bx)
      Write a value in the field Bx.
      Parameters:
      Bx - The new value for the field Bx
    • readBy

      public double readBy()
      Read the value of the field By.
      Returns:
      The value of the field By
    • writeBy

      public void writeBy(double By)
      Write a value in the field By.
      Parameters:
      By - The new value for the field By