Function makeSRgb8Decoder

Builds a reusable exact lookup table for encoded sRGB bytes.

SRgb8Decoder!T makeSRgb8Decoder(T)() pure nothrow @nogc @safe
if (is(T == float) || is(T == double));

Setup cost is 256 scalar transfer evaluations and storage is 256 values of T. Each subsequent lookup is an indexed read with zero interpolation error. The returned value is independent and caller-owned.