diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:55:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-06-25 20:55:59 +0200 |
commit | ab841afa5cb39058d9ab2cebb67cfe6369443f6e (patch) | |
tree | 64961342a79003ee865b3f9f8f41f99f09f37a2e /src/photos/GRaw.c | |
parent | 49120f48474fc8fdc2448c75d961bc238213cfac (diff) |
New upstream version 0.28.3upstream/0.28.3
Diffstat (limited to 'src/photos/GRaw.c')
-rw-r--r-- | src/photos/GRaw.c | 1346 |
1 files changed, 737 insertions, 609 deletions
diff --git a/src/photos/GRaw.c b/src/photos/GRaw.c index 304cc1a..25539cc 100644 --- a/src/photos/GRaw.c +++ b/src/photos/GRaw.c @@ -1,4 +1,4 @@ -/* GRaw.c generated by valac 0.36.6, the Vala compiler +/* GRaw.c generated by valac 0.40.4, the Vala compiler * generated from GRaw.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include <glib.h> #include <glib-object.h> #include <float.h> @@ -179,20 +180,31 @@ GType graw_interpolation_quality_get_type (void) G_GNUC_CONST; GType graw_use_camera_matrix_get_type (void) G_GNUC_CONST; gpointer graw_processed_image_ref (gpointer instance); void graw_processed_image_unref (gpointer instance); -GParamSpec* graw_param_spec_processed_image (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void graw_value_set_processed_image (GValue* value, gpointer v_object); -void graw_value_take_processed_image (GValue* value, gpointer v_object); +GParamSpec* graw_param_spec_processed_image (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void graw_value_set_processed_image (GValue* value, + gpointer v_object); +void graw_value_take_processed_image (GValue* value, + gpointer v_object); gpointer graw_value_get_processed_image (const GValue* value); GType graw_processed_image_get_type (void) G_GNUC_CONST; #define GRAW_PROCESSED_IMAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImagePrivate)) -enum { - GRAW_PROCESSED_IMAGE_DUMMY_PROPERTY -}; -GRawProcessedImage* graw_processed_image_new (libraw_data_t* proc, GError** error); -GRawProcessedImage* graw_processed_image_construct (GType object_type, libraw_data_t* proc, GError** error); -void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GError** error); -GRawProcessedImage* graw_processed_image_new_from_thumb (libraw_data_t* proc, GError** error); -GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type, libraw_data_t* proc, GError** error); +GRawProcessedImage* graw_processed_image_new (libraw_data_t* proc, + GError** error); +GRawProcessedImage* graw_processed_image_construct (GType object_type, + libraw_data_t* proc, + GError** error); +void graw_throw_exception (const gchar* caller, + enum LibRaw_errors _result_, + GError** error); +GRawProcessedImage* graw_processed_image_new_from_thumb (libraw_data_t* proc, + GError** error); +GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type, + libraw_data_t* proc, + GError** error); GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self); gushort graw_processed_image_get_width (GRawProcessedImage* self); gushort graw_processed_image_get_height (GRawProcessedImage* self); @@ -203,38 +215,60 @@ guint graw_processed_image_get_data_size (GRawProcessedImage* self); static void graw_processed_image_finalize (GRawProcessedImage * obj); gpointer graw_processor_ref (gpointer instance); void graw_processor_unref (gpointer instance); -GParamSpec* graw_param_spec_processor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void graw_value_set_processor (GValue* value, gpointer v_object); -void graw_value_take_processor (GValue* value, gpointer v_object); +GParamSpec* graw_param_spec_processor (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void graw_value_set_processor (GValue* value, + gpointer v_object); +void graw_value_take_processor (GValue* value, + gpointer v_object); gpointer graw_value_get_processor (const GValue* value); GType graw_processor_get_type (void) G_GNUC_CONST; #define GRAW_PROCESSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSOR, GRawProcessorPrivate)) -enum { - GRAW_PROCESSOR_DUMMY_PROPERTY -}; GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options); -GRawProcessor* graw_processor_construct (GType object_type, enum LibRaw_constructor_flags options); -void graw_processor_adjust_sizes_info_only (GRawProcessor* self, GError** error); +GRawProcessor* graw_processor_construct (GType object_type, + enum LibRaw_constructor_flags options); +void graw_processor_adjust_sizes_info_only (GRawProcessor* self, + GError** error); libraw_imgother_t graw_processor_get_image_other (GRawProcessor* self); libraw_iparams_t graw_processor_get_image_params (GRawProcessor* self); libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self); libraw_thumbnail_t graw_processor_get_thumbnail (GRawProcessor* self); -GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, GError** error); -GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, GError** error); -void graw_processor_open_buffer (GRawProcessor* self, guint8* buffer, int buffer_length1, GError** error); -void graw_processor_open_file (GRawProcessor* self, const gchar* filename, GError** error); -void graw_processor_process (GRawProcessor* self, GError** error); -void graw_processor_ppm_tiff_writer (GRawProcessor* self, const gchar* filename, GError** error); -void graw_processor_thumb_writer (GRawProcessor* self, const gchar* filename, GError** error); +GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, + GError** error); +GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, + GError** error); +void graw_processor_open_buffer (GRawProcessor* self, + guint8* buffer, + int buffer_length1, + GError** error); +void graw_processor_open_file (GRawProcessor* self, + const gchar* filename, + GError** error); +void graw_processor_process (GRawProcessor* self, + GError** error); +void graw_processor_ppm_tiff_writer (GRawProcessor* self, + const gchar* filename, + GError** error); +void graw_processor_thumb_writer (GRawProcessor* self, + const gchar* filename, + GError** error); void graw_processor_recycle (GRawProcessor* self); -void graw_processor_unpack (GRawProcessor* self, GError** error); -void graw_processor_unpack_thumb (GRawProcessor* self, GError** error); -void graw_processor_configure_for_rgb_display (GRawProcessor* self, gboolean half_size); +void graw_processor_unpack (GRawProcessor* self, + GError** error); +void graw_processor_unpack_thumb (GRawProcessor* self, + GError** error); +void graw_processor_configure_for_rgb_display (GRawProcessor* self, + gboolean half_size); libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self); static void graw_processor_finalize (GRawProcessor * obj); -GType graw_colorspace_get_type (void) { +GType +graw_colorspace_get_type (void) +{ static volatile gsize graw_colorspace_type_id__volatile = 0; if (g_once_init_enter (&graw_colorspace_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_COLORSPACE_RAW, "GRAW_COLORSPACE_RAW", "raw"}, {GRAW_COLORSPACE_SRGB, "GRAW_COLORSPACE_SRGB", "srgb"}, {GRAW_COLORSPACE_ADOBE, "GRAW_COLORSPACE_ADOBE", "adobe"}, {GRAW_COLORSPACE_WIDE, "GRAW_COLORSPACE_WIDE", "wide"}, {GRAW_COLORSPACE_PROPHOTO, "GRAW_COLORSPACE_PROPHOTO", "prophoto"}, {GRAW_COLORSPACE_XYZ, "GRAW_COLORSPACE_XYZ", "xyz"}, {0, NULL, NULL}}; @@ -246,12 +280,16 @@ GType graw_colorspace_get_type (void) { } -GQuark graw_exception_quark (void) { +GQuark +graw_exception_quark (void) +{ return g_quark_from_static_string ("graw_exception-quark"); } -GType graw_flip_get_type (void) { +GType +graw_flip_get_type (void) +{ static volatile gsize graw_flip_type_id__volatile = 0; if (g_once_init_enter (&graw_flip_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_FLIP_FROM_SOURCE, "GRAW_FLIP_FROM_SOURCE", "from-source"}, {GRAW_FLIP_NONE, "GRAW_FLIP_NONE", "none"}, {GRAW_FLIP_UPSIDE_DOWN, "GRAW_FLIP_UPSIDE_DOWN", "upside-down"}, {GRAW_FLIP_COUNTERCLOCKWISE, "GRAW_FLIP_COUNTERCLOCKWISE", "counterclockwise"}, {GRAW_FLIP_CLOCKWISE, "GRAW_FLIP_CLOCKWISE", "clockwise"}, {0, NULL, NULL}}; @@ -263,7 +301,9 @@ GType graw_flip_get_type (void) { } -GType graw_fuji_rotate_get_type (void) { +GType +graw_fuji_rotate_get_type (void) +{ static volatile gsize graw_fuji_rotate_type_id__volatile = 0; if (g_once_init_enter (&graw_fuji_rotate_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_FUJI_ROTATE_USE, "GRAW_FUJI_ROTATE_USE", "use"}, {GRAW_FUJI_ROTATE_DONT_USE, "GRAW_FUJI_ROTATE_DONT_USE", "dont-use"}, {0, NULL, NULL}}; @@ -275,7 +315,9 @@ GType graw_fuji_rotate_get_type (void) { } -GType graw_highlight_mode_get_type (void) { +GType +graw_highlight_mode_get_type (void) +{ static volatile gsize graw_highlight_mode_type_id__volatile = 0; if (g_once_init_enter (&graw_highlight_mode_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_HIGHLIGHT_MODE_CLIP, "GRAW_HIGHLIGHT_MODE_CLIP", "clip"}, {GRAW_HIGHLIGHT_MODE_UNCLIP, "GRAW_HIGHLIGHT_MODE_UNCLIP", "unclip"}, {GRAW_HIGHLIGHT_MODE_BLEND, "GRAW_HIGHLIGHT_MODE_BLEND", "blend"}, {GRAW_HIGHLIGHT_MODE_REBUILD, "GRAW_HIGHLIGHT_MODE_REBUILD", "rebuild"}, {0, NULL, NULL}}; @@ -287,7 +329,9 @@ GType graw_highlight_mode_get_type (void) { } -GType graw_interpolation_quality_get_type (void) { +GType +graw_interpolation_quality_get_type (void) +{ static volatile gsize graw_interpolation_quality_type_id__volatile = 0; if (g_once_init_enter (&graw_interpolation_quality_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_INTERPOLATION_QUALITY_LINEAR, "GRAW_INTERPOLATION_QUALITY_LINEAR", "linear"}, {GRAW_INTERPOLATION_QUALITY_VNG, "GRAW_INTERPOLATION_QUALITY_VNG", "vng"}, {GRAW_INTERPOLATION_QUALITY_PPG, "GRAW_INTERPOLATION_QUALITY_PPG", "ppg"}, {GRAW_INTERPOLATION_QUALITY_AHD, "GRAW_INTERPOLATION_QUALITY_AHD", "ahd"}, {0, NULL, NULL}}; @@ -299,7 +343,9 @@ GType graw_interpolation_quality_get_type (void) { } -GType graw_use_camera_matrix_get_type (void) { +GType +graw_use_camera_matrix_get_type (void) +{ static volatile gsize graw_use_camera_matrix_type_id__volatile = 0; if (g_once_init_enter (&graw_use_camera_matrix_type_id__volatile)) { static const GEnumValue values[] = {{GRAW_USE_CAMERA_MATRIX_IGNORE, "GRAW_USE_CAMERA_MATRIX_IGNORE", "ignore"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE", "embedded-color-profile"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA", "embedded-color-data"}, {0, NULL, NULL}}; @@ -311,27 +357,30 @@ GType graw_use_camera_matrix_get_type (void) { } -GRawProcessedImage* graw_processed_image_construct (GType object_type, libraw_data_t* proc, GError** error) { +GRawProcessedImage* +graw_processed_image_construct (GType object_type, + libraw_data_t* proc, + GError** error) +{ GRawProcessedImage* self = NULL; enum LibRaw_errors _result_ = 0; - libraw_data_t* _tmp0_; - libraw_processed_image_t* _tmp1_; - enum LibRaw_errors _tmp2_; + libraw_processed_image_t* _tmp0_; + enum LibRaw_errors _tmp1_; + libraw_processed_image_t* _tmp2_; libraw_processed_image_t* _tmp3_; - libraw_processed_image_t* _tmp4_; - guint8* _tmp5_; - gint _tmp5__length1; - libraw_processed_image_t* _tmp6_; - gushort _tmp7_; - libraw_processed_image_t* _tmp8_; - gushort _tmp9_; - libraw_processed_image_t* _tmp10_; - gushort _tmp11_; - libraw_processed_image_t* _tmp12_; - gushort _tmp13_; - libraw_processed_image_t* _tmp14_; - gushort _tmp15_; - GdkPixbuf* _tmp16_; + guint8* _tmp4_; + gint _tmp4__length1; + libraw_processed_image_t* _tmp5_; + gushort _tmp6_; + libraw_processed_image_t* _tmp7_; + gushort _tmp8_; + libraw_processed_image_t* _tmp9_; + gushort _tmp10_; + libraw_processed_image_t* _tmp11_; + gushort _tmp12_; + libraw_processed_image_t* _tmp13_; + gushort _tmp14_; + GdkPixbuf* _tmp15_; GError * _inner_error_ = NULL; #line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (proc != NULL, NULL); @@ -340,17 +389,15 @@ GRawProcessedImage* graw_processed_image_construct (GType object_type, libraw_da #line 113 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _result_ = LIBRAW_SUCCESS; #line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = proc; -#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_dcraw_make_mem_image (_tmp0_, &_result_); + _tmp0_ = libraw_dcraw_make_mem_image (proc, &_result_); #line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _free0 (self->priv->image); #line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->image = _tmp1_; + self->priv->image = _tmp0_; #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = _result_; + _tmp1_ = _result_; #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ProcessedImage", _tmp2_, &_inner_error_); + graw_throw_exception ("ProcessedImage", _tmp1_, &_inner_error_); #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -361,7 +408,7 @@ GRawProcessedImage* graw_processed_image_construct (GType object_type, libraw_da _graw_processed_image_unref0 (self); #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 365 "GRaw.c" +#line 412 "GRaw.c" } else { #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -369,81 +416,87 @@ GRawProcessedImage* graw_processed_image_construct (GType object_type, libraw_da g_clear_error (&_inner_error_); #line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 373 "GRaw.c" +#line 420 "GRaw.c" } } #line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = self->priv->image; + _tmp2_ = self->priv->image; #line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _vala_assert (_tmp3_ != NULL, "image != null"); + _vala_assert (_tmp2_ != NULL, "image != null"); #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = self->priv->image; + _tmp3_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = _tmp4_->data; + _tmp4_ = _tmp3_->data; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5__length1 = _tmp4_->data_size; + _tmp4__length1 = _tmp3_->data_size; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = self->priv->image; + _tmp5_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = _tmp6_->bits; + _tmp6_ = _tmp5_->bits; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = self->priv->image; + _tmp7_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = _tmp8_->width; + _tmp8_ = _tmp7_->width; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = self->priv->image; + _tmp9_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = _tmp10_->height; + _tmp10_ = _tmp9_->height; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = self->priv->image; + _tmp11_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = _tmp12_->width; + _tmp12_ = _tmp11_->width; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = self->priv->image; + _tmp13_ = self->priv->image; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = _tmp14_->colors; + _tmp14_ = _tmp13_->colors; #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = gdk_pixbuf_new_from_data (_tmp5_, GDK_COLORSPACE_RGB, FALSE, (gint) _tmp7_, (gint) _tmp9_, (gint) _tmp11_, (gint) (_tmp13_ * _tmp15_), (GdkPixbufDestroyNotify) NULL, NULL); + _tmp15_ = gdk_pixbuf_new_from_data (_tmp4_, GDK_COLORSPACE_RGB, FALSE, (gint) _tmp6_, (gint) _tmp8_, (gint) _tmp10_, (gint) (_tmp12_ * _tmp14_), (GdkPixbufDestroyNotify) NULL, NULL); #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_object_unref0 (self->priv->pixbuf); #line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->pixbuf = _tmp16_; + self->priv->pixbuf = _tmp15_; #line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return self; -#line 414 "GRaw.c" +#line 461 "GRaw.c" } -GRawProcessedImage* graw_processed_image_new (libraw_data_t* proc, GError** error) { +GRawProcessedImage* +graw_processed_image_new (libraw_data_t* proc, + GError** error) +{ #line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return graw_processed_image_construct (GRAW_TYPE_PROCESSED_IMAGE, proc, error); -#line 421 "GRaw.c" +#line 471 "GRaw.c" } -GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type, libraw_data_t* proc, GError** error) { +GRawProcessedImage* +graw_processed_image_construct_from_thumb (GType object_type, + libraw_data_t* proc, + GError** error) +{ GRawProcessedImage* self = NULL; enum LibRaw_errors _result_ = 0; - libraw_data_t* _tmp0_; - libraw_processed_image_t* _tmp1_; - enum LibRaw_errors _tmp2_; - libraw_processed_image_t* _tmp3_; - libraw_processed_image_t* _tmp17_; - GdkPixbuf* _tmp18_; + libraw_processed_image_t* _tmp0_; + enum LibRaw_errors _tmp1_; + libraw_processed_image_t* _tmp2_; + libraw_processed_image_t* _tmp16_; + GdkPixbuf* _tmp17_; + gint _tmp18_; gint _tmp19_; - gint _tmp20_; - libraw_processed_image_t* _tmp21_; - GdkPixbuf* _tmp22_; + libraw_processed_image_t* _tmp20_; + GdkPixbuf* _tmp21_; + gint _tmp22_; gint _tmp23_; - gint _tmp24_; - libraw_processed_image_t* _tmp25_; - GdkPixbuf* _tmp26_; + libraw_processed_image_t* _tmp24_; + GdkPixbuf* _tmp25_; + gint _tmp26_; gint _tmp27_; - gint _tmp28_; - libraw_processed_image_t* _tmp29_; - GdkPixbuf* _tmp30_; + libraw_processed_image_t* _tmp28_; + GdkPixbuf* _tmp29_; + gint _tmp30_; gint _tmp31_; - gint _tmp32_; GError * _inner_error_ = NULL; #line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (proc != NULL, NULL); @@ -452,17 +505,15 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type #line 125 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _result_ = LIBRAW_SUCCESS; #line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = proc; -#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_dcraw_make_mem_thumb (_tmp0_, &_result_); + _tmp0_ = libraw_dcraw_make_mem_thumb (proc, &_result_); #line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _free0 (self->priv->image); #line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->image = _tmp1_; + self->priv->image = _tmp0_; #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = _result_; + _tmp1_ = _result_; #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ProcessedImage.from_thumb", _tmp2_, &_inner_error_); + graw_throw_exception ("ProcessedImage.from_thumb", _tmp1_, &_inner_error_); #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -473,7 +524,7 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type _graw_processed_image_unref0 (self); #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 477 "GRaw.c" +#line 528 "GRaw.c" } else { #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -481,94 +532,94 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type g_clear_error (&_inner_error_); #line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 485 "GRaw.c" +#line 536 "GRaw.c" } } #line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = self->priv->image; + _tmp2_ = self->priv->image; #line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _vala_assert (_tmp3_ != NULL, "image != null"); -#line 492 "GRaw.c" + _vala_assert (_tmp2_ != NULL, "image != null"); +#line 543 "GRaw.c" { GBytes* bytes = NULL; - libraw_processed_image_t* _tmp4_; - guint8* _tmp5_; - gint _tmp5__length1; - GBytes* _tmp6_; - GdkPixbuf* _tmp7_ = NULL; - GBytes* _tmp8_; + libraw_processed_image_t* _tmp3_; + guint8* _tmp4_; + gint _tmp4__length1; + GBytes* _tmp5_; + GdkPixbuf* _tmp6_ = NULL; + GBytes* _tmp7_; + GMemoryInputStream* _tmp8_; GMemoryInputStream* _tmp9_; - GMemoryInputStream* _tmp10_; + GdkPixbuf* _tmp10_; GdkPixbuf* _tmp11_; GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; #line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = self->priv->image; + _tmp3_ = self->priv->image; #line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = _tmp4_->data; + _tmp4_ = _tmp3_->data; #line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5__length1 = _tmp4_->data_size; + _tmp4__length1 = _tmp3_->data_size; #line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = g_bytes_new_static (_tmp5_, _tmp5__length1); + _tmp5_ = g_bytes_new_static (_tmp4_, _tmp4__length1); #line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - bytes = _tmp6_; + bytes = _tmp5_; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = bytes; + _tmp7_ = bytes; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp8_); + _tmp8_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp7_); #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = _tmp9_; + _tmp9_ = _tmp8_; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); + _tmp10_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = _tmp11_; + _tmp11_ = _tmp10_; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (_tmp10_); + _g_object_unref0 (_tmp9_); #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = _tmp12_; + _tmp6_ = _tmp11_; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_bytes_unref0 (bytes); -#line 534 "GRaw.c" +#line 585 "GRaw.c" goto __catch33_g_error; } #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = _tmp7_; + _tmp12_ = _tmp6_; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = NULL; + _tmp6_ = NULL; #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_object_unref0 (self->priv->pixbuf); #line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->pixbuf = _tmp13_; + self->priv->pixbuf = _tmp12_; #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (_tmp7_); + _g_object_unref0 (_tmp6_); #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_bytes_unref0 (bytes); -#line 549 "GRaw.c" +#line 600 "GRaw.c" } goto __finally33; __catch33_g_error: { GError* err = NULL; - GError* _tmp14_; - const gchar* _tmp15_; - GError* _tmp16_; + GError* _tmp13_; + const gchar* _tmp14_; + GError* _tmp15_; #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" err = _inner_error_; #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _inner_error_ = NULL; #line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = err; + _tmp13_ = err; #line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = _tmp14_->message; + _tmp14_ = _tmp13_->message; #line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp15_); + _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_); #line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp16_; + _inner_error_ = _tmp15_; #line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_error_free0 (err); -#line 572 "GRaw.c" +#line 623 "GRaw.c" goto __finally33; } __finally33: @@ -582,7 +633,7 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type _graw_processed_image_unref0 (self); #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 586 "GRaw.c" +#line 637 "GRaw.c" } else { #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -590,63 +641,68 @@ GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type g_clear_error (&_inner_error_); #line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 594 "GRaw.c" +#line 645 "GRaw.c" } } #line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = self->priv->image; + _tmp16_ = self->priv->image; #line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = self->priv->pixbuf; + _tmp17_ = self->priv->pixbuf; #line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = gdk_pixbuf_get_width (_tmp18_); + _tmp18_ = gdk_pixbuf_get_width (_tmp17_); #line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = _tmp19_; + _tmp19_ = _tmp18_; #line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_->width = (gushort) _tmp20_; + _tmp16_->width = (gushort) _tmp19_; #line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = self->priv->image; + _tmp20_ = self->priv->image; #line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = self->priv->pixbuf; + _tmp21_ = self->priv->pixbuf; #line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = gdk_pixbuf_get_height (_tmp22_); + _tmp22_ = gdk_pixbuf_get_height (_tmp21_); #line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = _tmp23_; + _tmp23_ = _tmp22_; #line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_->height = (gushort) _tmp24_; + _tmp20_->height = (gushort) _tmp23_; #line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = self->priv->image; + _tmp24_ = self->priv->image; #line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp26_ = self->priv->pixbuf; + _tmp25_ = self->priv->pixbuf; #line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp27_ = gdk_pixbuf_get_n_channels (_tmp26_); + _tmp26_ = gdk_pixbuf_get_n_channels (_tmp25_); #line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_ = _tmp27_; + _tmp27_ = _tmp26_; #line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_->colors = (gushort) _tmp28_; + _tmp24_->colors = (gushort) _tmp27_; #line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_ = self->priv->image; + _tmp28_ = self->priv->image; #line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp30_ = self->priv->pixbuf; + _tmp29_ = self->priv->pixbuf; #line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp31_ = gdk_pixbuf_get_bits_per_sample (_tmp30_); + _tmp30_ = gdk_pixbuf_get_bits_per_sample (_tmp29_); #line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp32_ = _tmp31_; + _tmp31_ = _tmp30_; #line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_->bits = (gushort) _tmp32_; + _tmp28_->bits = (gushort) _tmp31_; #line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return self; -#line 639 "GRaw.c" +#line 690 "GRaw.c" } -GRawProcessedImage* graw_processed_image_new_from_thumb (libraw_data_t* proc, GError** error) { +GRawProcessedImage* +graw_processed_image_new_from_thumb (libraw_data_t* proc, + GError** error) +{ #line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return graw_processed_image_construct_from_thumb (GRAW_TYPE_PROCESSED_IMAGE, proc, error); -#line 646 "GRaw.c" +#line 700 "GRaw.c" } -GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self) { +GdkPixbuf* +graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self) +{ GdkPixbuf* result = NULL; GdkPixbuf* _tmp0_; GdkPixbuf* _tmp1_; @@ -660,11 +716,13 @@ GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self) { result = _tmp1_; #line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 664 "GRaw.c" +#line 720 "GRaw.c" } -gushort graw_processed_image_get_width (GRawProcessedImage* self) { +gushort +graw_processed_image_get_width (GRawProcessedImage* self) +{ gushort result; libraw_processed_image_t* _tmp0_; gushort _tmp1_; @@ -678,11 +736,13 @@ gushort graw_processed_image_get_width (GRawProcessedImage* self) { result = _tmp1_; #line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 682 "GRaw.c" +#line 740 "GRaw.c" } -gushort graw_processed_image_get_height (GRawProcessedImage* self) { +gushort +graw_processed_image_get_height (GRawProcessedImage* self) +{ gushort result; libraw_processed_image_t* _tmp0_; gushort _tmp1_; @@ -696,11 +756,13 @@ gushort graw_processed_image_get_height (GRawProcessedImage* self) { result = _tmp1_; #line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 700 "GRaw.c" +#line 760 "GRaw.c" } -gushort graw_processed_image_get_colors (GRawProcessedImage* self) { +gushort +graw_processed_image_get_colors (GRawProcessedImage* self) +{ gushort result; libraw_processed_image_t* _tmp0_; gushort _tmp1_; @@ -714,11 +776,13 @@ gushort graw_processed_image_get_colors (GRawProcessedImage* self) { result = _tmp1_; #line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 718 "GRaw.c" +#line 780 "GRaw.c" } -gushort graw_processed_image_get_bits (GRawProcessedImage* self) { +gushort +graw_processed_image_get_bits (GRawProcessedImage* self) +{ gushort result; libraw_processed_image_t* _tmp0_; gushort _tmp1_; @@ -732,11 +796,13 @@ gushort graw_processed_image_get_bits (GRawProcessedImage* self) { result = _tmp1_; #line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 736 "GRaw.c" +#line 800 "GRaw.c" } -guint8* graw_processed_image_get_data (GRawProcessedImage* self) { +guint8* +graw_processed_image_get_data (GRawProcessedImage* self) +{ guint8* result; libraw_processed_image_t* _tmp0_; guint8* _tmp1_; @@ -753,11 +819,13 @@ guint8* graw_processed_image_get_data (GRawProcessedImage* self) { result = _tmp1_; #line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 757 "GRaw.c" +#line 823 "GRaw.c" } -guint graw_processed_image_get_data_size (GRawProcessedImage* self) { +guint +graw_processed_image_get_data_size (GRawProcessedImage* self) +{ guint result; libraw_processed_image_t* _tmp0_; guint _tmp1_; @@ -771,108 +839,133 @@ guint graw_processed_image_get_data_size (GRawProcessedImage* self) { result = _tmp1_; #line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 775 "GRaw.c" +#line 843 "GRaw.c" } -static void graw_value_processed_image_init (GValue* value) { +static void +graw_value_processed_image_init (GValue* value) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 782 "GRaw.c" +#line 852 "GRaw.c" } -static void graw_value_processed_image_free_value (GValue* value) { +static void +graw_value_processed_image_free_value (GValue* value) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (value->data[0].v_pointer) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processed_image_unref (value->data[0].v_pointer); -#line 791 "GRaw.c" +#line 863 "GRaw.c" } } -static void graw_value_processed_image_copy_value (const GValue* src_value, GValue* dest_value) { +static void +graw_value_processed_image_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (src_value->data[0].v_pointer) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" dest_value->data[0].v_pointer = graw_processed_image_ref (src_value->data[0].v_pointer); -#line 801 "GRaw.c" +#line 876 "GRaw.c" } else { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" dest_value->data[0].v_pointer = NULL; -#line 805 "GRaw.c" +#line 880 "GRaw.c" } } -static gpointer graw_value_processed_image_peek_pointer (const GValue* value) { +static gpointer +graw_value_processed_image_peek_pointer (const GValue* value) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return value->data[0].v_pointer; -#line 813 "GRaw.c" +#line 890 "GRaw.c" } -static gchar* graw_value_processed_image_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +graw_value_processed_image_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (collect_values[0].v_pointer) { -#line 820 "GRaw.c" +#line 902 "GRaw.c" GRawProcessedImage * object; object = collect_values[0].v_pointer; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (object->parent_instance.g_class == NULL) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 827 "GRaw.c" +#line 909 "GRaw.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 831 "GRaw.c" +#line 913 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = graw_processed_image_ref (object); -#line 835 "GRaw.c" +#line 917 "GRaw.c" } else { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 839 "GRaw.c" +#line 921 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 843 "GRaw.c" +#line 925 "GRaw.c" } -static gchar* graw_value_processed_image_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +graw_value_processed_image_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ GRawProcessedImage ** object_p; object_p = collect_values[0].v_pointer; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (!object_p) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 854 "GRaw.c" +#line 941 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (!value->data[0].v_pointer) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = NULL; -#line 860 "GRaw.c" +#line 947 "GRaw.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = value->data[0].v_pointer; -#line 864 "GRaw.c" +#line 951 "GRaw.c" } else { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = graw_processed_image_ref (value->data[0].v_pointer); -#line 868 "GRaw.c" +#line 955 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 872 "GRaw.c" +#line 959 "GRaw.c" } -GParamSpec* graw_param_spec_processed_image (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +graw_param_spec_processed_image (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ GRawParamSpecProcessedImage* spec; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSED_IMAGE), NULL); @@ -882,20 +975,25 @@ GParamSpec* graw_param_spec_processed_image (const gchar* name, const gchar* nic G_PARAM_SPEC (spec)->value_type = object_type; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return G_PARAM_SPEC (spec); -#line 886 "GRaw.c" +#line 979 "GRaw.c" } -gpointer graw_value_get_processed_image (const GValue* value) { +gpointer +graw_value_get_processed_image (const GValue* value) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE), NULL); #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return value->data[0].v_pointer; -#line 895 "GRaw.c" +#line 990 "GRaw.c" } -void graw_value_set_processed_image (GValue* value, gpointer v_object) { +void +graw_value_set_processed_image (GValue* value, + gpointer v_object) +{ GRawProcessedImage * old; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE)); @@ -911,22 +1009,25 @@ void graw_value_set_processed_image (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processed_image_ref (value->data[0].v_pointer); -#line 915 "GRaw.c" +#line 1013 "GRaw.c" } else { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 919 "GRaw.c" +#line 1017 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (old) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processed_image_unref (old); -#line 925 "GRaw.c" +#line 1023 "GRaw.c" } } -void graw_value_take_processed_image (GValue* value, gpointer v_object) { +void +graw_value_take_processed_image (GValue* value, + gpointer v_object) +{ GRawProcessedImage * old; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE)); @@ -940,44 +1041,50 @@ void graw_value_take_processed_image (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = v_object; -#line 944 "GRaw.c" +#line 1045 "GRaw.c" } else { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 948 "GRaw.c" +#line 1049 "GRaw.c" } #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (old) { #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processed_image_unref (old); -#line 954 "GRaw.c" +#line 1055 "GRaw.c" } } -static void graw_processed_image_class_init (GRawProcessedImageClass * klass) { +static void +graw_processed_image_class_init (GRawProcessedImageClass * klass) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processed_image_parent_class = g_type_class_peek_parent (klass); #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" ((GRawProcessedImageClass *) klass)->finalize = graw_processed_image_finalize; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_type_class_add_private (klass, sizeof (GRawProcessedImagePrivate)); -#line 966 "GRaw.c" +#line 1069 "GRaw.c" } -static void graw_processed_image_instance_init (GRawProcessedImage * self) { +static void +graw_processed_image_instance_init (GRawProcessedImage * self) +{ #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self->priv = GRAW_PROCESSED_IMAGE_GET_PRIVATE (self); #line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self->priv->pixbuf = NULL; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self->ref_count = 1; -#line 977 "GRaw.c" +#line 1082 "GRaw.c" } -static void graw_processed_image_finalize (GRawProcessedImage * obj) { +static void +graw_processed_image_finalize (GRawProcessedImage * obj) +{ GRawProcessedImage * self; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage); @@ -987,11 +1094,13 @@ static void graw_processed_image_finalize (GRawProcessedImage * obj) { _free0 (self->priv->image); #line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_object_unref0 (self->priv->pixbuf); -#line 991 "GRaw.c" +#line 1098 "GRaw.c" } -GType graw_processed_image_get_type (void) { +GType +graw_processed_image_get_type (void) +{ static volatile gsize graw_processed_image_type_id__volatile = 0; if (g_once_init_enter (&graw_processed_image_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { graw_value_processed_image_init, graw_value_processed_image_free_value, graw_value_processed_image_copy_value, graw_value_processed_image_peek_pointer, "p", graw_value_processed_image_collect_value, "p", graw_value_processed_image_lcopy_value }; @@ -1005,18 +1114,22 @@ GType graw_processed_image_get_type (void) { } -gpointer graw_processed_image_ref (gpointer instance) { +gpointer +graw_processed_image_ref (gpointer instance) +{ GRawProcessedImage * self; self = instance; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_atomic_int_inc (&self->ref_count); #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return instance; -#line 1016 "GRaw.c" +#line 1127 "GRaw.c" } -void graw_processed_image_unref (gpointer instance) { +void +graw_processed_image_unref (gpointer instance) +{ GRawProcessedImage * self; self = instance; #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1025,50 +1138,52 @@ void graw_processed_image_unref (gpointer instance) { GRAW_PROCESSED_IMAGE_GET_CLASS (self)->finalize (self); #line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1029 "GRaw.c" +#line 1142 "GRaw.c" } } -GRawProcessor* graw_processor_construct (GType object_type, enum LibRaw_constructor_flags options) { +GRawProcessor* +graw_processor_construct (GType object_type, + enum LibRaw_constructor_flags options) +{ GRawProcessor* self = NULL; - enum LibRaw_constructor_flags _tmp0_; - libraw_data_t* _tmp1_; + libraw_data_t* _tmp0_; #line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self = (GRawProcessor*) g_type_create_instance (object_type); #line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = options; -#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_init (_tmp0_); + _tmp0_ = libraw_init (options); #line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _libraw_close0 (self->priv->proc); #line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->proc = _tmp1_; + self->priv->proc = _tmp0_; #line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return self; -#line 1050 "GRaw.c" +#line 1163 "GRaw.c" } -GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options) { +GRawProcessor* +graw_processor_new (enum LibRaw_constructor_flags options) +{ #line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return graw_processor_construct (GRAW_TYPE_PROCESSOR, options); -#line 1057 "GRaw.c" +#line 1172 "GRaw.c" } -void graw_processor_adjust_sizes_info_only (GRawProcessor* self, GError** error) { +void +graw_processor_adjust_sizes_info_only (GRawProcessor* self, + GError** error) +{ libraw_data_t* _tmp0_; - enum LibRaw_errors _tmp1_; GError * _inner_error_ = NULL; #line 167 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_adjust_sizes_info_only (_tmp0_); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("adjust_sizes_info_only", _tmp1_, &_inner_error_); + graw_throw_exception ("adjust_sizes_info_only", libraw_adjust_sizes_info_only (_tmp0_), &_inner_error_); #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1077,7 +1192,7 @@ void graw_processor_adjust_sizes_info_only (GRawProcessor* self, GError** error) g_propagate_error (error, _inner_error_); #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1081 "GRaw.c" +#line 1196 "GRaw.c" } else { #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1085,13 +1200,15 @@ void graw_processor_adjust_sizes_info_only (GRawProcessor* self, GError** error) g_clear_error (&_inner_error_); #line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1089 "GRaw.c" +#line 1204 "GRaw.c" } } } -static libraw_imgother_t libraw_get_image_other (libraw_data_t* self) { +static libraw_imgother_t +libraw_get_image_other (libraw_data_t* self) +{ libraw_imgother_t result = {0}; libraw_imgother_t _tmp0_; #line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi" @@ -1100,27 +1217,28 @@ static libraw_imgother_t libraw_get_image_other (libraw_data_t* self) { result = _tmp0_; #line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi" return result; -#line 1104 "GRaw.c" +#line 1221 "GRaw.c" } -libraw_imgother_t graw_processor_get_image_other (GRawProcessor* self) { +libraw_imgother_t +graw_processor_get_image_other (GRawProcessor* self) +{ libraw_imgother_t result = {0}; libraw_data_t* _tmp0_; - libraw_imgother_t _tmp1_; #line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_get_image_other (_tmp0_); -#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; + result = libraw_get_image_other (_tmp0_); #line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1120 "GRaw.c" +#line 1236 "GRaw.c" } -static libraw_iparams_t libraw_get_image_params (libraw_data_t* self) { +static libraw_iparams_t +libraw_get_image_params (libraw_data_t* self) +{ libraw_iparams_t result = {0}; libraw_iparams_t _tmp0_; #line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi" @@ -1129,27 +1247,28 @@ static libraw_iparams_t libraw_get_image_params (libraw_data_t* self) { result = _tmp0_; #line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi" return result; -#line 1133 "GRaw.c" +#line 1251 "GRaw.c" } -libraw_iparams_t graw_processor_get_image_params (GRawProcessor* self) { +libraw_iparams_t +graw_processor_get_image_params (GRawProcessor* self) +{ libraw_iparams_t result = {0}; libraw_data_t* _tmp0_; - libraw_iparams_t _tmp1_; #line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_get_image_params (_tmp0_); -#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; + result = libraw_get_image_params (_tmp0_); #line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1149 "GRaw.c" +#line 1266 "GRaw.c" } -static libraw_image_sizes_t libraw_get_sizes (libraw_data_t* self) { +static libraw_image_sizes_t +libraw_get_sizes (libraw_data_t* self) +{ libraw_image_sizes_t result = {0}; libraw_image_sizes_t _tmp0_; #line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi" @@ -1158,27 +1277,28 @@ static libraw_image_sizes_t libraw_get_sizes (libraw_data_t* self) { result = _tmp0_; #line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi" return result; -#line 1162 "GRaw.c" +#line 1281 "GRaw.c" } -libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self) { +libraw_image_sizes_t +graw_processor_get_sizes (GRawProcessor* self) +{ libraw_image_sizes_t result = {0}; libraw_data_t* _tmp0_; - libraw_image_sizes_t _tmp1_; #line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_get_sizes (_tmp0_); -#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; + result = libraw_get_sizes (_tmp0_); #line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1178 "GRaw.c" +#line 1296 "GRaw.c" } -static libraw_thumbnail_t libraw_get_thumbnail (libraw_data_t* self) { +static libraw_thumbnail_t +libraw_get_thumbnail (libraw_data_t* self) +{ libraw_thumbnail_t result = {0}; libraw_thumbnail_t _tmp0_; #line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi" @@ -1187,27 +1307,29 @@ static libraw_thumbnail_t libraw_get_thumbnail (libraw_data_t* self) { result = _tmp0_; #line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi" return result; -#line 1191 "GRaw.c" +#line 1311 "GRaw.c" } -libraw_thumbnail_t graw_processor_get_thumbnail (GRawProcessor* self) { +libraw_thumbnail_t +graw_processor_get_thumbnail (GRawProcessor* self) +{ libraw_thumbnail_t result = {0}; libraw_data_t* _tmp0_; - libraw_thumbnail_t _tmp1_; #line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_get_thumbnail (_tmp0_); -#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; + result = libraw_get_thumbnail (_tmp0_); #line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1207 "GRaw.c" +#line 1326 "GRaw.c" } -GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, GError** error) { +GRawProcessedImage* +graw_processor_make_mem_image (GRawProcessor* self, + GError** error) +{ GRawProcessedImage* result = NULL; GRawProcessedImage* _tmp0_ = NULL; libraw_data_t* _tmp1_; @@ -1230,7 +1352,7 @@ GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, GError** g_propagate_error (error, _inner_error_); #line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1234 "GRaw.c" +#line 1356 "GRaw.c" } else { #line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1238,7 +1360,7 @@ GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, GError** g_clear_error (&_inner_error_); #line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1242 "GRaw.c" +#line 1364 "GRaw.c" } } #line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1251,11 +1373,14 @@ GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, GError** _graw_processed_image_unref0 (_tmp0_); #line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1255 "GRaw.c" +#line 1377 "GRaw.c" } -GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, GError** error) { +GRawProcessedImage* +graw_processor_make_thumb_image (GRawProcessor* self, + GError** error) +{ GRawProcessedImage* result = NULL; GRawProcessedImage* _tmp0_ = NULL; libraw_data_t* _tmp1_; @@ -1278,7 +1403,7 @@ GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, GError g_propagate_error (error, _inner_error_); #line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1282 "GRaw.c" +#line 1407 "GRaw.c" } else { #line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1286,7 +1411,7 @@ GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, GError g_clear_error (&_inner_error_); #line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1290 "GRaw.c" +#line 1415 "GRaw.c" } } #line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1299,28 +1424,24 @@ GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, GError _graw_processed_image_unref0 (_tmp0_); #line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1303 "GRaw.c" +#line 1428 "GRaw.c" } -void graw_processor_open_buffer (GRawProcessor* self, guint8* buffer, int buffer_length1, GError** error) { +void +graw_processor_open_buffer (GRawProcessor* self, + guint8* buffer, + int buffer_length1, + GError** error) +{ libraw_data_t* _tmp0_; - guint8* _tmp1_; - gint _tmp1__length1; - enum LibRaw_errors _tmp2_; GError * _inner_error_ = NULL; #line 195 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = buffer; -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1__length1 = buffer_length1; -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = libraw_open_buffer (_tmp0_, _tmp1_, _tmp1__length1); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("open_buffer", _tmp2_, &_inner_error_); + graw_throw_exception ("open_buffer", libraw_open_buffer (_tmp0_, buffer, buffer_length1), &_inner_error_); #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1329,7 +1450,7 @@ void graw_processor_open_buffer (GRawProcessor* self, guint8* buffer, int buffer g_propagate_error (error, _inner_error_); #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1333 "GRaw.c" +#line 1454 "GRaw.c" } else { #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1337,16 +1458,18 @@ void graw_processor_open_buffer (GRawProcessor* self, guint8* buffer, int buffer g_clear_error (&_inner_error_); #line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1341 "GRaw.c" +#line 1462 "GRaw.c" } } } -void graw_processor_open_file (GRawProcessor* self, const gchar* filename, GError** error) { +void +graw_processor_open_file (GRawProcessor* self, + const gchar* filename, + GError** error) +{ libraw_data_t* _tmp0_; - const gchar* _tmp1_; - enum LibRaw_errors _tmp2_; GError * _inner_error_ = NULL; #line 199 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); @@ -1355,11 +1478,7 @@ void graw_processor_open_file (GRawProcessor* self, const gchar* filename, GErro #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = filename; -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = libraw_open_file (_tmp0_, _tmp1_); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("open_file", _tmp2_, &_inner_error_); + graw_throw_exception ("open_file", libraw_open_file (_tmp0_, filename), &_inner_error_); #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1368,7 +1487,7 @@ void graw_processor_open_file (GRawProcessor* self, const gchar* filename, GErro g_propagate_error (error, _inner_error_); #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1372 "GRaw.c" +#line 1491 "GRaw.c" } else { #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1376,24 +1495,24 @@ void graw_processor_open_file (GRawProcessor* self, const gchar* filename, GErro g_clear_error (&_inner_error_); #line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1380 "GRaw.c" +#line 1499 "GRaw.c" } } } -void graw_processor_process (GRawProcessor* self, GError** error) { +void +graw_processor_process (GRawProcessor* self, + GError** error) +{ libraw_data_t* _tmp0_; - enum LibRaw_errors _tmp1_; GError * _inner_error_ = NULL; #line 203 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_dcraw_process (_tmp0_); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("process", _tmp1_, &_inner_error_); + graw_throw_exception ("process", libraw_dcraw_process (_tmp0_), &_inner_error_); #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1402,7 +1521,7 @@ void graw_processor_process (GRawProcessor* self, GError** error) { g_propagate_error (error, _inner_error_); #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1406 "GRaw.c" +#line 1525 "GRaw.c" } else { #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1410,16 +1529,18 @@ void graw_processor_process (GRawProcessor* self, GError** error) { g_clear_error (&_inner_error_); #line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1414 "GRaw.c" +#line 1533 "GRaw.c" } } } -void graw_processor_ppm_tiff_writer (GRawProcessor* self, const gchar* filename, GError** error) { +void +graw_processor_ppm_tiff_writer (GRawProcessor* self, + const gchar* filename, + GError** error) +{ libraw_data_t* _tmp0_; - const gchar* _tmp1_; - enum LibRaw_errors _tmp2_; GError * _inner_error_ = NULL; #line 207 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); @@ -1428,11 +1549,7 @@ void graw_processor_ppm_tiff_writer (GRawProcessor* self, const gchar* filename, #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = filename; -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = libraw_dcraw_ppm_tiff_writer (_tmp0_, _tmp1_); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ppm_tiff_writer", _tmp2_, &_inner_error_); + graw_throw_exception ("ppm_tiff_writer", libraw_dcraw_ppm_tiff_writer (_tmp0_, filename), &_inner_error_); #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1441,7 +1558,7 @@ void graw_processor_ppm_tiff_writer (GRawProcessor* self, const gchar* filename, g_propagate_error (error, _inner_error_); #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1445 "GRaw.c" +#line 1562 "GRaw.c" } else { #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1449,16 +1566,18 @@ void graw_processor_ppm_tiff_writer (GRawProcessor* self, const gchar* filename, g_clear_error (&_inner_error_); #line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1453 "GRaw.c" +#line 1570 "GRaw.c" } } } -void graw_processor_thumb_writer (GRawProcessor* self, const gchar* filename, GError** error) { +void +graw_processor_thumb_writer (GRawProcessor* self, + const gchar* filename, + GError** error) +{ libraw_data_t* _tmp0_; - const gchar* _tmp1_; - enum LibRaw_errors _tmp2_; GError * _inner_error_ = NULL; #line 211 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); @@ -1467,11 +1586,7 @@ void graw_processor_thumb_writer (GRawProcessor* self, const gchar* filename, GE #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = filename; -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = libraw_dcraw_thumb_writer (_tmp0_, _tmp1_); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("thumb_writer", _tmp2_, &_inner_error_); + graw_throw_exception ("thumb_writer", libraw_dcraw_thumb_writer (_tmp0_, filename), &_inner_error_); #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1480,7 +1595,7 @@ void graw_processor_thumb_writer (GRawProcessor* self, const gchar* filename, GE g_propagate_error (error, _inner_error_); #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1484 "GRaw.c" +#line 1599 "GRaw.c" } else { #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1488,13 +1603,15 @@ void graw_processor_thumb_writer (GRawProcessor* self, const gchar* filename, GE g_clear_error (&_inner_error_); #line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1492 "GRaw.c" +#line 1607 "GRaw.c" } } } -void graw_processor_recycle (GRawProcessor* self) { +void +graw_processor_recycle (GRawProcessor* self) +{ libraw_data_t* _tmp0_; #line 215 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); @@ -1502,22 +1619,22 @@ void graw_processor_recycle (GRawProcessor* self) { _tmp0_ = self->priv->proc; #line 216 "/home/jens/Source/shotwell/src/photos/GRaw.vala" libraw_recycle (_tmp0_); -#line 1506 "GRaw.c" +#line 1623 "GRaw.c" } -void graw_processor_unpack (GRawProcessor* self, GError** error) { +void +graw_processor_unpack (GRawProcessor* self, + GError** error) +{ libraw_data_t* _tmp0_; - enum LibRaw_errors _tmp1_; GError * _inner_error_ = NULL; #line 219 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_unpack (_tmp0_); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("unpack", _tmp1_, &_inner_error_); + graw_throw_exception ("unpack", libraw_unpack (_tmp0_), &_inner_error_); #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1526,7 +1643,7 @@ void graw_processor_unpack (GRawProcessor* self, GError** error) { g_propagate_error (error, _inner_error_); #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1530 "GRaw.c" +#line 1647 "GRaw.c" } else { #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1534,24 +1651,24 @@ void graw_processor_unpack (GRawProcessor* self, GError** error) { g_clear_error (&_inner_error_); #line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1538 "GRaw.c" +#line 1655 "GRaw.c" } } } -void graw_processor_unpack_thumb (GRawProcessor* self, GError** error) { +void +graw_processor_unpack_thumb (GRawProcessor* self, + GError** error) +{ libraw_data_t* _tmp0_; - enum LibRaw_errors _tmp1_; GError * _inner_error_ = NULL; #line 223 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp0_ = self->priv->proc; #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = libraw_unpack_thumb (_tmp0_); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("unpack_thumb", _tmp1_, &_inner_error_); + graw_throw_exception ("unpack_thumb", libraw_unpack_thumb (_tmp0_), &_inner_error_); #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1560,7 +1677,7 @@ void graw_processor_unpack_thumb (GRawProcessor* self, GError** error) { g_propagate_error (error, _inner_error_); #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1564 "GRaw.c" +#line 1681 "GRaw.c" } else { #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -1568,67 +1685,54 @@ void graw_processor_unpack_thumb (GRawProcessor* self, GError** error) { g_clear_error (&_inner_error_); #line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 1572 "GRaw.c" +#line 1689 "GRaw.c" } } } -static void lib_raw_output_params_set_chromatic_aberrations (libraw_output_params_t* params, gdouble red_multiplier, gdouble green_multiplier) { - libraw_output_params_t* _tmp0_; +static void +lib_raw_output_params_set_chromatic_aberrations (libraw_output_params_t* params, + gdouble red_multiplier, + gdouble green_multiplier) +{ + gdouble _tmp0_; gdouble _tmp1_; - gdouble _tmp2_; - libraw_output_params_t* _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; -#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = params; -#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp1_ = red_multiplier; #line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*_tmp0_).aber[0] = _tmp1_; + (*params).aber[0] = red_multiplier; #line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp2_ = (*_tmp0_).aber[0]; -#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp3_ = params; -#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp4_ = green_multiplier; + _tmp0_ = (*params).aber[0]; #line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*_tmp3_).aber[2] = _tmp4_; + (*params).aber[2] = green_multiplier; #line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp5_ = (*_tmp3_).aber[2]; -#line 1601 "GRaw.c" + _tmp1_ = (*params).aber[2]; +#line 1710 "GRaw.c" } -static void lib_raw_output_params_set_gamma_curve (libraw_output_params_t* params, gdouble power, gdouble slope) { - libraw_output_params_t* _tmp0_; +static void +lib_raw_output_params_set_gamma_curve (libraw_output_params_t* params, + gdouble power, + gdouble slope) +{ + gdouble _tmp0_; gdouble _tmp1_; - gdouble _tmp2_; - libraw_output_params_t* _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; -#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = params; -#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp1_ = power; #line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*_tmp0_).gamm[0] = 1.0 / _tmp1_; + (*params).gamm[0] = 1.0 / power; #line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp2_ = (*_tmp0_).gamm[0]; + _tmp0_ = (*params).gamm[0]; #line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp3_ = params; + (*params).gamm[1] = slope; #line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp4_ = slope; -#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*_tmp3_).gamm[1] = _tmp4_; -#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp5_ = (*_tmp3_).gamm[1]; -#line 1628 "GRaw.c" + _tmp1_ = (*params).gamm[1]; +#line 1729 "GRaw.c" } -void graw_processor_configure_for_rgb_display (GRawProcessor* self, gboolean half_size) { +void +graw_processor_configure_for_rgb_display (GRawProcessor* self, + gboolean half_size) +{ libraw_output_params_t* _tmp0_; libraw_output_params_t* _tmp1_; libraw_output_params_t* _tmp2_; @@ -1637,7 +1741,7 @@ void graw_processor_configure_for_rgb_display (GRawProcessor* self, gboolean hal libraw_output_params_t* _tmp5_; libraw_output_params_t* _tmp6_; libraw_output_params_t* _tmp7_; - gboolean _tmp8_; + libraw_output_params_t* _tmp8_; libraw_output_params_t* _tmp9_; libraw_output_params_t* _tmp10_; libraw_output_params_t* _tmp11_; @@ -1659,7 +1763,6 @@ void graw_processor_configure_for_rgb_display (GRawProcessor* self, gboolean hal libraw_output_params_t* _tmp27_; libraw_output_params_t* _tmp28_; libraw_output_params_t* _tmp29_; - libraw_output_params_t* _tmp30_; #line 230 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (GRAW_IS_PROCESSOR (self)); #line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1685,80 +1788,80 @@ void graw_processor_configure_for_rgb_display (GRawProcessor* self, gboolean hal #line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _tmp7_ = _tmp6_; #line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = half_size; -#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp7_).half_size = _tmp8_; + (*_tmp7_).half_size = half_size; #line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = graw_processor_get_output_params (self); + _tmp8_ = graw_processor_get_output_params (self); #line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = _tmp9_; + _tmp9_ = _tmp8_; #line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp10_).highlight = (gint) GRAW_HIGHLIGHT_MODE_CLIP; + (*_tmp9_).highlight = (gint) GRAW_HIGHLIGHT_MODE_CLIP; #line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = graw_processor_get_output_params (self); + _tmp10_ = graw_processor_get_output_params (self); #line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = _tmp11_; + _tmp11_ = _tmp10_; #line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp12_).use_auto_wb = TRUE; + (*_tmp11_).use_auto_wb = TRUE; #line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = graw_processor_get_output_params (self); + _tmp12_ = graw_processor_get_output_params (self); #line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = _tmp13_; + _tmp13_ = _tmp12_; #line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp14_).use_camera_wb = TRUE; + (*_tmp13_).use_camera_wb = TRUE; #line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = graw_processor_get_output_params (self); + _tmp14_ = graw_processor_get_output_params (self); #line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = _tmp15_; + _tmp15_ = _tmp14_; #line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp16_).use_camera_matrix = (gint) GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE; + (*_tmp15_).use_camera_matrix = (gint) GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE; #line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = graw_processor_get_output_params (self); + _tmp16_ = graw_processor_get_output_params (self); #line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = _tmp17_; + _tmp17_ = _tmp16_; #line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp18_).output_color = (gint) GRAW_COLORSPACE_SRGB; + (*_tmp17_).output_color = (gint) GRAW_COLORSPACE_SRGB; #line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = graw_processor_get_output_params (self); + _tmp18_ = graw_processor_get_output_params (self); #line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = _tmp19_; + _tmp19_ = _tmp18_; #line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp20_).output_bps = 8; + (*_tmp19_).output_bps = 8; #line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = graw_processor_get_output_params (self); + _tmp20_ = graw_processor_get_output_params (self); #line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = _tmp21_; + _tmp21_ = _tmp20_; #line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp22_).user_flip = (gint) GRAW_FLIP_FROM_SOURCE; + (*_tmp21_).user_flip = (gint) GRAW_FLIP_FROM_SOURCE; #line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = graw_processor_get_output_params (self); + _tmp22_ = graw_processor_get_output_params (self); #line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = _tmp23_; + _tmp23_ = _tmp22_; #line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp24_).user_qual = (gint) GRAW_INTERPOLATION_QUALITY_PPG; + (*_tmp23_).user_qual = (gint) GRAW_INTERPOLATION_QUALITY_PPG; #line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = graw_processor_get_output_params (self); + _tmp24_ = graw_processor_get_output_params (self); #line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp26_ = _tmp25_; + _tmp25_ = _tmp24_; #line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp26_).no_auto_bright = TRUE; + (*_tmp25_).no_auto_bright = TRUE; #line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp27_ = graw_processor_get_output_params (self); + _tmp26_ = graw_processor_get_output_params (self); #line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_ = _tmp27_; + _tmp27_ = _tmp26_; #line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp28_).auto_bright_thr = 0.01f; + (*_tmp27_).auto_bright_thr = 0.01f; #line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_ = graw_processor_get_output_params (self); + _tmp28_ = graw_processor_get_output_params (self); #line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp30_ = _tmp29_; + _tmp29_ = _tmp28_; #line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp30_).use_fuji_rotate = (gint) GRAW_FUJI_ROTATE_USE; -#line 1758 "GRaw.c" + (*_tmp29_).use_fuji_rotate = (gint) GRAW_FUJI_ROTATE_USE; +#line 1859 "GRaw.c" } -libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self) { +libraw_output_params_t* +graw_processor_get_output_params (GRawProcessor* self) +{ libraw_output_params_t* result; libraw_data_t* _tmp0_; #line 156 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -1769,108 +1872,133 @@ libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self) { result = &_tmp0_->params; #line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return result; -#line 1773 "GRaw.c" +#line 1876 "GRaw.c" } -static void graw_value_processor_init (GValue* value) { +static void +graw_value_processor_init (GValue* value) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 1780 "GRaw.c" +#line 1885 "GRaw.c" } -static void graw_value_processor_free_value (GValue* value) { +static void +graw_value_processor_free_value (GValue* value) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (value->data[0].v_pointer) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processor_unref (value->data[0].v_pointer); -#line 1789 "GRaw.c" +#line 1896 "GRaw.c" } } -static void graw_value_processor_copy_value (const GValue* src_value, GValue* dest_value) { +static void +graw_value_processor_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (src_value->data[0].v_pointer) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" dest_value->data[0].v_pointer = graw_processor_ref (src_value->data[0].v_pointer); -#line 1799 "GRaw.c" +#line 1909 "GRaw.c" } else { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" dest_value->data[0].v_pointer = NULL; -#line 1803 "GRaw.c" +#line 1913 "GRaw.c" } } -static gpointer graw_value_processor_peek_pointer (const GValue* value) { +static gpointer +graw_value_processor_peek_pointer (const GValue* value) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return value->data[0].v_pointer; -#line 1811 "GRaw.c" +#line 1923 "GRaw.c" } -static gchar* graw_value_processor_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +graw_value_processor_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (collect_values[0].v_pointer) { -#line 1818 "GRaw.c" +#line 1935 "GRaw.c" GRawProcessor * object; object = collect_values[0].v_pointer; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (object->parent_instance.g_class == NULL) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1825 "GRaw.c" +#line 1942 "GRaw.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1829 "GRaw.c" +#line 1946 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = graw_processor_ref (object); -#line 1833 "GRaw.c" +#line 1950 "GRaw.c" } else { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 1837 "GRaw.c" +#line 1954 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1841 "GRaw.c" +#line 1958 "GRaw.c" } -static gchar* graw_value_processor_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +graw_value_processor_lcopy_value (const GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ GRawProcessor ** object_p; object_p = collect_values[0].v_pointer; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (!object_p) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1852 "GRaw.c" +#line 1974 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (!value->data[0].v_pointer) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = NULL; -#line 1858 "GRaw.c" +#line 1980 "GRaw.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = value->data[0].v_pointer; -#line 1862 "GRaw.c" +#line 1984 "GRaw.c" } else { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" *object_p = graw_processor_ref (value->data[0].v_pointer); -#line 1866 "GRaw.c" +#line 1988 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return NULL; -#line 1870 "GRaw.c" +#line 1992 "GRaw.c" } -GParamSpec* graw_param_spec_processor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +graw_param_spec_processor (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ GRawParamSpecProcessor* spec; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSOR), NULL); @@ -1880,20 +2008,25 @@ GParamSpec* graw_param_spec_processor (const gchar* name, const gchar* nick, con G_PARAM_SPEC (spec)->value_type = object_type; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return G_PARAM_SPEC (spec); -#line 1884 "GRaw.c" +#line 2012 "GRaw.c" } -gpointer graw_value_get_processor (const GValue* value) { +gpointer +graw_value_get_processor (const GValue* value) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR), NULL); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return value->data[0].v_pointer; -#line 1893 "GRaw.c" +#line 2023 "GRaw.c" } -void graw_value_set_processor (GValue* value, gpointer v_object) { +void +graw_value_set_processor (GValue* value, + gpointer v_object) +{ GRawProcessor * old; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR)); @@ -1909,22 +2042,25 @@ void graw_value_set_processor (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processor_ref (value->data[0].v_pointer); -#line 1913 "GRaw.c" +#line 2046 "GRaw.c" } else { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 1917 "GRaw.c" +#line 2050 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (old) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processor_unref (old); -#line 1923 "GRaw.c" +#line 2056 "GRaw.c" } } -void graw_value_take_processor (GValue* value, gpointer v_object) { +void +graw_value_take_processor (GValue* value, + gpointer v_object) +{ GRawProcessor * old; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR)); @@ -1938,42 +2074,48 @@ void graw_value_take_processor (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = v_object; -#line 1942 "GRaw.c" +#line 2078 "GRaw.c" } else { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" value->data[0].v_pointer = NULL; -#line 1946 "GRaw.c" +#line 2082 "GRaw.c" } #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (old) { #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processor_unref (old); -#line 1952 "GRaw.c" +#line 2088 "GRaw.c" } } -static void graw_processor_class_init (GRawProcessorClass * klass) { +static void +graw_processor_class_init (GRawProcessorClass * klass) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" graw_processor_parent_class = g_type_class_peek_parent (klass); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" ((GRawProcessorClass *) klass)->finalize = graw_processor_finalize; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_type_class_add_private (klass, sizeof (GRawProcessorPrivate)); -#line 1964 "GRaw.c" +#line 2102 "GRaw.c" } -static void graw_processor_instance_init (GRawProcessor * self) { +static void +graw_processor_instance_init (GRawProcessor * self) +{ #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self->priv = GRAW_PROCESSOR_GET_PRIVATE (self); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self->ref_count = 1; -#line 1973 "GRaw.c" +#line 2113 "GRaw.c" } -static void graw_processor_finalize (GRawProcessor * obj) { +static void +graw_processor_finalize (GRawProcessor * obj) +{ GRawProcessor * self; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSOR, GRawProcessor); @@ -1981,11 +2123,13 @@ static void graw_processor_finalize (GRawProcessor * obj) { g_signal_handlers_destroy (self); #line 161 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _libraw_close0 (self->priv->proc); -#line 1985 "GRaw.c" +#line 2127 "GRaw.c" } -GType graw_processor_get_type (void) { +GType +graw_processor_get_type (void) +{ static volatile gsize graw_processor_type_id__volatile = 0; if (g_once_init_enter (&graw_processor_type_id__volatile)) { static const GTypeValueTable g_define_type_value_table = { graw_value_processor_init, graw_value_processor_free_value, graw_value_processor_copy_value, graw_value_processor_peek_pointer, "p", graw_value_processor_collect_value, "p", graw_value_processor_lcopy_value }; @@ -1999,18 +2143,22 @@ GType graw_processor_get_type (void) { } -gpointer graw_processor_ref (gpointer instance) { +gpointer +graw_processor_ref (gpointer instance) +{ GRawProcessor * self; self = instance; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_atomic_int_inc (&self->ref_count); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return instance; -#line 2010 "GRaw.c" +#line 2156 "GRaw.c" } -void graw_processor_unref (gpointer instance) { +void +graw_processor_unref (gpointer instance) +{ GRawProcessor * self; self = instance; #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2019,60 +2167,46 @@ void graw_processor_unref (gpointer instance) { GRAW_PROCESSOR_GET_CLASS (self)->finalize (self); #line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_type_free_instance ((GTypeInstance *) self); -#line 2023 "GRaw.c" +#line 2171 "GRaw.c" } } -void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GError** error) { - enum LibRaw_errors _tmp0_; +void +graw_throw_exception (const gchar* caller, + enum LibRaw_errors _result_, + GError** error) +{ gchar* msg = NULL; - const gchar* _tmp7_; - enum LibRaw_errors _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - enum LibRaw_errors _tmp11_; + const gchar* _tmp2_; + gchar* _tmp3_; GError * _inner_error_ = NULL; #line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_return_if_fail (caller != NULL); #line 267 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = _result_; -#line 267 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_tmp0_ == LIBRAW_SUCCESS) { + if (_result_ == LIBRAW_SUCCESS) { #line 268 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2045 "GRaw.c" +#line 2191 "GRaw.c" } else { - enum LibRaw_errors _tmp1_; -#line 269 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _result_; #line 269 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_tmp1_ > 0) { -#line 2052 "GRaw.c" - const gchar* _tmp2_; - enum LibRaw_errors _tmp3_; - enum LibRaw_errors _tmp4_; - const gchar* _tmp5_; - GError* _tmp6_; -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = caller; -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = _result_; + if (_result_ > 0) { +#line 2195 "GRaw.c" + const gchar* _tmp0_; + GError* _tmp1_; #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = _result_; + _tmp0_ = g_strerror ((gint) _result_); #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = g_strerror ((gint) _tmp4_); + _tmp1_ = g_error_new (GRAW_EXCEPTION, GRAW_EXCEPTION_SYSTEM_ERROR, "%s: System error %d: %s", caller, (gint) _result_, _tmp0_); #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = g_error_new (GRAW_EXCEPTION, GRAW_EXCEPTION_SYSTEM_ERROR, "%s: System error %d: %s", _tmp2_, (gint) _tmp3_, _tmp5_); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp6_; + _inner_error_ = _tmp1_; #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_propagate_error (error, _inner_error_); #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2076 "GRaw.c" +#line 2210 "GRaw.c" } else { #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -2080,36 +2214,30 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2084 "GRaw.c" +#line 2218 "GRaw.c" } } } #line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = caller; -#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = _result_; -#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = libraw_strerror (_tmp8_); + _tmp2_ = libraw_strerror (_result_); #line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = g_strdup_printf ("%s: %s", _tmp7_, _tmp9_); + _tmp3_ = g_strdup_printf ("%s: %s", caller, _tmp2_); #line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - msg = _tmp10_; + msg = _tmp3_; #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = _result_; -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - switch (_tmp11_) { + switch (_result_) { #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_UNSPECIFIED_ERROR: -#line 2104 "GRaw.c" +#line 2232 "GRaw.c" { - const gchar* _tmp12_; - GError* _tmp13_; + const gchar* _tmp4_; + GError* _tmp5_; #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = msg; + _tmp4_ = msg; #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSPECIFIED, _tmp12_); + _tmp5_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSPECIFIED, _tmp4_); #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp13_; + _inner_error_ = _tmp5_; #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2118,7 +2246,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2122 "GRaw.c" +#line 2250 "GRaw.c" } else { #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2128,21 +2256,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2132 "GRaw.c" +#line 2260 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_FILE_UNSUPPORTED: -#line 2137 "GRaw.c" +#line 2265 "GRaw.c" { - const gchar* _tmp14_; - GError* _tmp15_; + const gchar* _tmp6_; + GError* _tmp7_; #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = msg; + _tmp6_ = msg; #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE, _tmp14_); + _tmp7_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE, _tmp6_); #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp15_; + _inner_error_ = _tmp7_; #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2151,7 +2279,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2155 "GRaw.c" +#line 2283 "GRaw.c" } else { #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2161,21 +2289,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2165 "GRaw.c" +#line 2293 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE: -#line 2170 "GRaw.c" +#line 2298 "GRaw.c" { - const gchar* _tmp16_; - GError* _tmp17_; + const gchar* _tmp8_; + GError* _tmp9_; #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = msg; + _tmp8_ = msg; #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NONEXISTANT_IMAGE, _tmp16_); + _tmp9_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NONEXISTANT_IMAGE, _tmp8_); #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp17_; + _inner_error_ = _tmp9_; #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2184,7 +2312,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2188 "GRaw.c" +#line 2316 "GRaw.c" } else { #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2194,21 +2322,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2198 "GRaw.c" +#line 2326 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_OUT_OF_ORDER_CALL: -#line 2203 "GRaw.c" +#line 2331 "GRaw.c" { - const gchar* _tmp18_; - GError* _tmp19_; + const gchar* _tmp10_; + GError* _tmp11_; #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = msg; + _tmp10_ = msg; #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_ORDER_CALL, _tmp18_); + _tmp11_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_ORDER_CALL, _tmp10_); #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp19_; + _inner_error_ = _tmp11_; #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2217,7 +2345,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2221 "GRaw.c" +#line 2349 "GRaw.c" } else { #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2227,21 +2355,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2231 "GRaw.c" +#line 2359 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_NO_THUMBNAIL: -#line 2236 "GRaw.c" +#line 2364 "GRaw.c" { - const gchar* _tmp20_; - GError* _tmp21_; + const gchar* _tmp12_; + GError* _tmp13_; #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = msg; + _tmp12_ = msg; #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NO_THUMBNAIL, _tmp20_); + _tmp13_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NO_THUMBNAIL, _tmp12_); #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp21_; + _inner_error_ = _tmp13_; #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2250,7 +2378,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2254 "GRaw.c" +#line 2382 "GRaw.c" } else { #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2260,21 +2388,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2264 "GRaw.c" +#line 2392 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_UNSUPPORTED_THUMBNAIL: -#line 2269 "GRaw.c" +#line 2397 "GRaw.c" { - const gchar* _tmp22_; - GError* _tmp23_; + const gchar* _tmp14_; + GError* _tmp15_; #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = msg; + _tmp14_ = msg; #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp22_); + _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_); #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp23_; + _inner_error_ = _tmp15_; #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2283,7 +2411,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2287 "GRaw.c" +#line 2415 "GRaw.c" } else { #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2293,21 +2421,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2297 "GRaw.c" +#line 2425 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_UNSUFFICIENT_MEMORY: -#line 2302 "GRaw.c" +#line 2430 "GRaw.c" { - const gchar* _tmp24_; - GError* _tmp25_; + const gchar* _tmp16_; + GError* _tmp17_; #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = msg; + _tmp16_ = msg; #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_MEMORY, _tmp24_); + _tmp17_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_MEMORY, _tmp16_); #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp25_; + _inner_error_ = _tmp17_; #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2316,7 +2444,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2320 "GRaw.c" +#line 2448 "GRaw.c" } else { #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2326,21 +2454,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2330 "GRaw.c" +#line 2458 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_DATA_ERROR: -#line 2335 "GRaw.c" +#line 2463 "GRaw.c" { - const gchar* _tmp26_; - GError* _tmp27_; + const gchar* _tmp18_; + GError* _tmp19_; #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp26_ = msg; + _tmp18_ = msg; #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp27_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_DATA_ERROR, _tmp26_); + _tmp19_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_DATA_ERROR, _tmp18_); #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp27_; + _inner_error_ = _tmp19_; #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2349,7 +2477,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2353 "GRaw.c" +#line 2481 "GRaw.c" } else { #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2359,21 +2487,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2363 "GRaw.c" +#line 2491 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_IO_ERROR: -#line 2368 "GRaw.c" +#line 2496 "GRaw.c" { - const gchar* _tmp28_; - GError* _tmp29_; + const gchar* _tmp20_; + GError* _tmp21_; #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_ = msg; + _tmp20_ = msg; #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_IO_ERROR, _tmp28_); + _tmp21_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_IO_ERROR, _tmp20_); #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp29_; + _inner_error_ = _tmp21_; #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2382,7 +2510,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2386 "GRaw.c" +#line 2514 "GRaw.c" } else { #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2392,21 +2520,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2396 "GRaw.c" +#line 2524 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_CANCELLED_BY_CALLBACK: -#line 2401 "GRaw.c" +#line 2529 "GRaw.c" { - const gchar* _tmp30_; - GError* _tmp31_; + const gchar* _tmp22_; + GError* _tmp23_; #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp30_ = msg; + _tmp22_ = msg; #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp31_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, _tmp30_); + _tmp23_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, _tmp22_); #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp31_; + _inner_error_ = _tmp23_; #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2415,7 +2543,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2419 "GRaw.c" +#line 2547 "GRaw.c" } else { #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2425,21 +2553,21 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2429 "GRaw.c" +#line 2557 "GRaw.c" } } #line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" case LIBRAW_BAD_CROP: -#line 2434 "GRaw.c" +#line 2562 "GRaw.c" { - const gchar* _tmp32_; - GError* _tmp33_; + const gchar* _tmp24_; + GError* _tmp25_; #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp32_ = msg; + _tmp24_ = msg; #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp33_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_BAD_CROP, _tmp32_); + _tmp25_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_BAD_CROP, _tmp24_); #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp33_; + _inner_error_ = _tmp25_; #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" if (_inner_error_->domain == GRAW_EXCEPTION) { #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" @@ -2448,7 +2576,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2452 "GRaw.c" +#line 2580 "GRaw.c" } else { #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); @@ -2458,7 +2586,7 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr g_clear_error (&_inner_error_); #line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2462 "GRaw.c" +#line 2590 "GRaw.c" } } default: @@ -2467,12 +2595,12 @@ void graw_throw_exception (const gchar* caller, enum LibRaw_errors _result_, GEr _g_free0 (msg); #line 309 "/home/jens/Source/shotwell/src/photos/GRaw.vala" return; -#line 2471 "GRaw.c" +#line 2599 "GRaw.c" } } #line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala" _g_free0 (msg); -#line 2476 "GRaw.c" +#line 2604 "GRaw.c" } |