Package limn.video
Enum Class VideoColor.Matrix
- All Implemented Interfaces:
Serializable,Comparable<VideoColor.Matrix>,Constable
- Enclosing class:
VideoColor
The luma/chroma matrix a stream was encoded with.
-
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 TypeMethodDescriptiondoublekb()doublekg()doublekr()static VideoColor.MatrixReturns the enum constant of this class with the specified name.static VideoColor.Matrix[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BT601
Rec. ITU-R BT.601: Kr 0.299, Kb 0.114. Standard-definition and motion-JPEG content. -
BT709
Rec. ITU-R BT.709: Kr 0.2126, Kb 0.0722. High-definition content, and the common default. -
BT2020
Rec. ITU-R BT.2020 non-constant-luminance: Kr 0.2627, Kb 0.0593. Ultra-high-definition content.
-
-
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
-
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
-