diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-28 22:00:06 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-28 22:00:06 +0100 |
| commit | 29aeb95a28d518944f1eb268f93a96cbb9dff7f2 (patch) | |
| tree | 154c8870d72229a95f0ab0bd93f8c4d3048b9f91 /src/generators.h | |
| parent | d9ff1192a7b5eb7defca68e90e06c68e9b986c94 (diff) | |
| download | cataract-29aeb95a28d518944f1eb268f93a96cbb9dff7f2.tar.xz | |
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() :-)
Diffstat (limited to 'src/generators.h')
| -rw-r--r-- | src/generators.h | 40 |
1 files changed, 18 insertions, 22 deletions
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); |
