Enum Class ColorSpace.Named

java.lang.Object
java.lang.Enum<ColorSpace.Named>
icyllis.arc3d.core.ColorSpace.Named
All Implemented Interfaces:
Serializable, Comparable<ColorSpace.Named>, Constable
Enclosing class:
ColorSpace

public static enum ColorSpace.Named extends Enum<ColorSpace.Named>

List of common, named color spaces. A corresponding instance of ColorSpace can be obtained by calling ColorSpace.get(Named):


 ColorSpace cs = ColorSpace.get(ColorSpace.Named.DCI_P3);
 

The properties of each color space are described below (see sRGB for instance). When applicable, the color gamut of each color space is compared to the color gamut of sRGB using a CIE 1931 xy chromaticity diagram. This diagram shows the location of the color space's primaries and white point.

See Also:
  • Enum Constant Details

    • SRGB

      public static final ColorSpace.Named SRGB

      RGB color space sRGB standardized as IEC 61966-2.1:1999.

      ChromaticityRedGreenBlueWhite point
      x0.6400.3000.1500.3127
      y0.3300.6000.0600.3290
      PropertyValue
      NamesRGB IEC61966-2.1
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{sRGB} = \begin{cases} 12.92 \times C_{linear} invalid input: '&' C_{linear} \lt 0.0031308 \\\ 1.055 \times C_{linear}^{\frac{1}{2.4}} - 0.055 invalid input: '&' C_{linear} \ge 0.0031308 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{sRGB}}{12.92} invalid input: '&' C_{sRGB} \lt 0.04045 \\\ \left( \frac{C_{sRGB} + 0.055}{1.055} \right) ^{2.4} invalid input: '&' C_{sRGB} \ge 0.04045 \end{cases} \end{equation}\)
      Range\([0..1]\)

      sRGB

    • LINEAR_SRGB

      public static final ColorSpace.Named LINEAR_SRGB

      RGB color space sRGB standardized as IEC 61966-2.1:1999.

      ChromaticityRedGreenBlueWhite point
      x0.6400.3000.1500.3127
      y0.3300.6000.0600.3290
      PropertyValue
      NamesRGB IEC61966-2.1 (Linear)
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(C_{sRGB} = C_{linear}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{sRGB}\)
      Range\([0..1]\)

      sRGB

    • EXTENDED_SRGB

      public static final ColorSpace.Named EXTENDED_SRGB

      RGB color space scRGB-nl standardized as IEC 61966-2-2:2003.

      ChromaticityRedGreenBlueWhite point
      x0.6400.3000.1500.3127
      y0.3300.6000.0600.3290
      PropertyValue
      NamescRGB-nl IEC 61966-2-2:2003
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{scRGB} = \begin{cases} sign(C_{linear}) 12.92 \times \left| C_{linear} \right| invalid input: '&' \left| C_{linear} \right| \lt 0.0031308 \\\ sign(C_{linear}) 1.055 \times \left| C_{linear} \right| ^{\frac{1}{2.4}} - 0.055 invalid input: '&' \left| C_{linear} \right| \ge 0.0031308 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}sign(C_{scRGB}) \frac{\left| C_{scRGB} \right|}{12.92} invalid input: '&' \left| C_{scRGB} \right| \lt 0.04045 \\\ sign(C_{scRGB}) \left( \frac{\left| C_{scRGB} \right| + 0.055}{1.055} \right) ^{2.4} invalid input: '&' \left| C_{scRGB} \right| \ge 0.04045 \end{cases} \end{equation}\)
      Range\([-0.799..2.399[\)

      Extended sRGB (orange) vs sRGB (white)

    • LINEAR_EXTENDED_SRGB

      public static final ColorSpace.Named LINEAR_EXTENDED_SRGB

      RGB color space scRGB standardized as IEC 61966-2-2:2003.

      ChromaticityRedGreenBlueWhite point
      x0.6400.3000.1500.3127
      y0.3300.6000.0600.3290
      PropertyValue
      NamescRGB IEC 61966-2-2:2003
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(C_{scRGB} = C_{linear}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{scRGB}\)
      Range\([-0.5..7.499[\)

      Extended sRGB (orange) vs sRGB (white)

    • BT709

      public static final ColorSpace.Named BT709

      RGB color space BT.709 standardized as Rec. ITU-R BT.709-5.

      ChromaticityRedGreenBlueWhite point
      x0.6400.3000.1500.3127
      y0.3300.6000.0600.3290
      PropertyValue
      NameRec. ITU-R BT.709-5
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{BT709} = \begin{cases} 4.5 \times C_{linear} invalid input: '&' C_{linear} \lt 0.018 \\\ 1.099 \times C_{linear}^{\frac{1}{2.2}} - 0.099 invalid input: '&' C_{linear} \ge 0.018 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{BT709}}{4.5} invalid input: '&' C_{BT709} \lt 0.081 \\\ \left( \frac{C_{BT709} + 0.099}{1.099} \right) ^{2.2} invalid input: '&' C_{BT709} \ge 0.081 \end{cases} \end{equation}\)
      Range\([0..1]\)

      BT.709

    • BT2020

      public static final ColorSpace.Named BT2020

      RGB color space BT.2020 standardized as Rec. ITU-R BT.2020-1.

      ChromaticityRedGreenBlueWhite point
      x0.7080.1700.1310.3127
      y0.2920.7970.0460.3290
      PropertyValue
      NameRec. ITU-R BT.2020-1
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{BT2020} = \begin{cases} 4.5 \times C_{linear} invalid input: '&' C_{linear} \lt 0.0181 \\\ 1.0993 \times C_{linear}^{\frac{1}{2.2}} - 0.0993 invalid input: '&' C_{linear} \ge 0.0181 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{BT2020}}{4.5} invalid input: '&' C_{BT2020} \lt 0.08145 \\\ \left( \frac{C_{BT2020} + 0.0993}{1.0993} \right) ^{2.2} invalid input: '&' C_{BT2020} \ge 0.08145 \end{cases} \end{equation}\)
      Range\([0..1]\)

      BT.2020 (orange) vs sRGB (white)

    • DCI_P3

      public static final ColorSpace.Named DCI_P3

      RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007.

      ChromaticityRedGreenBlueWhite point
      x0.6800.2650.1500.314
      y0.3200.6900.0600.351
      PropertyValue
      NameSMPTE RP 431-2-2007 DCI (P3)
      CIE standard illuminantN/A
      Opto-electronic transfer function (OETF) \(C_{P3} = C_{linear}^{\frac{1}{2.6}}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{P3}^{2.6}\)
      Range\([0..1]\)

      DCI-P3 (orange) vs sRGB (white)

    • DISPLAY_P3

      public static final ColorSpace.Named DISPLAY_P3

      RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.

      ChromaticityRedGreenBlueWhite point
      x0.6800.2650.1500.3127
      y0.3200.6900.0600.3290
      PropertyValue
      NameDisplay P3
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{DisplayP3} = \begin{cases} 12.92 \times C_{linear} invalid input: '&' C_{linear} \lt 0.0030186 \\\ 1.055 \times C_{linear}^{\frac{1}{2.4}} - 0.055 invalid input: '&' C_{linear} \ge 0.0030186 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{DisplayP3}}{12.92} invalid input: '&' C_{sRGB} \lt 0.04045 \\\ \left( \frac{C_{DisplayP3} + 0.055}{1.055} \right) ^{2.4} invalid input: '&' C_{sRGB} \ge 0.04045 \end{cases} \end{equation}\)
      Range\([0..1]\)

      Display P3 (orange) vs sRGB (white)

    • NTSC_1953

      public static final ColorSpace.Named NTSC_1953

      RGB color space NTSC, 1953 standard.

      ChromaticityRedGreenBlueWhite point
      x0.670.210.140.310
      y0.330.710.080.316
      PropertyValue
      NameNTSC (1953)
      CIE standard illuminantC
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{BT709} = \begin{cases} 4.5 \times C_{linear} invalid input: '&' C_{linear} \lt 0.018 \\\ 1.099 \times C_{linear}^{\frac{1}{2.2}} - 0.099 invalid input: '&' C_{linear} \ge 0.018 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{BT709}}{4.5} invalid input: '&' C_{BT709} \lt 0.081 \\\ \left( \frac{C_{BT709} + 0.099}{1.099} \right) ^{2.2} invalid input: '&' C_{BT709} \ge 0.081 \end{cases} \end{equation}\)
      Range\([0..1]\)

      NTSC 1953 (orange) vs sRGB (white)

    • SMPTE_C

      public static final ColorSpace.Named SMPTE_C

      RGB color space SMPTE C.

      ChromaticityRedGreenBlueWhite point
      x0.6300.3100.1550.3127
      y0.3400.5950.0700.3290
      PropertyValue
      NameSMPTE-C RGB
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{BT709} = \begin{cases} 4.5 \times C_{linear} invalid input: '&' C_{linear} \lt 0.018 \\\ 1.099 \times C_{linear}^{\frac{1}{2.2}} - 0.099 invalid input: '&' C_{linear} \ge 0.018 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{BT709}}{4.5} invalid input: '&' C_{BT709} \lt 0.081 \\\ \left( \frac{C_{BT709} + 0.099}{1.099} \right) ^{2.2} invalid input: '&' C_{BT709} \ge 0.081 \end{cases} \end{equation}\)
      Range\([0..1]\)

      SMPTE-C (orange) vs sRGB (white)

    • ADOBE_RGB

      public static final ColorSpace.Named ADOBE_RGB

      RGB color space Adobe RGB (1998).

      ChromaticityRedGreenBlueWhite point
      x0.640.210.150.3127
      y0.330.710.060.3290
      PropertyValue
      NameAdobe RGB (1998)
      CIE standard illuminantD65
      Opto-electronic transfer function (OETF) \(C_{RGB} = C_{linear}^{\frac{1}{2.2}}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{RGB}^{2.2}\)
      Range\([0..1]\)

      Adobe RGB (orange) vs sRGB (white)

    • PRO_PHOTO_RGB

      public static final ColorSpace.Named PRO_PHOTO_RGB

      RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013.

      ChromaticityRedGreenBlueWhite point
      x0.73470.15960.03660.3457
      y0.26530.84040.00010.3585
      PropertyValue
      NameROMM RGB ISO 22028-2:2013
      CIE standard illuminantD50
      Opto-electronic transfer function (OETF) \(\begin{equation} C_{ROMM} = \begin{cases} 16 \times C_{linear} invalid input: '&' C_{linear} \lt 0.001953 \\\ C_{linear}^{\frac{1}{1.8}} invalid input: '&' C_{linear} \ge 0.001953 \end{cases} \end{equation}\)
      Electro-optical transfer function (EOTF) \(\begin{equation} C_{linear} = \begin{cases}\frac{C_{ROMM}}{16} invalid input: '&' C_{ROMM} \lt 0.031248 \\\ C_{ROMM}^{1.8} invalid input: '&' C_{ROMM} \ge 0.031248 \end{cases} \end{equation}\)
      Range\([0..1]\)

      ProPhoto RGB (orange) vs sRGB (white)

    • ACES

      public static final ColorSpace.Named ACES

      RGB color space ACES standardized as SMPTE ST 2065-1:2012.

      ChromaticityRedGreenBlueWhite point
      x0.734700.000000.000100.32168
      y0.265301.00000-0.077000.33767
      PropertyValue
      NameSMPTE ST 2065-1:2012 ACES
      CIE standard illuminantD60
      Opto-electronic transfer function (OETF) \(C_{ACES} = C_{linear}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{ACES}\)
      Range\([-65504.0, 65504.0]\)

      ACES (orange) vs sRGB (white)

    • ACESCG

      public static final ColorSpace.Named ACESCG

      RGB color space ACEScg standardized as Academy S-2014-004.

      ChromaticityRedGreenBlueWhite point
      x0.7130.1650.1280.32168
      y0.2930.8300.0440.33767
      PropertyValue
      NameAcademy S-2014-004 ACEScg
      CIE standard illuminantD60
      Opto-electronic transfer function (OETF) \(C_{ACEScg} = C_{linear}\)
      Electro-optical transfer function (EOTF) \(C_{linear} = C_{ACEScg}\)
      Range\([-65504.0, 65504.0]\)

      ACEScg (orange) vs sRGB (white)

    • CIE_XYZ

      public static final ColorSpace.Named CIE_XYZ

      XYZ color space CIE XYZ. This color space assumes standard illuminant D50 as its white point.

      PropertyValue
      NameGeneric XYZ
      CIE standard illuminantD50
      Range\([-2.0, 2.0]\)
    • CIE_LAB

      public static final ColorSpace.Named CIE_LAB

      Lab color space CIE L*a*b*. This color space uses CIE XYZ D50 as a profile conversion space.

      PropertyValue
      NameGeneric L*a*b*
      CIE standard illuminantD50
      Range\(L: [0.0, 100.0], a: [-128, 128], b: [-128, 128]\)
  • Method Details

    • values

      public static ColorSpace.Named[] 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 ColorSpace.Named 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