summaryrefslogtreecommitdiff
path: root/src/photos/GRaw.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-22 06:39:17 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-22 06:39:17 +0100
commit3253d99365813f2d2ffd05e10cbb8c11f53d746e (patch)
tree0ab6f04d9051dc4ada1c4f977a01308227767234 /src/photos/GRaw.vala
parente69c1b746d63bf794316669471474ab57c8cd40a (diff)
New upstream version 0.26.0upstream/0.26.0
Diffstat (limited to 'src/photos/GRaw.vala')
-rw-r--r--src/photos/GRaw.vala12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/photos/GRaw.vala b/src/photos/GRaw.vala
index ec1df8d..19b5cdc 100644
--- a/src/photos/GRaw.vala
+++ b/src/photos/GRaw.vala
@@ -63,6 +63,12 @@ public enum InterpolationQuality {
AHD = 3
}
+public enum UseCameraMatrix {
+ IGNORE = 0,
+ EMBEDDED_COLOR_PROFILE = 1,
+ EMBEDDED_COLOR_DATA = 3
+}
+
public class ProcessedImage {
private LibRaw.ProcessedImage image;
private Gdk.Pixbuf pixbuf = null;
@@ -226,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
@@ -238,7 +244,7 @@ public class Processor {
output_params->highlight = GRaw.HighlightMode.CLIP;
output_params->use_auto_wb = true;
output_params->use_camera_wb = true;
- output_params->use_camera_matrix = true;
+ output_params->use_camera_matrix = GRaw.UseCameraMatrix.EMBEDDED_COLOR_PROFILE;
output_params->output_color = GRaw.Colorspace.SRGB;
// output_profile
// camera_profile