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

Commit 3068374b authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter Committed by Android (Google) Code Review
Browse files

Merge changes from topic 'display-p3'

* changes:
  Add Display P3 DATASPACE enums
  Remove TODO
parents 95fcdac6 5f3da62c
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
@@ -928,10 +928,6 @@ enum Dataspace : int32_t {
     * A pixel value of 1.0, 1.0, 1.0 corresponds to sRGB white (D65) at 80 nits.
     * Values beyond the range [0.0 - 1.0] would correspond to other colors
     * spaces and/or HDR content.
     *
     * TODO (courtneygo): Will we actually use this? We intend to use FP16
     * storage for data using scRGB so we can do all work in linear space
     * and don't have to worry as much about limited precision.
     */
    V0_SCRGB = STANDARD_BT709 | TRANSFER_SRGB | RANGE_EXTENDED,

@@ -1014,6 +1010,24 @@ enum Dataspace : int32_t {
    DCI_P3 = STANDARD_DCI_P3 | TRANSFER_GAMMA2_6 | RANGE_FULL,


    /*
     * Display P3
     *
     * Display P3 uses same primaries and white-point as DCI-P3
     * linear transfer function makes this the same as DCI_P3_LINEAR.
     */
    DISPLAY_P3_LINEAR = STANDARD_DCI_P3 | TRANSFER_LINEAR | RANGE_FULL,


    /*
     * Display P3
     *
     * Use same primaries and white-point as DCI-P3
     * but sRGB transfer function.
     */
    DISPLAY_P3 = STANDARD_DCI_P3 | TRANSFER_SRGB | RANGE_FULL,


    /*
     * Adobe RGB
     *