[shotwell/shotwell-0.24] libraw.vapi: Set the correct power value for the gamma curve



commit 21b34c04033d95229b1917bb82178c2ebc0dd47c
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 4 16:21:17 2017 +0100

    libraw.vapi: Set the correct power value for the gamma curve
    
    libraw_output_params_t.gamm[0] is meant to have the inverted gamma or
    power value. See:
    http://www.libraw.org/docs/API-datastruct-eng.html#libraw_output_params_t
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778174

 vapi/libraw.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/libraw.vapi b/vapi/libraw.vapi
index db4fafb..ae498ed 100644
--- a/vapi/libraw.vapi
+++ b/vapi/libraw.vapi
@@ -150,7 +150,7 @@ public struct OutputParams {
     }
     
     public void set_gamma_curve(double power, double slope) {
-        gamm[0] = power;
+        gamm[0] = 1.0 / power;
         gamm[1] = slope;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]