1 /* Reduced from ImageMagick-7.1.0-57. */
3 #define NULL ((void *)0)
5 typedef __builtin_va_list
va_list;
6 typedef __SIZE_TYPE__
size_t;
8 typedef struct _ExceptionInfo ExceptionInfo
;
11 ThrowMagickException(ExceptionInfo
*,
14 ...) __attribute__((__format__(__printf__
, 3, 4)));
19 size_t columns
, rows
, depth
, colors
;
23 typedef struct _ImageInfo
30 extern Image
*AcquireImage(const ImageInfo
*, ExceptionInfo
*);
31 extern void CloseBlob(Image
*);
32 extern Image
*DestroyImageList(Image
*);
34 #define ThrowReaderException(tag) \
36 (void) ThrowMagickException(exception, tag, \
37 "`%s'",image_info->filename); \
38 if ((image) != (Image *) NULL) \
40 (void) CloseBlob(image); \
41 image=DestroyImageList(image); \
43 return((Image *) NULL); \
47 ReadMAPImage(const ImageInfo
* image_info
, ExceptionInfo
* exception
)
50 image
= AcquireImage(image_info
, exception
);
51 if ((image
->columns
== 0) || (image
->rows
== 0))
52 ThrowReaderException("MustSpecifyImageSize");