181 const size_t rows,
const char *map,
const StorageType storage,
193 assert(map != (
const char *) NULL);
195 assert(pixels != (
void *) NULL);
199 if (image == (
Image *) NULL)
200 return((
Image *) NULL);
201 if ((columns == 0) || (rows == 0))
244 #if defined(__cplusplus) || defined(c_plusplus)
254 #if defined(__cplusplus) || defined(c_plusplus)
267 assert(image_info != (
ImageInfo *) NULL);
276 if (image != (
Image *) NULL)
326 assert(image_info != (
ImageInfo *) NULL);
333 (int) image_info->
scene,filename);
358 for (scene=(ssize_t) read_info->
scene; scene < (ssize_t) extent; scene++)
363 if (image == (
Image *) NULL)
444 assert(image_info != (
ImageInfo *) NULL);
446 assert(image_info->
filename != (
char *) NULL);
462 "NotAuthorized",
"`%s'",read_info->
filename);
464 return((
Image *) NULL);
488 if ((magick_info != (
const MagickInfo *) NULL) &&
502 return((
Image *) NULL);
516 return((
Image *) NULL);
526 if ((magick_info == (
const MagickInfo *) NULL) ||
537 if ((magick_info != (
const MagickInfo *) NULL) &&
544 if ((thread_support & DecoderThreadSupport) == 0)
558 return((
Image *) NULL);
564 if (image == (
Image *) NULL)
567 return((
Image *) NULL);
582 if ((magick_info == (
const MagickInfo *) NULL) ||
593 return((
Image *) NULL);
599 if ((thread_support & DecoderThreadSupport) == 0)
606 if (image != (
Image *) NULL)
609 if (image == (
Image *) NULL)
616 "Coder (%s) generated an image despite an error (%d), "
627 if (clones == (
Image *) NULL)
629 "SubimageSpecificationReturnsNoImages",
"`%s'",read_info->
filename);
639 "AnErrorHasOccurredReadingFromFile",read_info->
filename);
642 return((
Image *) NULL);
659 if (*magick_path ==
'\0')
670 if (value == (
char *) NULL)
672 if (value != (
char *) NULL)
679 if (value != (
char *) NULL)
682 geometry_info.
sigma=1.0;
684 if (geometry_info.
sigma != 0)
689 if (value != (
char *) NULL)
692 geometry_info.
sigma=1.0;
694 if (geometry_info.
sigma != 0)
699 if (value == (
char *) NULL)
701 if (value != (
char *) NULL)
712 if (option != (
const char *) NULL)
719 if (option != (
const char *) NULL)
726 if (option != (
const char *) NULL)
734 if ((read_info->
extract != (
char *) NULL) &&
749 crop_image=
CropImage(next,&geometry,exception);
750 if (crop_image != (
Image *) NULL)
763 if (size_image != (
Image *) NULL)
791 if (option != (
const char *) NULL)
799 if (next->
delay > (
size_t) floor(geometry_info.
rho+0.5))
800 next->
delay=(size_t) floor(geometry_info.
rho+0.5);
805 if (next->
delay < (
size_t) floor(geometry_info.
rho+0.5))
809 next->
delay=(size_t) floor(geometry_info.
rho+0.5);
814 if (option != (
const char *) NULL)
865 assert(image_info != (
ImageInfo *) NULL);
872 (int) image_info->
scene,filename);
897 for (scene=(ssize_t) read_info->
scene; scene < (ssize_t) extent; scene++)
902 if (image == (
Image *) NULL)
964 for (p=content; (*p !=
',') && (*p !=
'\0'); p++) ;
977 image=
BlobToImage(read_info,blob,length,exception);
1048 assert(image_info != (
ImageInfo *) NULL);
1053 assert(image != (
Image *) NULL);
1058 if (*write_info->
magick ==
'\0')
1089 if (magick_info != (
const MagickInfo *) NULL)
1106 if ((option != (
const char *) NULL) &&
1108 (write_info->
page == (
char *) NULL) &&
1133 if ((magick_info != (
const MagickInfo *) NULL) &&
1160 if ((magick_info != (
const MagickInfo *) NULL) &&
1170 if ((thread_support & EncoderThreadSupport) == 0)
1203 if ((magick_info == (
const MagickInfo *) NULL) ||
1210 if (*extension !=
'\0')
1216 if ((magick_info == (
const MagickInfo *) NULL) ||
1220 if ((magick_info == (
const MagickInfo *) NULL) ||
1230 if ((magick_info != (
const MagickInfo *) NULL) &&
1240 if ((thread_support & EncoderThreadSupport) == 0)
1247 "AnErrorHasOccurredWritingToFile",image->
filename);
1310 #define WriteImageTag "Write/Image"
1339 assert(image_info != (
const ImageInfo *) NULL);
1341 assert(images != (
Image *) NULL);
1351 if (filename != (
const char *) NULL)
1355 if (*write_info->
magick ==
'\0')
1371 i=(ssize_t) images->
scene;
1373 p->
scene=(
size_t) i++;
1385 if (number_images != 1)
1390 if (number_images != 1)
1394 if (number_images != 1)