Package limn.video
Enum Class VideoColor.Range
- All Implemented Interfaces:
Serializable,Comparable<VideoColor.Range>,Constable
- Enclosing class:
VideoColor
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoColor.RangeReturns the enum constant of this class with the specified name.static VideoColor.Range[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Full range: luma and chroma over the whole code space, with the midpoint neutral.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-