Author: akv
Date: 2013-05-06 10:12:53 +0200 (Mon, 06 May 2013)
New Revision: 4388
Modified:
branches/4175-enfuse/src/rs-enfuse.c
Log:
Making thumbnailgeneration go a lot quicker.
Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c 2013-05-06 07:42:18 UTC (rev
4387)
+++ branches/4175-enfuse/src/rs-enfuse.c 2013-05-06 08:12:53 UTC (rev
4388)
@@ -136,7 +136,7 @@
return -1;
}
-GList * export_images(RS_BLOB *rs, GList *files, gboolean extend, gint dark,
gfloat darkstep, gint bright, gfloat brightstep, gint boundingbox)
+GList * export_images(RS_BLOB *rs, GList *files, gboolean extend, gint dark,
gfloat darkstep, gint bright, gfloat brightstep, gint boundingbox, gboolean
quick)
{
gint num_selected = g_list_length(files);
gint i = 0;
@@ -162,6 +162,8 @@
g_object_set(output, "save16bit", TRUE, NULL); /* We get odd results if we
use 16 bit output - probably due to liniearity */
if (g_object_class_find_property(G_OBJECT_GET_CLASS(output),
"copy-metadata"))
g_object_set(output, "copy-metadata", TRUE, NULL); /* Doesn't make sense
to enable - Enfuse doesn't copy it */
+ if (g_object_class_find_property(G_OBJECT_GET_CLASS(output), "quick"))
+ g_object_set(output, "quick", quick, NULL); /* Allow for quick exports
when generating thumbnails */
gint lightness = 0;
gint darkval = 255;
@@ -393,7 +395,7 @@
gui_progress_advance_one(progress); /* 1 - initiate */
}
- GList *exported_names = export_images(rs, files, extend, extend_negative,
extend_step, extend_positive, extend_step, boundingbox);
+ GList *exported_names = export_images(rs, files, extend, extend_negative,
extend_step, extend_positive, extend_step, boundingbox, quick);
if (quick == FALSE)
gui_progress_advance_one(progress); /* 2 - after exported images */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit