diff options
Diffstat (limited to 'src/photos/GRaw.vala')
-rw-r--r-- | src/photos/GRaw.vala | 12 |
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 |