[shotwell/shotwell-0.24] libraw.vapi: Fix setting of parameters on OutputParams
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.24] libraw.vapi: Fix setting of parameters on OutputParams
- Date: Mon, 6 Feb 2017 18:55:09 +0000 (UTC)
commit 25c62d236e50ec0d0bdf2ca561f0be2213e0b625
Author: Jens Georg <mail jensge org>
Date: Mon Feb 6 19:52:49 2017 +0100
libraw.vapi: Fix setting of parameters on OutputParams
Signed-off-by: Jens Georg <mail jensge org>
https://bugzilla.gnome.org/show_bug.cgi?id=778174
src/photos/GRaw.vala | 4 ++--
vapi/libraw.vapi | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/photos/GRaw.vala b/src/photos/GRaw.vala
index fc43760..19b5cdc 100644
--- a/src/photos/GRaw.vala
+++ b/src/photos/GRaw.vala
@@ -232,8 +232,8 @@ public class Processor {
// These fields are set to reasonable defaults by libraw.
// greybox
- output_params->set_chromatic_aberrations(1.0, 1.0);
- output_params->set_gamma_curve(GRaw.SRGB_POWER, GRaw.SRGB_SLOPE);
+ LibRaw.OutputParams.set_chromatic_aberrations(output_params, 1.0, 1.0);
+ LibRaw.OutputParams.set_gamma_curve(output_params, GRaw.SRGB_POWER, GRaw.SRGB_SLOPE);
// user_mul
// shot_select
// multi_out
diff --git a/vapi/libraw.vapi b/vapi/libraw.vapi
index 3caf3b2..874ebed 100644
--- a/vapi/libraw.vapi
+++ b/vapi/libraw.vapi
@@ -144,14 +144,14 @@ public struct OutputParams {
public float exp_shift;
public float exp_preser;
- public void set_chromatic_aberrations(double red_multiplier, double green_multiplier) {
- aber[0] = red_multiplier;
- aber[2] = green_multiplier;
+ public static void set_chromatic_aberrations(OutputParams* params, double red_multiplier, double
green_multiplier) {
+ params->aber[0] = red_multiplier;
+ params->aber[2] = green_multiplier;
}
- public void set_gamma_curve(double power, double slope) {
- gamm[0] = 1.0 / power;
- gamm[1] = slope;
+ public static void set_gamma_curve(OutputParams* params, double power, double slope) {
+ params->gamm[0] = 1.0 / power;
+ params->gamm[1] = slope;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]