Class VideoContentLightLevel

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

@Generated("org.javagi.JavaGI") public class VideoContentLightLevel extends ProxyInstance
Content light level information specified in CEA-861.3, Appendix A.
Since:
1.18
  • Constructor Details

    • VideoContentLightLevel

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

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

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

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

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

    • getMemoryLayout

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

      public short readMaxContentLightLevel()
      Read the value of the field max_content_light_level.
      Returns:
      The value of the field max_content_light_level
    • writeMaxContentLightLevel

      public void writeMaxContentLightLevel(short maxContentLightLevel)
      Write a value in the field max_content_light_level.
      Parameters:
      maxContentLightLevel - The new value for the field max_content_light_level
    • readMaxFrameAverageLightLevel

      public short readMaxFrameAverageLightLevel()
      Read the value of the field max_frame_average_light_level.
      Returns:
      The value of the field max_frame_average_light_level
    • writeMaxFrameAverageLightLevel

      public void writeMaxFrameAverageLightLevel(short maxFrameAverageLightLevel)
      Write a value in the field max_frame_average_light_level.
      Parameters:
      maxFrameAverageLightLevel - The new value for the field max_frame_average_light_level
    • addToCaps

      public boolean addToCaps(Caps caps)
      Parse caps and update this VideoContentLightLevel
      Parameters:
      caps - a GstCaps
      Returns:
      true if this VideoContentLightLevel was successfully set to caps
      Since:
      1.18
    • fromCaps

      public boolean fromCaps(Caps caps)
      Parse caps and update this VideoContentLightLevel
      Parameters:
      caps - a GstCaps
      Returns:
      if caps has GstVideoContentLightLevel and could be parsed
      Since:
      1.18
    • fromString

      public boolean fromString(String level)
      Parse the value of content-light-level caps field and update minfo with the parsed values.
      Parameters:
      level - a content-light-level string from caps
      Returns:
      true if this VideoContentLightLevel points to valid GstVideoContentLightLevel.
      Since:
      1.18
    • init

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

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

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