Calculate the RGB-to-XYZ matrix ourselves instead of using a “magic” one from Wikipedia.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 1 Jan 2014 11:43:36 +0000 (12:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 1 Jan 2014 11:43:36 +0000 (12:43 +0100)
commitddce0987c54cd04fdbb2aee2886ea982e13b84f2
tree1e50db035feff67a2a1c168d5b682956df3d2127
parent9ad1a31f02c3de450c650191cc40a194506807bc
Calculate the RGB-to-XYZ matrix ourselves instead of using a “magic” one from Wikipedia.

Generally we try to derive such values from first principles when possible;
this is some of the oldest code in Movit, which explains why it was forgotten.

Maybe longer-term we should move this out of ColorspaceConversionEffect into a
free function in util.h or something similar, but for now, this will do.
colorspace_conversion_effect.cpp
colorspace_conversion_effect.h
white_balance_effect.cpp