Enum Class VideoDitherMethod

java.lang.Object
java.lang.Enum<VideoDitherMethod>
org.freedesktop.gstreamer.video.VideoDitherMethod
All Implemented Interfaces:
Serializable, Comparable<VideoDitherMethod>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum VideoDitherMethod extends Enum<VideoDitherMethod> implements Enumeration
Different dithering methods to use.
  • Enum Constant Details

    • NONE

      public static final VideoDitherMethod NONE
      no dithering
    • VERTERR

      public static final VideoDitherMethod VERTERR
      propagate rounding errors downwards
    • FLOYD_STEINBERG

      public static final VideoDitherMethod FLOYD_STEINBERG
      Dither with floyd-steinberg error diffusion
    • SIERRA_LITE

      public static final VideoDitherMethod SIERRA_LITE
      Dither with Sierra Lite error diffusion
    • BAYER

      public static final VideoDitherMethod BAYER
      ordered dither using a bayer pattern
  • Method Details

    • values

      public static VideoDitherMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VideoDitherMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static VideoDitherMethod of(int value)
      Create a new VideoDitherMethod for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static VideoDitherMethod of(MemorySegment address)
      Create a new VideoDitherMethod for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the VideoDitherMethod class.
      Returns:
      the GType