hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.7k stars 1.17k forks source link

CIE1931 profile #1540

Closed levitvas closed 1 year ago

levitvas commented 1 year ago

Hello, could someone please point me the file/section where the RGB is getting converted to the CIE1931 profile. Much appreciated.

hzeller commented 1 year ago

https://github.com/hzeller/rpi-rgb-led-matrix/blob/6e53ad187113ac2856c314dd563ce17c08bfb240/lib/framebuffer.cc#L625-L644 maps the incoming color using a look-up table that is pre-computed here https://github.com/hzeller/rpi-rgb-led-matrix/blob/6e53ad187113ac2856c314dd563ce17c08bfb240/lib/framebuffer.cc#L591-L609

levitvas commented 1 year ago

Thank you for such a quick answer!