Package limn.video

Enum Class VideoColor.Matrix

java.lang.Object
java.lang.Enum<VideoColor.Matrix>
limn.video.VideoColor.Matrix
All Implemented Interfaces:
Serializable, Comparable<VideoColor.Matrix>, Constable
Enclosing class:
VideoColor

public static enum VideoColor.Matrix extends Enum<VideoColor.Matrix>
The luma/chroma matrix a stream was encoded with.
  • Enum Constant Details

    • BT601

      public static final VideoColor.Matrix BT601
      Rec. ITU-R BT.601: Kr 0.299, Kb 0.114. Standard-definition and motion-JPEG content.
    • BT709

      public static final VideoColor.Matrix BT709
      Rec. ITU-R BT.709: Kr 0.2126, Kb 0.0722. High-definition content, and the common default.
    • BT2020

      public static final VideoColor.Matrix BT2020
      Rec. ITU-R BT.2020 non-constant-luminance: Kr 0.2627, Kb 0.0593. Ultra-high-definition content.
  • Method Details

    • values

      public static VideoColor.Matrix[] 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 VideoColor.Matrix 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
    • kr

      public double kr()
      Returns:
      the red luma weight, exactly as the recommendation defines it
    • kb

      public double kb()
      Returns:
      the blue luma weight, exactly as the recommendation defines it
    • kg

      public double kg()
      Returns:
      the green luma weight, which is 1 - kr() - kb() and is never stored separately