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

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

Update scRGB ranges

Bug: 32984164
Test: colorspace_test
Change-Id: I6e062bd5fd7fc22fd94354cd2c8b965134c42e3c
parent 5f541b96
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ const ColorSpace ColorSpace::extendedSRGB() {
        {0.3127f, 0.3290f},
        std::bind(absRcpResponse, _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.04045f),
        std::bind(absResponse,    _1, 2.4f, 1 / 1.055f, 0.055f / 1.055f, 1 / 12.92f, 0.04045f),
        std::bind(clamp<float>, _1, -0.5f, 7.5f)
        std::bind(clamp<float>, _1, -0.799f, 2.399f)
    };
}

@@ -148,7 +148,7 @@ const ColorSpace ColorSpace::linearExtendedSRGB() {
        {0.3127f, 0.3290f},
        linearReponse,
        linearReponse,
        std::bind(clamp<float>, _1, -0.5f, 7.5f)
        std::bind(clamp<float>, _1, -0.5f, 7.499f)
    };
}