]> git.sesse.net Git - movit/commit
Use exact sRGB matrix values.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Dec 2021 12:15:11 +0000 (13:15 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Dec 2021 12:15:11 +0000 (13:15 +0100)
commit0b1705581552217b0e387bd687d65e4e3410ab91
tree7eddc458e9887c422446d0387d042d2b9a743e99
parentf0c77209245aa206996c7ef5395888e2859ff4bf
Use exact sRGB matrix values.

https://photosauce.net/blog/post/what-makes-srgb-a-special-color-space
alerted me to that sRGB does not use the exact same matrix as Rec. 709;
it demands specific, rounded-off values. The difference should be minute,
but now we are at least exact in the forward direction.

Note that this isn't an ABI break per se, even though the definition of the
COLORSPACE_sRGB enum changes; old software will simply still continue
to treat it as Rec. 709, while newly-compiled software will get the
corrected version.
colorspace_conversion_effect.cpp
colorspace_conversion_effect_test.cpp
image_format.h