69 of 95
Reference Manual ATOM one SSM500
To avoid a discontinuity in the gamma-function select the brightness (offset) for the non-
linear part by the following formula:
V
out, linear max
≈
V
out, non-linear min
Brightness
non-linear
≈(
Contrast
linear
∗
threshold
+
Brightness
linear
)−
Contrast
non-inear
∗
threshold
Gamma
Example Pseudo Code to setup a REC.709 gamma curve:
float threshold
= 0.018;
float linear_contrast
= 4.5f;
float linear_brightness
= 0.0f;
float gamma
= 0.45f;
float contras
= 1.099f;
float brightness
= -0.099f;
int t = (int) round( threshold * 1000.0f );
// t = 18
int lc = (int) round( linear_contrast * 1000.0f );
// lc = 4500