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

Commit 37606f9f authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter
Browse files

Add dataspace to match upstream EGL extension

EGL's EGL_EXT_gl_colorspace_bt2020_pq extension
supports a bt2020 color space with a ST2084
transfer function (Dolby Perceptual Quantizer)
Test: make

Change-Id: I3de03b91ee24880a4b2dab14c0f07185a53bf067
parent 32682910
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -792,7 +792,7 @@ enum Dataspace : int32_t {
    TRANSFER_GAMMA2_8 = 6 << TRANSFER_SHIFT,

    /*
     * SMPTE ST 2084
     * SMPTE ST 2084 (Dolby Perceptual Quantizer)
     *
     * Transfer characteristic curve:
     *  E = ((c1 + c2 * L^n) / (1 + c3 * L^n)) ^ m
@@ -1068,6 +1068,15 @@ enum Dataspace : int32_t {
     */
    BT2020 = STANDARD_BT2020 | TRANSFER_SMPTE_170M | RANGE_FULL,

    /*
     * ITU-R Recommendation 2020 (BT.2020)
     *
     * Ultra High-definition television
     *
     * Use full range, SMPTE 2084 (PQ) transfer and BT2020 standard
     */
    BT2020_PQ = STANDARD_BT2020 | TRANSFER_ST2084 | RANGE_FULL,


    /*
     * Data spaces for non-color formats