From 29aeb95a28d518944f1eb268f93a96cbb9dff7f2 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 28 Mar 2009 22:00:06 +0100 Subject: Multithreading support Also made progress output a little bit nicer default = 1 thread at once, for safety reasons I've encountered critical issues with ImageMagick compiled with OpenMP support. Hope that package maintainers are clever. ShittyMagickWandGenesis(), ShittyMagickWandTerminus() :-) --- src/generators.h | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) (limited to 'src/generators.h') diff --git a/src/generators.h b/src/generators.h index c87e8a3..584cff3 100644 --- a/src/generators.h +++ b/src/generators.h @@ -19,6 +19,16 @@ #include "items.h" + +/* + * generate_image: generate needed image sizes + */ +void generate_image (TGallerySetup *setup, + TAlbum *items, + TIndexItem *item, + unsigned int item_index, + const char *dst_dir); + /* * write_html_album: process album and index template files * @@ -28,9 +38,9 @@ * */ gboolean write_html_album (TGallerySetup *setup, - const char *template_src, - const char *dst, - TAlbum *items); + const char *template_src, + const char *dst, + TAlbum *items); /* * write_html_image: process single image template file @@ -43,22 +53,8 @@ gboolean write_html_album (TGallerySetup *setup, * */ gboolean write_html_image (TGallerySetup *setup, - const char *template_src, - const char *original_img, - const char *dst, - TIndexItem *item, - TAlbum *parent_items); - -/* - * build_tree: generate complete gallery tree based on source xml files - * - * src_tree = source directory of the items - * dst_dir = destination of the generated items - * parent_index = parent album to determine our descent in the tree - * - */ -gboolean build_tree (TGallerySetup *setup, - const char *src_tree, - const char *dst_dir, - TAlbum *parent_index); - + const char *template_src, + const char *original_img, + const char *dst, + TIndexItem *item, + TAlbum *parent_items); -- cgit v1.2.3