2
#include "NSystemTypes.h"
3
#include "ColorFunctions.h"
7
// Converts from Gamma2.2 space to Gamma1.0 space
8
t_float Undo_Gamma_Correction(t_float c)
16
return (float)pow((c + 0.055f) / 1.055f, 2.4f);
20
t_float Do_Gamma_Correction(t_float c)
28
return (float)pow(c, 1.0f/2.4f) * 1.055f - 0.055f;
b'\\ No newline at end of file'