Class VideoMasteringDisplayInfo

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

@Generated("org.javagi.JavaGI") public class VideoMasteringDisplayInfo extends ProxyInstance
Mastering display color volume information defined by SMPTE ST 2086 (a.k.a static HDR metadata).
Since:
1.18
  • Constructor Details

    • VideoMasteringDisplayInfo

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

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

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

      public VideoMasteringDisplayInfo(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance, Arena arena)
      Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values.
      Parameters:
      displayPrimaries - value for the field displayPrimaries
      whitePoint - value for the field whitePoint
      maxDisplayMasteringLuminance - value for the field maxDisplayMasteringLuminance
      minDisplayMasteringLuminance - value for the field minDisplayMasteringLuminance
      arena - to control the memory allocation scope
    • VideoMasteringDisplayInfo

      public VideoMasteringDisplayInfo(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance)
      Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      displayPrimaries - value for the field displayPrimaries
      whitePoint - value for the field whitePoint
      maxDisplayMasteringLuminance - value for the field maxDisplayMasteringLuminance
      minDisplayMasteringLuminance - value for the field minDisplayMasteringLuminance
  • Method Details

    • getMemoryLayout

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

      public @Nullable VideoMasteringDisplayInfoCoordinates @Nullable [] readDisplayPrimaries()
      Read the value of the field display_primaries.
      Returns:
      The value of the field display_primaries
    • writeDisplayPrimaries

      public void writeDisplayPrimaries(@Nullable VideoMasteringDisplayInfoCoordinates @Nullable [] displayPrimaries, Arena _arena)
      Write a value in the field display_primaries.
      Parameters:
      displayPrimaries - The new value for the field display_primaries
    • readWhitePoint

      public @Nullable VideoMasteringDisplayInfoCoordinates readWhitePoint()
      Read the value of the field white_point.
      Returns:
      The value of the field white_point
    • writeWhitePoint

      public void writeWhitePoint(@Nullable VideoMasteringDisplayInfoCoordinates whitePoint)
      Write a value in the field white_point.
      Parameters:
      whitePoint - The new value for the field white_point
    • readMaxDisplayMasteringLuminance

      public int readMaxDisplayMasteringLuminance()
      Read the value of the field max_display_mastering_luminance.
      Returns:
      The value of the field max_display_mastering_luminance
    • writeMaxDisplayMasteringLuminance

      public void writeMaxDisplayMasteringLuminance(int maxDisplayMasteringLuminance)
      Write a value in the field max_display_mastering_luminance.
      Parameters:
      maxDisplayMasteringLuminance - The new value for the field max_display_mastering_luminance
    • readMinDisplayMasteringLuminance

      public int readMinDisplayMasteringLuminance()
      Read the value of the field min_display_mastering_luminance.
      Returns:
      The value of the field min_display_mastering_luminance
    • writeMinDisplayMasteringLuminance

      public void writeMinDisplayMasteringLuminance(int minDisplayMasteringLuminance)
      Write a value in the field min_display_mastering_luminance.
      Parameters:
      minDisplayMasteringLuminance - The new value for the field min_display_mastering_luminance
    • fromString

      public static boolean fromString(VideoMasteringDisplayInfo minfo, String mastering)
      Extract GstVideoMasteringDisplayInfo from mastering
      Parameters:
      minfo - a GstVideoMasteringDisplayInfo
      mastering - a GstStructure representing GstVideoMasteringDisplayInfo
      Returns:
      true if minfo was filled with mastering
      Since:
      1.18
    • addToCaps

      public boolean addToCaps(Caps caps)
      Set string representation of this VideoMasteringDisplayInfo to caps
      Parameters:
      caps - a GstCaps
      Returns:
      true if this VideoMasteringDisplayInfo was successfully set to caps
      Since:
      1.18
    • fromCaps

      public boolean fromCaps(Caps caps)
      Parse caps and update this VideoMasteringDisplayInfo
      Parameters:
      caps - a GstCaps
      Returns:
      true if caps has GstVideoMasteringDisplayInfo and could be parsed
      Since:
      1.18
    • init

      public void init()
      Initialize this VideoMasteringDisplayInfo
      Since:
      1.18
    • isEqual

      public boolean isEqual(VideoMasteringDisplayInfo other)
      Checks equality between this VideoMasteringDisplayInfo and other.
      Parameters:
      other - a GstVideoMasteringDisplayInfo
      Returns:
      true if this VideoMasteringDisplayInfo and other are equal.
      Since:
      1.18
    • toString

      public String toString()
      Convert this VideoMasteringDisplayInfo to its string representation
      Overrides:
      toString in class Object
      Returns:
      a string representation of this VideoMasteringDisplayInfo
      Since:
      1.18