Enum libxl.JxlPrimaries

java.lang.Object
java.lang.Enum<libxl.JxlPrimaries>
gov.nih.mipav.model.file.libxl.JxlPrimaries
All Implemented Interfaces:
Serializable, Comparable<libxl.JxlPrimaries>, java.lang.constant.Constable
Enclosing class:
libxl

static enum libxl.JxlPrimaries extends Enum<libxl.JxlPrimaries>
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.
  • Enum Constant Details

    • JXL_PRIMARIES_SRGB

      public static final libxl.JxlPrimaries 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

      public static final libxl.JxlPrimaries 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

      public static final libxl.JxlPrimaries JXL_PRIMARIES_2100
      As specified in Rec. ITU-R BT.2100-1
    • JXL_PRIMARIES_P3

      public static final libxl.JxlPrimaries 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

      public static libxl.JxlPrimaries[] 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

      public static libxl.JxlPrimaries valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumVal

      public int getNumVal()