Package gov.nih.mipav.model.file
Enum libxl.JxlPrimaries
- All Implemented Interfaces:
Serializable,Comparable<libxl.JxlPrimaries>,java.lang.constant.Constable
- Enclosing class:
libxl
Built-in primaries for color encoding. When decoding, the primaries can be
read from the @ref JxlColorEncoding primaries_red_xy, primaries_green_xy and
primaries_blue_xy fields regardless of the enum value. When encoding, the
enum values except ::JXL_PRIMARIES_CUSTOM override the numerical fields.
Some enum values match a subset of CICP (Rec. ITU-T H.273 | ISO/IEC
23091-2:2019(E)), however the white point and RGB primaries are separate
enums here.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAs specified in Rec.Primaries must be read from the @ref JxlColorEncoding primaries_red_xy, primaries_green_xy and primaries_blue_xy fields, or as ICC profile.As specified in SMPTE RP 431-2The CIE xy values of the red, green and blue primaries are: 0.639998686, 0.330010138; 0.300003784, 0.600003357; 0.150002046, 0.059997204 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic libxl.JxlPrimariesReturns the enum constant of this type with the specified name.static libxl.JxlPrimaries[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JXL_PRIMARIES_SRGB
The CIE xy values of the red, green and blue primaries are: 0.639998686, 0.330010138; 0.300003784, 0.600003357; 0.150002046, 0.059997204 -
JXL_PRIMARIES_CUSTOM
Primaries must be read from the @ref JxlColorEncoding primaries_red_xy, primaries_green_xy and primaries_blue_xy fields, or as ICC profile. This enum value is not an exact match of the corresponding CICP value. -
JXL_PRIMARIES_2100
As specified in Rec. ITU-R BT.2100-1 -
JXL_PRIMARIES_P3
As specified in SMPTE RP 431-2
-
-
Field Details
-
numVal
private final int numVal
-
-
Constructor Details
-
JxlPrimaries
private JxlPrimaries(int numVal)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumVal
public int getNumVal()
-