No, you just need to linearize the brightness.
Re:A 100x speedup with unsafe Python
by drjasonharrison on Tuesday May 07, 2024 @03:51PM
(#40290720)
Typically this is done by using a look-up table to convert the 8-bit gamma encoded intensities to 10-bit (or more) linear intensities. You can use the same look-up table for R, G, and B. Alpha should be linear.
Is there a better way to do it?