Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa48a77c authored by Romain Guy's avatar Romain Guy
Browse files

Add Display-P3 color mode

Test: compile
Bug: 32984164
Change-Id: Ie3f361664320482974811b229a82e1703eb19c43
parent 3e84bebc
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
@@ -1264,7 +1264,7 @@ enum ColorMode : int32_t {
   *  red             0.680   0.320
   *  white (D65)     0.3127  0.3290
   *
   * Gamma: 2.2
   * Gamma: 2.6
   */
  DCI_P3 = 6,

@@ -1309,7 +1309,27 @@ enum ColorMode : int32_t {
   *
   * Gamma: 2.2
   */
  ADOBE_RGB = 8
  ADOBE_RGB = 8,

  /*
   * DISPLAY_P3 is a color space that uses the DCI_P3 primaries,
   * the D65 white point and the SRGB transfer functions.
   * Rendering Intent: Colorimetric
   * Primaries:
   *                  x       y
   *  green           0.265   0.690
   *  blue            0.150   0.060
   *  red             0.680   0.320
   *  white (D65)     0.3127  0.3290
   *
   * PC/Internet (sRGB) Gamma Correction (GC):
   *
   *  if Vlinear ≤ 0.0031308
   *    Vnonlinear = 12.92 * Vlinear
   *  else
   *    Vnonlinear = 1.055 * (Vlinear)^(1/2.4) – 0.055
   */
  DISPLAY_P3 = 9
};

/*