public static float Gamma22ToLinear(float value) => value > 0.04045 ? NewtonPow.Pow24((value + 0.055f) / 1.055f) : value / 12.92f;
public static double Gamma22ToLinear(double value) => value > 0.04045 ? NewtonPow.Pow24((value + 0.055) / 1.055) : value / 12.92;
public static float LinearToGamma22(float value) => value > 0.003130804954 ? 1.055f * NewtonPow.Pow24Receip(value) - (0.055f - 3 / (float)(1 << 24)) : 12.92f * value;
public static double LinearToGamma22(double value) => value > 0.003130804954 ? 1.055 * NewtonPow.Pow24Receip(value) - 0.055 : 12.92 * value;