Author: akv
Date: 2012-08-25 01:54:25 +0200 (Sat, 25 Aug 2012)
New Revision: 4262

Modified:
   branches/4175-enfuse/src/rs-enfuse.c
Log:
Using variables for extending values - extending 1 by 2.0 when using multiple 
photos and 3 by 1.0 when using a single photo.

Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c        2012-08-24 23:50:05 UTC (rev 
4261)
+++ branches/4175-enfuse/src/rs-enfuse.c        2012-08-24 23:54:25 UTC (rev 
4262)
@@ -276,6 +276,8 @@
   gchar *align_options = NULL;
   gchar *enfuse_options = g_strdup("-d 16");
   gboolean extend = TRUE;
+  gint extend_num = 1;
+  gfloat extend_step = 2.0;
   gint boundingbox = 0;
 
   gchar *first = NULL;
@@ -283,7 +285,11 @@
   RS_PROGRESS *progress = gui_progress_new("Enfusing...", 4);
 
   if (num_selected == 1)
-    extend = TRUE;
+    {
+      extend = TRUE;
+      extend_num = 3;
+      extend_step = 1.0;
+    }
 
   if (g_list_length(files))
     {
@@ -311,7 +317,7 @@
   g_usleep(500000); /* FIXME */
   gui_progress_advance_one(progress); /* 1 - initiate */
 
-  GList *exported_names = export_images(rs, files, extend, 1, 2.0, 1, 2.0, 
boundingbox);
+  GList *exported_names = export_images(rs, files, extend, extend_num, 
extend_step, extend_num, extend_step, boundingbox);
 
   gui_progress_advance_one(progress); /* 2 - after exported images */
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to