Package limn.video

Enum Class VideoColor.Range

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

public static enum VideoColor.Range extends Enum<VideoColor.Range>
Which codes a stream's samples occupy. The intervals below are quoted at eight bits; at any other depth a studio level is that level shifted left by bitDepth - 8, so studio white is 235 at eight bits and 940 at ten, while full range always occupies the whole code space, which is why the two do not scale by the same factor.
  • Enum Constant Details

    • LIMITED

      public static final VideoColor.Range LIMITED
      Studio range: luma in [16..235], chroma in [16..240]. Codes outside those intervals are legal footroom and headroom and must decode to clamped black and white rather than being clamped on input, so that a range mix-up stays visible instead of being silently absorbed.
    • FULL

      public static final VideoColor.Range FULL
      Full range: luma and chroma over the whole code space, with the midpoint neutral.
  • Method Details

    • values

      public static VideoColor.Range[] 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.Range 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