Enum Class VideoChromaSite

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

@Generated("org.javagi.JavaGI") public enum VideoChromaSite extends Enum<VideoChromaSite> implements Enumeration
Various Chroma sitings.
  • Enum Constant Details

    • UNKNOWN

      public static final VideoChromaSite UNKNOWN
      unknown cositing
    • NONE

      public static final VideoChromaSite NONE
      no cositing
    • H_COSITED

      public static final VideoChromaSite H_COSITED
      chroma is horizontally cosited
    • V_COSITED

      public static final VideoChromaSite V_COSITED
      chroma is vertically cosited
    • ALT_LINE

      public static final VideoChromaSite ALT_LINE
      chroma samples are sited on alternate lines
    • COSITED

      public static final VideoChromaSite COSITED
      chroma samples cosited with luma samples
    • DV

      public static final VideoChromaSite DV
      DV style cositing
  • Field Details

    • JPEG

      public static final VideoChromaSite JPEG
      jpeg style cositing, also for mpeg1 and mjpeg
    • MPEG2

      public static final VideoChromaSite MPEG2
      mpeg2 style cositing
  • Method Details

    • values

      public static VideoChromaSite[] 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 VideoChromaSite 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
    • getValue

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

      public static Set<VideoChromaSite> of(int flags)
      Create a new EnumSet<VideoChromaSite> for the provided bitfield
      Parameters:
      flags - the VideoChromaSite bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<VideoChromaSite> of(MemorySegment address)
      Create a new EnumSet<VideoChromaSite> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

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

      public static Set<VideoChromaSite> fromString(String s)
      Convert s to a GstVideoChromaSite
      Parameters:
      s - a chromasite string
      Returns:
      a GstVideoChromaSite or UNKNOWN when s does not contain a valid chroma-site description.
      Since:
      1.20
    • toString

      public @Nullable String toString()
      Converts this VideoChromaSite to its string representation.
      Overrides:
      toString in class Enum<VideoChromaSite>
      Returns:
      a string representation of this VideoChromaSite or null if this VideoChromaSite contains undefined value or is equal to UNKNOWN
      Since:
      1.20