1 | /* |
1 | /* |
2 | * gen_image.c - Part of psiconv, a PSION 5 file formats converter |
2 | * gen_image.c - Part of psiconv, a PSION 5 file formats converter |
3 | * Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> |
3 | * Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
4 | * |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify |
5 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by |
6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation; either version 2 of the License, or |
7 | * the Free Software Foundation; either version 2 of the License, or |
8 | * (at your option) any later version. |
8 | * (at your option) any later version. |
… | |
… | |
31 | |
31 | |
32 | #ifdef DMALLOC |
32 | #ifdef DMALLOC |
33 | #include "dmalloc.h" |
33 | #include "dmalloc.h" |
34 | #endif |
34 | #endif |
35 | |
35 | |
|
|
36 | #ifdef IMAGEMAGICK |
36 | static Image *get_paint_data_section(psiconv_paint_data_section sec); |
37 | static Image *get_paint_data_section(psiconv_paint_data_section sec); |
37 | static void image_to_list(psiconv_list list,Image *image,const char *dest); |
38 | static void image_to_list(psiconv_list list,Image *image,const char *dest); |
38 | static void gen_image_list(const psiconv_config config,psiconv_list list, |
39 | static void gen_image_list(const psiconv_config config,psiconv_list list, |
39 | const psiconv_list sections, const char *dest); |
40 | const psiconv_list sections, const char *dest); |
40 | static void gen_clipart(const psiconv_config config,psiconv_list list, |
41 | static void gen_clipart(const psiconv_config config,psiconv_list list, |
… | |
… | |
227 | } else |
228 | } else |
228 | return -1; |
229 | return -1; |
229 | return 0; |
230 | return 0; |
230 | } |
231 | } |
231 | |
232 | |
|
|
233 | #endif |
|
|
234 | |
232 | void init_image(void) |
235 | void init_image(void) |
233 | { |
236 | { |
234 | struct fileformat_s ff; |
237 | struct fileformat_s ff; |
235 | #if IMAGEMAGICK |
238 | #if IMAGEMAGICK |
236 | const MagickInfo *mi; |
239 | const MagickInfo *mi; |