aboutsummaryrefslogtreecommitdiffstats
path: root/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'gamma.c')
-rw-r--r--gamma.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gamma.c b/gamma.c
index d15f3b6..6cee36a 100644
--- a/gamma.c
+++ b/gamma.c
@@ -11,8 +11,9 @@
* @param contrast Output parameter for the contrast
* @param brightness Output parameter for the brightness
*/
-void gamma_analyse(size_t stops, const uint16_t *restrict ramp, double *restrict gamma,
- double *restrict contrast, double *restrict brightness)
+void
+gamma_analyse(size_t stops, const uint16_t *restrict ramp, double *restrict gamma,
+ double *restrict contrast, double *restrict brightness)
{
double min, middle, max;
*brightness = min = (double)(ramp[0]) / (double)0xFFFF;
@@ -38,7 +39,8 @@ void gamma_analyse(size_t stops, const uint16_t *restrict ramp, double *restrict
* @param contrast The contrast
* @param brightness The brightness
*/
-void gamma_generate(size_t stops, uint16_t *restrict ramp, double gamma, double contrast, double brightness)
+void
+gamma_generate(size_t stops, uint16_t *restrict ramp, double gamma, double contrast, double brightness)
{
double diff = contrast - brightness;
double gamma_ = (double)1 / gamma;