Optimize the LRGB->RGB conversion
commitb0809e58ed8c2f8b79e23cda6d2c39de6f5bdecc
authorIlari Liusvaara <ilariliusvaara@welho.com>
Tue, 16 Feb 2021 06:48:29 +0000 (16 08:48 +0200)
committerIlari Liusvaara <ilariliusvaara@welho.com>
Tue, 16 Feb 2021 12:56:48 +0000 (16 14:56 +0200)
treec5ac76add95631776ae3c3d9a1123eed72740cd8
parent8d1889c116c2c1ddf148751f74a67e8cce7947ac
Optimize the LRGB->RGB conversion

Turns out the rescaling expression can be expressed in form A*x+B
followed by bitshift for all 217 possible values of x. And while at
it, use templates to merge most of the locolor/hicolor conversion
functions.
src/library/framebuffer-pixfmt-lrgb.cpp