summaryrefslogtreecommitdiff
path: root/src/util/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/image.c')
-rw-r--r--src/util/image.c1314
1 files changed, 606 insertions, 708 deletions
diff --git a/src/util/image.c b/src/util/image.c
index 9e1bb80..a68553e 100644
--- a/src/util/image.c
+++ b/src/util/image.c
@@ -1,4 +1,4 @@
-/* image.c generated by valac 0.34.2, the Vala compiler
+/* image.c generated by valac 0.32.1, the Vala compiler
* generated from image.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -18,55 +18,12 @@
#include <gtk/gtk.h>
#include <float.h>
#include <math.h>
-#include <gio/gio.h>
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define TYPE_DIMENSIONS (dimensions_get_type ())
typedef struct _Dimensions Dimensions;
-
-#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ())
-#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer))
-#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER))
-#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER))
-#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
-
-typedef struct _PixelTransformer PixelTransformer;
-typedef struct _PixelTransformerClass PixelTransformerClass;
-
-#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ())
-#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation))
-#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION))
-#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION))
-#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
-
-typedef struct _PixelTransformation PixelTransformation;
-typedef struct _PixelTransformationClass PixelTransformationClass;
-
-#define TYPE_RGB_TRANSFORMATION (rgb_transformation_get_type ())
-#define RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformation))
-#define RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-#define IS_RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_TRANSFORMATION))
-#define IS_RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_TRANSFORMATION))
-#define RGB_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformationClass))
-
-typedef struct _RGBTransformation RGBTransformation;
-typedef struct _RGBTransformationClass RGBTransformationClass;
-
-#define TYPE_SATURATION_TRANSFORMATION (saturation_transformation_get_type ())
-#define SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformation))
-#define SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-#define IS_SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SATURATION_TRANSFORMATION))
-#define IS_SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SATURATION_TRANSFORMATION))
-#define SATURATION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass))
-
-typedef struct _SaturationTransformation SaturationTransformation;
-typedef struct _SaturationTransformationClass SaturationTransformationClass;
-#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL)))
-#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
@@ -112,30 +69,6 @@ void context_rounded_corners (cairo_t* cx, Dimensions* dim, GdkPoint* origin, gd
gint dimensions_minor_axis (Dimensions *self);
guchar shift_color_byte (gint b, gint shift);
void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alpha);
-void dim_pixbuf (GdkPixbuf* pixbuf);
-gpointer pixel_transformer_ref (gpointer instance);
-void pixel_transformer_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_pixel_transformer (GValue* value, gpointer v_object);
-void value_take_pixel_transformer (GValue* value, gpointer v_object);
-gpointer value_get_pixel_transformer (const GValue* value);
-GType pixel_transformer_get_type (void) G_GNUC_CONST;
-PixelTransformer* pixel_transformer_new (void);
-PixelTransformer* pixel_transformer_construct (GType object_type);
-gpointer pixel_transformation_ref (gpointer instance);
-void pixel_transformation_unref (gpointer instance);
-GParamSpec* param_spec_pixel_transformation (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_pixel_transformation (GValue* value, gpointer v_object);
-void value_take_pixel_transformation (GValue* value, gpointer v_object);
-gpointer value_get_pixel_transformation (const GValue* value);
-GType pixel_transformation_get_type (void) G_GNUC_CONST;
-GType rgb_transformation_get_type (void) G_GNUC_CONST;
-GType saturation_transformation_get_type (void) G_GNUC_CONST;
-#define SATURATION_TRANSFORMATION_MIN_PARAMETER (-16.0f)
-SaturationTransformation* saturation_transformation_new (gfloat client_parameter);
-SaturationTransformation* saturation_transformation_construct (GType object_type, gfloat client_parameter);
-void pixel_transformer_attach_transformation (PixelTransformer* self, PixelTransformation* trans);
-void pixel_transformer_transform_pixbuf (PixelTransformer* self, GdkPixbuf* pixbuf, GCancellable* cancellable);
gboolean coord_in_rectangle (gint x, gint y, GdkRectangle* rect);
gboolean rectangles_equal (GdkRectangle* a, GdkRectangle* b);
gchar* rectangle_to_string (GdkRectangle* rect);
@@ -175,7 +108,7 @@ gboolean is_color_parsable (const gchar* spec) {
result = _tmp1_;
#line 119 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 179 "image.c"
+#line 112 "image.c"
}
@@ -192,7 +125,7 @@ void parse_color (const gchar* spec, GdkRGBA* result) {
*result = _tmp1_;
#line 123 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 196 "image.c"
+#line 129 "image.c"
}
@@ -210,19 +143,19 @@ void fetch_color (const gchar* spec, GdkRGBA* result) {
_tmp1_ = gdk_rgba_parse (&rgba, _tmp0_);
#line 128 "/home/jens/Source/shotwell/src/util/image.vala"
if (!_tmp1_) {
-#line 214 "image.c"
+#line 147 "image.c"
const gchar* _tmp2_ = NULL;
#line 129 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = spec;
#line 129 "/home/jens/Source/shotwell/src/util/image.vala"
g_error ("image.vala:129: Can't parse color %s", _tmp2_);
-#line 220 "image.c"
+#line 153 "image.c"
}
#line 131 "/home/jens/Source/shotwell/src/util/image.vala"
*result = rgba;
#line 131 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 226 "image.c"
+#line 159 "image.c"
}
@@ -269,14 +202,14 @@ void set_source_color_from_string (cairo_t* ctx, const gchar* spec) {
_tmp10_ = _tmp9_.alpha;
#line 136 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_set_source_rgba (_tmp2_, _tmp4_, _tmp6_, _tmp8_, _tmp10_);
-#line 273 "image.c"
+#line 206 "image.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 147 "/home/jens/Source/shotwell/src/util/image.vala"
return self ? g_object_ref (self) : NULL;
-#line 280 "image.c"
+#line 213 "image.c"
}
@@ -286,7 +219,7 @@ GdkPixbuf* get_placeholder_pixbuf (void) {
GError * _inner_error_ = NULL;
#line 144 "/home/jens/Source/shotwell/src/util/image.vala"
pixbuf = NULL;
-#line 290 "image.c"
+#line 223 "image.c"
{
GtkIconTheme* icon_theme = NULL;
GtkIconTheme* _tmp0_ = NULL;
@@ -308,7 +241,7 @@ GdkPixbuf* get_placeholder_pixbuf (void) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
_g_object_unref0 (icon_theme);
-#line 312 "image.c"
+#line 245 "image.c"
goto __catch4_g_error;
}
#line 148 "/home/jens/Source/shotwell/src/util/image.vala"
@@ -323,7 +256,7 @@ GdkPixbuf* get_placeholder_pixbuf (void) {
_g_object_unref0 (_tmp2_);
#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
_g_object_unref0 (icon_theme);
-#line 327 "image.c"
+#line 260 "image.c"
}
goto __finally4;
__catch4_g_error:
@@ -350,7 +283,7 @@ GdkPixbuf* get_placeholder_pixbuf (void) {
g_warning ("image.vala:152: Could not load icon from theme: %s", _tmp7_);
#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
_g_error_free0 (_error_);
-#line 354 "image.c"
+#line 287 "image.c"
}
__finally4:
#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
@@ -363,13 +296,13 @@ GdkPixbuf* get_placeholder_pixbuf (void) {
g_clear_error (&_inner_error_);
#line 146 "/home/jens/Source/shotwell/src/util/image.vala"
return NULL;
-#line 367 "image.c"
+#line 300 "image.c"
}
#line 155 "/home/jens/Source/shotwell/src/util/image.vala"
result = pixbuf;
#line 155 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 373 "image.c"
+#line 306 "image.c"
}
@@ -421,7 +354,7 @@ GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, gint scale, GdkInterpType interp, gb
_tmp9_ = _tmp8_.width;
#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp7_ == _tmp9_) {
-#line 425 "image.c"
+#line 358 "image.c"
Dimensions _tmp10_ = {0};
gint _tmp11_ = 0;
Dimensions _tmp12_ = {0};
@@ -436,15 +369,15 @@ GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, gint scale, GdkInterpType interp, gb
_tmp13_ = _tmp12_.height;
#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = _tmp11_ == _tmp13_;
-#line 440 "image.c"
+#line 373 "image.c"
} else {
#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = FALSE;
-#line 444 "image.c"
+#line 377 "image.c"
}
#line 161 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp5_) {
-#line 448 "image.c"
+#line 381 "image.c"
GdkPixbuf* _tmp14_ = NULL;
GdkPixbuf* _tmp15_ = NULL;
#line 162 "/home/jens/Source/shotwell/src/util/image.vala"
@@ -455,7 +388,7 @@ GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, gint scale, GdkInterpType interp, gb
result = _tmp15_;
#line 162 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 459 "image.c"
+#line 392 "image.c"
}
#line 165 "/home/jens/Source/shotwell/src/util/image.vala"
dimensions_with_min (&scaled, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp16_);
@@ -479,7 +412,7 @@ GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, gint scale, GdkInterpType interp, gb
result = _tmp23_;
#line 167 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 483 "image.c"
+#line 416 "image.c"
}
@@ -521,7 +454,7 @@ GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, Dimensions* resized, GdkInterpType
_tmp6_ = _tmp5_.width;
#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp4_ == _tmp6_) {
-#line 525 "image.c"
+#line 458 "image.c"
Dimensions _tmp7_ = {0};
gint _tmp8_ = 0;
Dimensions _tmp9_ = {0};
@@ -536,15 +469,15 @@ GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, Dimensions* resized, GdkInterpType
_tmp10_ = _tmp9_.height;
#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp8_ == _tmp10_;
-#line 540 "image.c"
+#line 473 "image.c"
} else {
#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = FALSE;
-#line 544 "image.c"
+#line 477 "image.c"
}
#line 172 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp2_) {
-#line 548 "image.c"
+#line 481 "image.c"
GdkPixbuf* _tmp11_ = NULL;
GdkPixbuf* _tmp12_ = NULL;
#line 173 "/home/jens/Source/shotwell/src/util/image.vala"
@@ -555,7 +488,7 @@ GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, Dimensions* resized, GdkInterpType
result = _tmp12_;
#line 173 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 559 "image.c"
+#line 492 "image.c"
}
#line 176 "/home/jens/Source/shotwell/src/util/image.vala"
dimensions_with_min (resized, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp13_);
@@ -579,7 +512,7 @@ GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, Dimensions* resized, GdkInterpType
result = _tmp20_;
#line 178 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 583 "image.c"
+#line 516 "image.c"
}
@@ -609,7 +542,7 @@ void draw_rounded_corners_filled (cairo_t* ctx, Dimensions* dim, GdkPoint* origi
_tmp4_ = ctx;
#line 186 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_paint (_tmp4_);
-#line 613 "image.c"
+#line 546 "image.c"
}
@@ -715,7 +648,7 @@ void context_rounded_corners (cairo_t* cx, Dimensions* dim, GdkPoint* origin, gd
_tmp21_ = cx;
#line 209 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_clip (_tmp21_);
-#line 719 "image.c"
+#line 652 "image.c"
}
@@ -734,7 +667,7 @@ inline guchar shift_color_byte (gint b, gint shift) {
result = (guchar) _tmp2_;
#line 213 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 738 "image.c"
+#line 671 "image.c"
}
@@ -773,17 +706,17 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp1_ = red;
#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp1_ >= -255) {
-#line 777 "image.c"
+#line 710 "image.c"
gint _tmp2_ = 0;
#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = red;
#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = _tmp2_ <= 255;
-#line 783 "image.c"
+#line 716 "image.c"
} else {
#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = FALSE;
-#line 787 "image.c"
+#line 720 "image.c"
}
#line 217 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp0_, "red >= -255 && red <= 255");
@@ -791,17 +724,17 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp4_ = green;
#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp4_ >= -255) {
-#line 795 "image.c"
+#line 728 "image.c"
gint _tmp5_ = 0;
#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = green;
#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = _tmp5_ <= 255;
-#line 801 "image.c"
+#line 734 "image.c"
} else {
#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = FALSE;
-#line 805 "image.c"
+#line 738 "image.c"
}
#line 218 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp3_, "green >= -255 && green <= 255");
@@ -809,17 +742,17 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp7_ = blue;
#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp7_ >= -255) {
-#line 813 "image.c"
+#line 746 "image.c"
gint _tmp8_ = 0;
#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = blue;
#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp8_ <= 255;
-#line 819 "image.c"
+#line 752 "image.c"
} else {
#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = FALSE;
-#line 823 "image.c"
+#line 756 "image.c"
}
#line 219 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp6_, "blue >= -255 && blue <= 255");
@@ -827,17 +760,17 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp10_ = alpha;
#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp10_ >= -255) {
-#line 831 "image.c"
+#line 764 "image.c"
gint _tmp11_ = 0;
#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = alpha;
#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = _tmp11_ <= 255;
-#line 837 "image.c"
+#line 770 "image.c"
} else {
#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = FALSE;
-#line 841 "image.c"
+#line 774 "image.c"
}
#line 220 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp9_, "alpha >= -255 && alpha <= 255");
@@ -887,19 +820,19 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp26_ = gdk_pixbuf_get_bits_per_sample (_tmp25_);
#line 230 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp26_ == 8, "pixbuf.get_bits_per_sample() == 8");
-#line 891 "image.c"
+#line 824 "image.c"
{
gint y = 0;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
y = 0;
-#line 896 "image.c"
+#line 829 "image.c"
{
gboolean _tmp27_ = FALSE;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp27_ = TRUE;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
while (TRUE) {
-#line 903 "image.c"
+#line 836 "image.c"
gint _tmp29_ = 0;
gint _tmp30_ = 0;
gint y_offset = 0;
@@ -907,13 +840,13 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
gint _tmp32_ = 0;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
if (!_tmp27_) {
-#line 911 "image.c"
+#line 844 "image.c"
gint _tmp28_ = 0;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp28_ = y;
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
y = _tmp28_ + 1;
-#line 917 "image.c"
+#line 850 "image.c"
}
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp27_ = FALSE;
@@ -925,7 +858,7 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
if (!(_tmp29_ < _tmp30_)) {
#line 232 "/home/jens/Source/shotwell/src/util/image.vala"
break;
-#line 929 "image.c"
+#line 862 "image.c"
}
#line 233 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp31_ = y;
@@ -933,19 +866,19 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp32_ = rowstride;
#line 233 "/home/jens/Source/shotwell/src/util/image.vala"
y_offset = _tmp31_ * _tmp32_;
-#line 937 "image.c"
+#line 870 "image.c"
{
gint x = 0;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
x = 0;
-#line 942 "image.c"
+#line 875 "image.c"
{
gboolean _tmp33_ = FALSE;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp33_ = TRUE;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
while (TRUE) {
-#line 949 "image.c"
+#line 882 "image.c"
gint _tmp35_ = 0;
gint _tmp36_ = 0;
gint offset = 0;
@@ -959,13 +892,13 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
gint _tmp68_ = 0;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
if (!_tmp33_) {
-#line 963 "image.c"
+#line 896 "image.c"
gint _tmp34_ = 0;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp34_ = x;
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
x = _tmp34_ + 1;
-#line 969 "image.c"
+#line 902 "image.c"
}
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp33_ = FALSE;
@@ -977,7 +910,7 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
if (!(_tmp35_ < _tmp36_)) {
#line 235 "/home/jens/Source/shotwell/src/util/image.vala"
break;
-#line 981 "image.c"
+#line 914 "image.c"
}
#line 236 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp37_ = y_offset;
@@ -991,7 +924,7 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp40_ = red;
#line 238 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp40_ != 0) {
-#line 995 "image.c"
+#line 928 "image.c"
guchar* _tmp41_ = NULL;
gint _tmp42_ = 0;
guchar* _tmp43_ = NULL;
@@ -1018,13 +951,13 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp41_[_tmp42_] = _tmp47_;
#line 239 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp48_ = _tmp41_[_tmp42_];
-#line 1022 "image.c"
+#line 955 "image.c"
}
#line 241 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp49_ = green;
#line 241 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp49_ != 0) {
-#line 1028 "image.c"
+#line 961 "image.c"
guchar* _tmp50_ = NULL;
gint _tmp51_ = 0;
guchar* _tmp52_ = NULL;
@@ -1051,13 +984,13 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp50_[_tmp51_ + 1] = _tmp56_;
#line 242 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp57_ = _tmp50_[_tmp51_ + 1];
-#line 1055 "image.c"
+#line 988 "image.c"
}
#line 244 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp58_ = blue;
#line 244 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp58_ != 0) {
-#line 1061 "image.c"
+#line 994 "image.c"
guchar* _tmp59_ = NULL;
gint _tmp60_ = 0;
guchar* _tmp61_ = NULL;
@@ -1084,27 +1017,27 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp59_[_tmp60_ + 2] = _tmp65_;
#line 245 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp66_ = _tmp59_[_tmp60_ + 2];
-#line 1088 "image.c"
+#line 1021 "image.c"
}
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp68_ = alpha;
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp68_ != 0) {
-#line 1094 "image.c"
+#line 1027 "image.c"
gint _tmp69_ = 0;
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp69_ = channels;
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp67_ = _tmp69_ >= 4;
-#line 1100 "image.c"
+#line 1033 "image.c"
} else {
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp67_ = FALSE;
-#line 1104 "image.c"
+#line 1037 "image.c"
}
#line 247 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp67_) {
-#line 1108 "image.c"
+#line 1041 "image.c"
guchar* _tmp70_ = NULL;
gint _tmp71_ = 0;
guchar* _tmp72_ = NULL;
@@ -1131,7 +1064,7 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
_tmp70_[_tmp71_ + 3] = _tmp76_;
#line 248 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp77_ = _tmp70_[_tmp71_ + 3];
-#line 1135 "image.c"
+#line 1068 "image.c"
}
}
}
@@ -1142,41 +1075,6 @@ void shift_colors (GdkPixbuf* pixbuf, gint red, gint green, gint blue, gint alph
}
-void dim_pixbuf (GdkPixbuf* pixbuf) {
- PixelTransformer* transformer = NULL;
- PixelTransformer* _tmp0_ = NULL;
- SaturationTransformation* sat = NULL;
- SaturationTransformation* _tmp1_ = NULL;
- GdkPixbuf* _tmp2_ = NULL;
- GdkPixbuf* _tmp3_ = NULL;
-#line 253 "/home/jens/Source/shotwell/src/util/image.vala"
- g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp0_ = pixel_transformer_new ();
-#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
- transformer = _tmp0_;
-#line 255 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp1_ = saturation_transformation_new (SATURATION_TRANSFORMATION_MIN_PARAMETER);
-#line 255 "/home/jens/Source/shotwell/src/util/image.vala"
- sat = _tmp1_;
-#line 256 "/home/jens/Source/shotwell/src/util/image.vala"
- pixel_transformer_attach_transformation (transformer, G_TYPE_CHECK_INSTANCE_CAST (sat, TYPE_PIXEL_TRANSFORMATION, PixelTransformation));
-#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp2_ = pixbuf;
-#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
- pixel_transformer_transform_pixbuf (transformer, _tmp2_, NULL);
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- _tmp3_ = pixbuf;
-#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
- shift_colors (_tmp3_, 0, 0, 0, -100);
-#line 253 "/home/jens/Source/shotwell/src/util/image.vala"
- _pixel_transformation_unref0 (sat);
-#line 253 "/home/jens/Source/shotwell/src/util/image.vala"
- _pixel_transformer_unref0 (transformer);
-#line 1177 "image.c"
-}
-
-
gboolean coord_in_rectangle (gint x, gint y, GdkRectangle* rect) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
@@ -1185,91 +1083,91 @@ gboolean coord_in_rectangle (gint x, gint y, GdkRectangle* rect) {
gint _tmp3_ = 0;
GdkRectangle _tmp4_ = {0};
gint _tmp5_ = 0;
-#line 261 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 253 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_val_if_fail (rect != NULL, FALSE);
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = x;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = _tmp4_.x;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp3_ >= _tmp5_) {
-#line 1199 "image.c"
+#line 1097 "image.c"
gint _tmp6_ = 0;
GdkRectangle _tmp7_ = {0};
gint _tmp8_ = 0;
GdkRectangle _tmp9_ = {0};
gint _tmp10_ = 0;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = x;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_.x;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = _tmp9_.width;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp6_ < (_tmp8_ + _tmp10_);
-#line 1217 "image.c"
+#line 1115 "image.c"
} else {
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = FALSE;
-#line 1221 "image.c"
+#line 1119 "image.c"
}
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp2_) {
-#line 1225 "image.c"
+#line 1123 "image.c"
gint _tmp11_ = 0;
GdkRectangle _tmp12_ = {0};
gint _tmp13_ = 0;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = y;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = _tmp12_.y;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = _tmp11_ >= _tmp13_;
-#line 1237 "image.c"
+#line 1135 "image.c"
} else {
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = FALSE;
-#line 1241 "image.c"
+#line 1139 "image.c"
}
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp1_) {
-#line 1245 "image.c"
+#line 1143 "image.c"
gint _tmp14_ = 0;
GdkRectangle _tmp15_ = {0};
gint _tmp16_ = 0;
GdkRectangle _tmp17_ = {0};
gint _tmp18_ = 0;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = y;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = _tmp15_.y;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = *rect;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = _tmp17_.height;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = _tmp14_ <= (_tmp16_ + _tmp18_);
-#line 1263 "image.c"
+#line 1161 "image.c"
} else {
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = FALSE;
-#line 1267 "image.c"
+#line 1165 "image.c"
}
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
result = _tmp0_;
-#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 254 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 1273 "image.c"
+#line 1171 "image.c"
}
@@ -1282,92 +1180,92 @@ gboolean rectangles_equal (GdkRectangle* a, GdkRectangle* b) {
gint _tmp4_ = 0;
GdkRectangle _tmp5_ = {0};
gint _tmp6_ = 0;
-#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_val_if_fail (a != NULL, FALSE);
-#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 257 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_val_if_fail (b != NULL, FALSE);
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = *a;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = _tmp3_.x;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = *b;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp5_.x;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp4_ == _tmp6_) {
-#line 1300 "image.c"
+#line 1198 "image.c"
GdkRectangle _tmp7_ = {0};
gint _tmp8_ = 0;
GdkRectangle _tmp9_ = {0};
gint _tmp10_ = 0;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = *a;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_.y;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = *b;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = _tmp9_.y;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp8_ == _tmp10_;
-#line 1315 "image.c"
+#line 1213 "image.c"
} else {
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = FALSE;
-#line 1319 "image.c"
+#line 1217 "image.c"
}
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp2_) {
-#line 1323 "image.c"
+#line 1221 "image.c"
GdkRectangle _tmp11_ = {0};
gint _tmp12_ = 0;
GdkRectangle _tmp13_ = {0};
gint _tmp14_ = 0;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = *a;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = _tmp11_.width;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = *b;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = _tmp13_.width;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = _tmp12_ == _tmp14_;
-#line 1338 "image.c"
+#line 1236 "image.c"
} else {
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = FALSE;
-#line 1342 "image.c"
+#line 1240 "image.c"
}
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp1_) {
-#line 1346 "image.c"
+#line 1244 "image.c"
GdkRectangle _tmp15_ = {0};
gint _tmp16_ = 0;
GdkRectangle _tmp17_ = {0};
gint _tmp18_ = 0;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = *a;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = _tmp15_.height;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = *b;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = _tmp17_.height;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = _tmp16_ == _tmp18_;
-#line 1361 "image.c"
+#line 1259 "image.c"
} else {
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = FALSE;
-#line 1365 "image.c"
+#line 1263 "image.c"
}
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
result = _tmp0_;
-#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 258 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 1371 "image.c"
+#line 1269 "image.c"
}
@@ -1382,31 +1280,31 @@ gchar* rectangle_to_string (GdkRectangle* rect) {
GdkRectangle _tmp6_ = {0};
gint _tmp7_ = 0;
gchar* _tmp8_ = NULL;
-#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 261 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_val_if_fail (rect != NULL, NULL);
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = *rect;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = _tmp0_.x;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = *rect;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = _tmp2_.y;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = *rect;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = _tmp4_.width;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = *rect;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = _tmp6_.height;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = g_strdup_printf ("%d,%d %dx%d", _tmp1_, _tmp3_, _tmp5_, _tmp7_);
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
result = _tmp8_;
-#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 262 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 1410 "image.c"
+#line 1308 "image.c"
}
@@ -1432,65 +1330,65 @@ void clamp_rectangle (GdkRectangle* original, Dimensions* max, GdkRectangle* res
Dimensions _tmp17_ = {0};
gint _tmp18_ = 0;
gint _tmp19_ = 0;
-#line 273 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (original != NULL);
-#line 273 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 265 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (max != NULL);
-#line 274 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 266 "/home/jens/Source/shotwell/src/util/image.vala"
memset (&rect, 0, sizeof (GdkRectangle));
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = *original;
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = _tmp0_.x;
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = *max;
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = _tmp2_.width;
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = CLAMP (_tmp1_, 0, _tmp3_);
-#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 267 "/home/jens/Source/shotwell/src/util/image.vala"
rect.x = _tmp4_;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = *original;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp5_.y;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = *max;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_.height;
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = CLAMP (_tmp6_, 0, _tmp8_);
-#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 268 "/home/jens/Source/shotwell/src/util/image.vala"
rect.y = _tmp9_;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = *original;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = _tmp10_.width;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = *max;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = _tmp12_.width;
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = CLAMP (_tmp11_, 0, _tmp13_);
-#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 269 "/home/jens/Source/shotwell/src/util/image.vala"
rect.width = _tmp14_;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = *original;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = _tmp15_.height;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = *max;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = _tmp17_.height;
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp19_ = CLAMP (_tmp16_, 0, _tmp18_);
-#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 270 "/home/jens/Source/shotwell/src/util/image.vala"
rect.height = _tmp19_;
-#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 272 "/home/jens/Source/shotwell/src/util/image.vala"
*result = rect;
-#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 272 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 1494 "image.c"
+#line 1392 "image.c"
}
@@ -1503,33 +1401,33 @@ void scale_point (GdkPoint* p, gdouble factor, GdkPoint* result) {
gdouble _tmp4_ = 0.0;
GdkPoint _tmp5_ = {0};
gint _tmp6_ = 0;
-#line 283 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 275 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (p != NULL);
-#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_.x = 0;
-#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 276 "/home/jens/Source/shotwell/src/util/image.vala"
_result_ = _tmp0_;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = factor;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = *p;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = _tmp2_.x;
-#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 277 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.x = (gint) ((_tmp1_ * _tmp3_) + 0.5);
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = factor;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = *p;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp5_.y;
-#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 278 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.y = (gint) ((_tmp4_ * _tmp6_) + 0.5);
-#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _result_;
-#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 280 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 1533 "image.c"
+#line 1431 "image.c"
}
@@ -1544,39 +1442,39 @@ void add_points (GdkPoint* p1, GdkPoint* p2, GdkPoint* result) {
gint _tmp6_ = 0;
GdkPoint _tmp7_ = {0};
gint _tmp8_ = 0;
-#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 283 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (p1 != NULL);
-#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 283 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (p2 != NULL);
-#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_.x = 0;
-#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 284 "/home/jens/Source/shotwell/src/util/image.vala"
_result_ = _tmp0_;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = *p1;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp1_.x;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = *p2;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = _tmp3_.x;
-#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 285 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.x = _tmp2_ + _tmp4_;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = *p1;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp5_.y;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = *p2;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_.y;
-#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 286 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.y = _tmp6_ + _tmp8_;
-#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _result_;
-#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 288 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 1580 "image.c"
+#line 1478 "image.c"
}
@@ -1591,39 +1489,39 @@ void subtract_points (GdkPoint* p1, GdkPoint* p2, GdkPoint* result) {
gint _tmp6_ = 0;
GdkPoint _tmp7_ = {0};
gint _tmp8_ = 0;
-#line 299 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (p1 != NULL);
-#line 299 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 291 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (p2 != NULL);
-#line 300 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_.x = 0;
-#line 300 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 292 "/home/jens/Source/shotwell/src/util/image.vala"
_result_ = _tmp0_;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = *p1;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp1_.x;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = *p2;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = _tmp3_.x;
-#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 293 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.x = _tmp2_ - _tmp4_;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = *p1;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = _tmp5_.y;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = *p2;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_.y;
-#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 294 "/home/jens/Source/shotwell/src/util/image.vala"
_result_.y = _tmp6_ - _tmp8_;
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _result_;
-#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 296 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 1627 "image.c"
+#line 1525 "image.c"
}
@@ -1632,29 +1530,29 @@ void fix_cairo_pixbuf (GdkPixbuf* pixbuf) {
GdkPixbuf* _tmp0_ = NULL;
void* _tmp1_ = NULL;
void* _tmp2_ = NULL;
-#line 308 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 300 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = pixbuf;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = gdk_pixbuf_get_pixels (_tmp0_);
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _tmp1_;
-#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 301 "/home/jens/Source/shotwell/src/util/image.vala"
gdk_pixels = _tmp2_;
-#line 1646 "image.c"
+#line 1544 "image.c"
{
gint j = 0;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
j = 0;
-#line 1651 "image.c"
+#line 1549 "image.c"
{
gboolean _tmp3_ = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = TRUE;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
while (TRUE) {
-#line 1658 "image.c"
+#line 1556 "image.c"
gint _tmp5_ = 0;
GdkPixbuf* _tmp6_ = NULL;
gint _tmp7_ = 0;
@@ -1670,49 +1568,49 @@ void fix_cairo_pixbuf (GdkPixbuf* pixbuf) {
GdkPixbuf* _tmp27_ = NULL;
gint _tmp28_ = 0;
gint _tmp29_ = 0;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
if (!_tmp3_) {
-#line 1676 "image.c"
+#line 1574 "image.c"
gint _tmp4_ = 0;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = j;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
j = _tmp4_ + 1;
-#line 1682 "image.c"
+#line 1580 "image.c"
}
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = FALSE;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = j;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = pixbuf;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = gdk_pixbuf_get_height (_tmp6_);
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_;
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
if (!(_tmp5_ < _tmp8_)) {
-#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 302 "/home/jens/Source/shotwell/src/util/image.vala"
break;
-#line 1698 "image.c"
+#line 1596 "image.c"
}
-#line 311 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 303 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = gdk_pixels;
-#line 311 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 303 "/home/jens/Source/shotwell/src/util/image.vala"
p = _tmp9_;
-#line 312 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = p;
-#line 312 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = pixbuf;
-#line 312 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = gdk_pixbuf_get_width (_tmp11_);
-#line 312 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = _tmp12_;
-#line 312 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 304 "/home/jens/Source/shotwell/src/util/image.vala"
end = _tmp10_ + (4 * _tmp13_);
-#line 314 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
while (TRUE) {
-#line 1716 "image.c"
+#line 1614 "image.c"
guchar* _tmp14_ = NULL;
guchar* _tmp15_ = NULL;
guchar tmp = '\0';
@@ -1726,57 +1624,57 @@ void fix_cairo_pixbuf (GdkPixbuf* pixbuf) {
guchar _tmp23_ = '\0';
guchar _tmp24_ = '\0';
guchar* _tmp25_ = NULL;
-#line 314 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = p;
-#line 314 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = end;
-#line 314 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
if (!(_tmp14_ < _tmp15_)) {
-#line 314 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 306 "/home/jens/Source/shotwell/src/util/image.vala"
break;
-#line 1738 "image.c"
+#line 1636 "image.c"
}
-#line 315 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = p;
-#line 315 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = _tmp16_[0];
-#line 315 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 307 "/home/jens/Source/shotwell/src/util/image.vala"
tmp = _tmp17_;
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = p;
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp19_ = p;
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp20_ = _tmp19_[2];
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_[0] = _tmp20_;
-#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 309 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp21_ = _tmp18_[0];
-#line 318 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp22_ = p;
-#line 318 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp23_ = tmp;
-#line 318 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp22_[2] = _tmp23_;
-#line 318 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 310 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp24_ = _tmp22_[2];
-#line 325 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp25_ = p;
-#line 325 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 317 "/home/jens/Source/shotwell/src/util/image.vala"
p = _tmp25_ + 4;
-#line 1768 "image.c"
+#line 1666 "image.c"
}
-#line 328 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp26_ = gdk_pixels;
-#line 328 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp27_ = pixbuf;
-#line 328 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp28_ = gdk_pixbuf_get_rowstride (_tmp27_);
-#line 328 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp29_ = _tmp28_;
-#line 328 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 320 "/home/jens/Source/shotwell/src/util/image.vala"
gdk_pixels = _tmp26_ + _tmp29_;
-#line 1780 "image.c"
+#line 1678 "image.c"
}
}
}
@@ -1812,57 +1710,57 @@ void compute_arb_rotated_size (gdouble src_width, gdouble src_height, gdouble an
gdouble _tmp13_ = 0.0;
gdouble _tmp14_ = 0.0;
gdouble _tmp15_ = 0.0;
-#line 345 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 337 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = angle;
-#line 345 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 337 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = degrees_to_radians (_tmp0_);
-#line 345 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 337 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = fabs (_tmp1_);
-#line 345 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 337 "/home/jens/Source/shotwell/src/util/image.vala"
angle = _tmp2_;
-#line 346 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 338 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = angle;
-#line 346 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 338 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp3_ <= G_PI_2, "angle <= Math.PI_2");
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = src_width;
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = angle;
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = cos (_tmp5_);
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = src_height;
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = angle;
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = sin (_tmp8_);
-#line 347 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 339 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_dest_width = (_tmp4_ * _tmp6_) + (_tmp7_ * _tmp9_);
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = src_height;
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = angle;
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = cos (_tmp11_);
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = src_width;
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = angle;
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = sin (_tmp14_);
-#line 348 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 340 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_dest_height = (_tmp10_ * _tmp12_) + (_tmp13_ * _tmp15_);
-#line 342 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
if (dest_width) {
-#line 342 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
*dest_width = _vala_dest_width;
-#line 1860 "image.c"
+#line 1758 "image.c"
}
-#line 342 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
if (dest_height) {
-#line 342 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 334 "/home/jens/Source/shotwell/src/util/image.vala"
*dest_height = _vala_dest_height;
-#line 1866 "image.c"
+#line 1764 "image.c"
}
}
@@ -1946,200 +1844,200 @@ GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf, gdouble angle) {
cairo_pattern_t* _tmp65_ = NULL;
cairo_t* _tmp66_ = NULL;
GdkPixbuf* _tmp67_ = NULL;
-#line 357 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 349 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_val_if_fail (GDK_IS_PIXBUF (source_pixbuf), NULL);
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 353 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = angle;
-#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 353 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp0_ == 0.0) {
-#line 1956 "image.c"
+#line 1854 "image.c"
GdkPixbuf* _tmp1_ = NULL;
GdkPixbuf* _tmp2_ = NULL;
-#line 362 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = source_pixbuf;
-#line 362 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = _g_object_ref0 (_tmp1_);
-#line 362 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
result = _tmp2_;
-#line 362 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 354 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 1967 "image.c"
+#line 1865 "image.c"
}
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = source_pixbuf;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = gdk_pixbuf_get_width (_tmp3_);
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = _tmp4_;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = source_pixbuf;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = gdk_pixbuf_get_height (_tmp6_);
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = _tmp7_;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = angle;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
compute_arb_rotated_size ((gdouble) _tmp5_, (gdouble) _tmp8_, _tmp9_, &_tmp10_, &_tmp11_);
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
x_tmp = _tmp10_;
-#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 361 "/home/jens/Source/shotwell/src/util/image.vala"
y_tmp = _tmp11_;
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = x_tmp;
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = round (_tmp12_);
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = y_tmp;
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = round (_tmp14_);
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, (gint) _tmp13_, (gint) _tmp15_);
-#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 364 "/home/jens/Source/shotwell/src/util/image.vala"
dest_pixbuf = _tmp16_;
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = source_pixbuf;
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp19_ = gdk_pixbuf_get_has_alpha (_tmp18_);
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp20_ = _tmp19_;
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp20_) {
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = CAIRO_FORMAT_ARGB32;
-#line 2011 "image.c"
+#line 1909 "image.c"
} else {
-#line 377 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 369 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = CAIRO_FORMAT_RGB24;
-#line 2015 "image.c"
+#line 1913 "image.c"
}
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp21_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp22_ = gdk_pixbuf_get_pixels (_tmp21_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp23_ = _tmp22_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp24_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp25_ = gdk_pixbuf_get_width (_tmp24_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp26_ = _tmp25_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp27_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp28_ = gdk_pixbuf_get_height (_tmp27_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp29_ = _tmp28_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp30_ = dest_pixbuf;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp31_ = gdk_pixbuf_get_rowstride (_tmp30_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp32_ = _tmp31_;
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp33_ = cairo_image_surface_create_for_data ((guchar*) _tmp23_, _tmp17_, _tmp26_, _tmp29_, _tmp32_);
-#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 367 "/home/jens/Source/shotwell/src/util/image.vala"
surface = _tmp33_;
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp34_ = surface;
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp35_ = cairo_create (_tmp34_);
-#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 372 "/home/jens/Source/shotwell/src/util/image.vala"
context = _tmp35_;
-#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 374 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp36_ = context;
-#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 374 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_set_source_rgb (_tmp36_, (gdouble) 0, (gdouble) 0, (gdouble) 0);
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp37_ = context;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp38_ = dest_pixbuf;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp39_ = gdk_pixbuf_get_width (_tmp38_);
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp40_ = _tmp39_;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp41_ = dest_pixbuf;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp42_ = gdk_pixbuf_get_height (_tmp41_);
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp43_ = _tmp42_;
-#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 375 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_rectangle (_tmp37_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp40_, (gdouble) _tmp43_);
-#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 376 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp44_ = context;
-#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 376 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_fill (_tmp44_);
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp45_ = context;
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp46_ = dest_pixbuf;
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp47_ = gdk_pixbuf_get_width (_tmp46_);
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp48_ = _tmp47_;
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp49_ = dest_pixbuf;
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp50_ = gdk_pixbuf_get_height (_tmp49_);
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp51_ = _tmp50_;
-#line 386 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 378 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_translate (_tmp45_, (gdouble) (_tmp48_ / 2), (gdouble) (_tmp51_ / 2));
-#line 387 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp52_ = context;
-#line 387 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp53_ = angle;
-#line 387 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp54_ = degrees_to_radians (_tmp53_);
-#line 387 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 379 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_rotate (_tmp52_, _tmp54_);
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp55_ = context;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp56_ = source_pixbuf;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp57_ = gdk_pixbuf_get_width (_tmp56_);
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp58_ = _tmp57_;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp59_ = source_pixbuf;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp60_ = gdk_pixbuf_get_height (_tmp59_);
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp61_ = _tmp60_;
-#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 380 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_translate (_tmp55_, (gdouble) ((-_tmp58_) / 2), (gdouble) ((-_tmp61_) / 2));
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp62_ = context;
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp63_ = source_pixbuf;
-#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 382 "/home/jens/Source/shotwell/src/util/image.vala"
gdk_cairo_set_source_pixbuf (_tmp62_, _tmp63_, (gdouble) 0, (gdouble) 0);
-#line 391 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp64_ = context;
-#line 391 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp65_ = cairo_get_source (_tmp64_);
-#line 391 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 383 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_pattern_set_filter (_tmp65_, CAIRO_FILTER_BEST);
-#line 392 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp66_ = context;
-#line 392 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 384 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_paint (_tmp66_);
-#line 396 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp67_ = dest_pixbuf;
-#line 396 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 388 "/home/jens/Source/shotwell/src/util/image.vala"
fix_cairo_pixbuf (_tmp67_);
-#line 398 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
result = dest_pixbuf;
-#line 398 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
_cairo_destroy0 (context);
-#line 398 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
_cairo_surface_destroy0 (surface);
-#line 398 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 390 "/home/jens/Source/shotwell/src/util/image.vala"
return result;
-#line 2143 "image.c"
+#line 2041 "image.c"
}
@@ -2182,93 +2080,93 @@ void rotate_point_arb (GdkPoint* source_point, gint img_w, gint img_h, gdouble a
gdouble _tmp19_ = 0.0;
gdouble _tmp20_ = 0.0;
GdkPoint _tmp21_ = {0};
-#line 414 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 406 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (source_point != NULL);
-#line 417 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 409 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = angle;
-#line 417 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 409 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp0_ == 0.0) {
-#line 2192 "image.c"
+#line 2090 "image.c"
GdkPoint _tmp1_ = {0};
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = *source_point;
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _tmp1_;
-#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 411 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 2200 "image.c"
+#line 2098 "image.c"
}
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = img_w;
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = img_h;
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_ = angle;
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
compute_arb_rotated_size ((gdouble) _tmp2_, (gdouble) _tmp3_, _tmp4_, &_tmp5_, &_tmp6_);
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
dest_width = _tmp5_;
-#line 424 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 416 "/home/jens/Source/shotwell/src/util/image.vala"
dest_height = _tmp6_;
-#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 418 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_matrix_init_identity (&matrix);
-#line 427 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = dest_width;
-#line 427 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp8_ = dest_height;
-#line 427 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 419 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_matrix_translate (&matrix, _tmp7_ / 2, _tmp8_ / 2);
-#line 428 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 420 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = angle;
-#line 428 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 420 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = degrees_to_radians (_tmp9_);
-#line 428 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 420 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_matrix_rotate (&matrix, _tmp10_);
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 421 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = img_w;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 421 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = img_h;
-#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 421 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_matrix_translate (&matrix, (gdouble) ((-_tmp11_) / 2), (gdouble) ((-_tmp12_) / 2));
-#line 430 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 422 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_ = invert;
-#line 430 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 422 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp13_) {
-#line 2238 "image.c"
+#line 2136 "image.c"
cairo_status_t _tmp14_ = 0;
-#line 431 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 423 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = cairo_matrix_invert (&matrix);
-#line 431 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 423 "/home/jens/Source/shotwell/src/util/image.vala"
_vala_assert (_tmp14_ == CAIRO_STATUS_SUCCESS, "matrix.invert() == Cairo.Status.SUCCESS");
-#line 2244 "image.c"
+#line 2142 "image.c"
}
-#line 433 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = *source_point;
-#line 433 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = _tmp15_.x;
-#line 433 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 425 "/home/jens/Source/shotwell/src/util/image.vala"
dest_x = (gdouble) _tmp16_;
-#line 434 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp17_ = *source_point;
-#line 434 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = _tmp17_.y;
-#line 434 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 426 "/home/jens/Source/shotwell/src/util/image.vala"
dest_y = (gdouble) _tmp18_;
-#line 435 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 427 "/home/jens/Source/shotwell/src/util/image.vala"
cairo_matrix_transform_point (&matrix, &dest_x, &dest_y);
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp19_ = dest_x;
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp20_ = dest_y;
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp21_.x = (gint) _tmp19_;
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp21_.y = (gint) _tmp20_;
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _tmp21_;
-#line 437 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 429 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 2272 "image.c"
+#line 2170 "image.c"
}
@@ -2291,23 +2189,23 @@ void derotate_point_arb (GdkPoint* source_point, gint img_w, gint img_h, gdouble
gint _tmp2_ = 0;
gdouble _tmp3_ = 0.0;
GdkPoint _tmp4_ = {0};
-#line 453 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 445 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (source_point != NULL);
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = *source_point;
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = img_w;
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = img_h;
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = angle;
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
rotate_point_arb (&_tmp0_, _tmp1_, _tmp2_, _tmp3_, TRUE, &_tmp4_);
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _tmp4_;
-#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 446 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 2311 "image.c"
+#line 2209 "image.c"
}
@@ -2391,263 +2289,263 @@ void clamp_inside_rotated_image (Box* src, gint img_w, gint img_h, gdouble angle
gint _tmp73_ = 0;
Box _tmp78_ = {0};
gboolean _tmp79_ = FALSE;
-#line 459 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 451 "/home/jens/Source/shotwell/src/util/image.vala"
g_return_if_fail (src != NULL);
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp0_ = *src;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp1_ = _tmp0_.left;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp2_ = *src;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp3_ = _tmp2_.top;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_.x = _tmp1_;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp4_.y = _tmp3_;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp5_ = img_w;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp6_ = img_h;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp7_ = angle_deg;
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
derotate_point_arb (&_tmp4_, _tmp5_, _tmp6_, _tmp7_, &_tmp8_);
-#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 454 "/home/jens/Source/shotwell/src/util/image.vala"
top_left = _tmp8_;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp9_ = *src;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp10_ = _tmp9_.right;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp11_ = *src;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp12_ = _tmp11_.top;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_.x = _tmp10_;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp13_.y = _tmp12_;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp14_ = img_w;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp15_ = img_h;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp16_ = angle_deg;
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
derotate_point_arb (&_tmp13_, _tmp14_, _tmp15_, _tmp16_, &_tmp17_);
-#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 455 "/home/jens/Source/shotwell/src/util/image.vala"
top_right = _tmp17_;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp18_ = *src;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp19_ = _tmp18_.left;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp20_ = *src;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp21_ = _tmp20_.bottom;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp22_.x = _tmp19_;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp22_.y = _tmp21_;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp23_ = img_w;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp24_ = img_h;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp25_ = angle_deg;
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
derotate_point_arb (&_tmp22_, _tmp23_, _tmp24_, _tmp25_, &_tmp26_);
-#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 456 "/home/jens/Source/shotwell/src/util/image.vala"
bottom_left = _tmp26_;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp27_ = *src;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp28_ = _tmp27_.right;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp29_ = *src;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp30_ = _tmp29_.bottom;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp31_.x = _tmp28_;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp31_.y = _tmp30_;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp32_ = img_w;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp33_ = img_h;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp34_ = angle_deg;
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
derotate_point_arb (&_tmp31_, _tmp32_, _tmp33_, _tmp34_, &_tmp35_);
-#line 465 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 457 "/home/jens/Source/shotwell/src/util/image.vala"
bottom_right = _tmp35_;
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 459 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp36_ = angle_deg;
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 459 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp37_ = degrees_to_radians (_tmp36_);
-#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 459 "/home/jens/Source/shotwell/src/util/image.vala"
angle = _tmp37_;
-#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
top_offset = 0;
-#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
bottom_offset = 0;
-#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
left_offset = 0;
-#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 460 "/home/jens/Source/shotwell/src/util/image.vala"
right_offset = 0;
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp38_ = top_left;
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp39_ = _tmp38_.y;
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp40_ = top_right;
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp41_ = _tmp40_.y;
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp42_ = MIN (_tmp39_, _tmp41_);
-#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 462 "/home/jens/Source/shotwell/src/util/image.vala"
top = _tmp42_;
-#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp43_ = top;
-#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 463 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp43_ < 0) {
-#line 2515 "image.c"
+#line 2413 "image.c"
gint _tmp44_ = 0;
gdouble _tmp45_ = 0.0;
gdouble _tmp46_ = 0.0;
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp44_ = top;
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp45_ = angle;
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp46_ = cos (_tmp45_);
-#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 464 "/home/jens/Source/shotwell/src/util/image.vala"
top_offset = (gint) ((0 - _tmp44_) * _tmp46_);
-#line 2527 "image.c"
+#line 2425 "image.c"
}
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp47_ = bottom_left;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp48_ = _tmp47_.y;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp49_ = bottom_right;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp50_ = _tmp49_.y;
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp51_ = MAX (_tmp48_, _tmp50_);
-#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 466 "/home/jens/Source/shotwell/src/util/image.vala"
bottom = _tmp51_;
-#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp52_ = bottom;
-#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp53_ = img_h;
-#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 467 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp52_ > _tmp53_) {
-#line 2547 "image.c"
+#line 2445 "image.c"
gint _tmp54_ = 0;
gint _tmp55_ = 0;
gdouble _tmp56_ = 0.0;
gdouble _tmp57_ = 0.0;
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp54_ = img_h;
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp55_ = bottom;
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp56_ = angle;
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp57_ = cos (_tmp56_);
-#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 468 "/home/jens/Source/shotwell/src/util/image.vala"
bottom_offset = (gint) ((_tmp54_ - _tmp55_) * _tmp57_);
-#line 2562 "image.c"
+#line 2460 "image.c"
}
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp58_ = top_left;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp59_ = _tmp58_.x;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp60_ = bottom_left;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp61_ = _tmp60_.x;
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp62_ = MIN (_tmp59_, _tmp61_);
-#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 470 "/home/jens/Source/shotwell/src/util/image.vala"
left = _tmp62_;
-#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp63_ = left;
-#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 471 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp63_ < 0) {
-#line 2580 "image.c"
+#line 2478 "image.c"
gint _tmp64_ = 0;
gdouble _tmp65_ = 0.0;
gdouble _tmp66_ = 0.0;
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp64_ = left;
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp65_ = angle;
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp66_ = cos (_tmp65_);
-#line 480 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 472 "/home/jens/Source/shotwell/src/util/image.vala"
left_offset = (gint) ((0 - _tmp64_) * _tmp66_);
-#line 2592 "image.c"
+#line 2490 "image.c"
}
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp67_ = top_right;
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp68_ = _tmp67_.x;
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp69_ = bottom_right;
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp70_ = _tmp69_.x;
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp71_ = MAX (_tmp68_, _tmp70_);
-#line 482 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 474 "/home/jens/Source/shotwell/src/util/image.vala"
right = _tmp71_;
-#line 483 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp72_ = right;
-#line 483 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp73_ = img_w;
-#line 483 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 475 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp72_ > _tmp73_) {
-#line 2612 "image.c"
+#line 2510 "image.c"
gint _tmp74_ = 0;
gint _tmp75_ = 0;
gdouble _tmp76_ = 0.0;
gdouble _tmp77_ = 0.0;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp74_ = img_w;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp75_ = right;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp76_ = angle;
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp77_ = cos (_tmp76_);
-#line 484 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 476 "/home/jens/Source/shotwell/src/util/image.vala"
right_offset = (gint) ((_tmp74_ - _tmp75_) * _tmp77_);
-#line 2627 "image.c"
+#line 2525 "image.c"
}
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp79_ = preserve_geom;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
if (_tmp79_) {
-#line 2633 "image.c"
+#line 2531 "image.c"
gint _tmp80_ = 0;
gint _tmp81_ = 0;
gint _tmp82_ = 0;
gint _tmp83_ = 0;
Box _tmp84_ = {0};
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp80_ = left_offset;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp81_ = right_offset;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp82_ = top_offset;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp83_ = bottom_offset;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
box_get_offset (src, _tmp80_ + _tmp81_, _tmp82_ + _tmp83_, &_tmp84_);
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp78_ = _tmp84_;
-#line 2651 "image.c"
+#line 2549 "image.c"
} else {
Box _tmp85_ = {0};
gint _tmp86_ = 0;
@@ -2661,39 +2559,39 @@ void clamp_inside_rotated_image (Box* src, gint img_w, gint img_h, gdouble angle
Box _tmp94_ = {0};
gint _tmp95_ = 0;
gint _tmp96_ = 0;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp85_ = *src;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp86_ = _tmp85_.left;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp87_ = left_offset;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp88_ = *src;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp89_ = _tmp88_.top;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp90_ = top_offset;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp91_ = *src;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp92_ = _tmp91_.right;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp93_ = right_offset;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp94_ = *src;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp95_ = _tmp94_.bottom;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
_tmp96_ = bottom_offset;
-#line 487 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 479 "/home/jens/Source/shotwell/src/util/image.vala"
box_init (&_tmp78_, _tmp86_ + _tmp87_, _tmp89_ + _tmp90_, _tmp92_ + _tmp93_, _tmp95_ + _tmp96_);
-#line 2691 "image.c"
+#line 2589 "image.c"
}
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
*result = _tmp78_;
-#line 486 "/home/jens/Source/shotwell/src/util/image.vala"
+#line 478 "/home/jens/Source/shotwell/src/util/image.vala"
return;
-#line 2697 "image.c"
+#line 2595 "image.c"
}