exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
attribute=NULL;
av=NULL;
if (sv_isobject(ST(0)) == 0)
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
number_images=0;
ac=(items < 2) ? 1 : items-1;
length=(STRLEN *) NULL;
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
av=NULL;
attribute=NULL;
if (sv_isobject(ST(0)) == 0)
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
attribute=NULL;
av=NULL;
if (sv_isobject(ST(0)) == 0)
SV
*sv;
+ sv=NULL;
if (image->mask == (Image *) NULL)
ClipImage(image);
if (image->mask != (Image *) NULL)
SV
*sv;
+ sv=NULL;
if (image->clip_mask == (Image *) NULL)
ClipImage(image);
if (image->clip_mask != (Image *) NULL)
}
if (LocaleCompare(attribute,"compression") == 0)
{
- j=info ? info->image_info->compression : image->compression;
+ j=info ? info->image_info->compression : image ?
+ image->compression : UndefinedCompression;
if (info)
if (info->image_info->compression == UndefinedCompression)
j=image->compression;
}
if (LocaleCompare(attribute,"endian") == 0)
{
- j=info ? info->image_info->endian : image->endian;
+ j=info ? info->image_info->endian : image ? image->endian :
+ UndefinedEndian;
s=newSViv(j);
(void) sv_setpv(s,MagickOptionToMnemonic(MagickEndianOptions,j));
SvIOK_on(s);
}
if (LocaleCompare(attribute,"filter") == 0)
{
- s=newSViv(image->filter);
+ s=image ? newSViv(image->filter) : newSViv(0);
(void) sv_setpv(s,MagickOptionToMnemonic(MagickFilterOptions,
image->filter));
SvIOK_on(s);
}
if (LocaleCompare(attribute,"gravity") == 0)
{
- s=newSViv(image->gravity);
- (void) sv_setpv(s,
- MagickOptionToMnemonic(MagickGravityOptions,image->gravity));
+ s=image ? newSViv(image->gravity) : newSViv(0);
+ (void) sv_setpv(s,MagickOptionToMnemonic(MagickGravityOptions,
+ image->gravity));
SvIOK_on(s);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
continue;
}
if (LocaleCompare(attribute,"interlace") == 0)
{
- j=info ? info->image_info->interlace : image->interlace;
+ j=info ? info->image_info->interlace : image ? image->interlace :
+ UndefinedInterlace;
s=newSViv(j);
(void) sv_setpv(s,MagickOptionToMnemonic(MagickInterlaceOptions,
j));
{
if (LocaleCompare(attribute,"orientation") == 0)
{
- j=info ? info->image_info->orientation : image->orientation;
+ j=info ? info->image_info->orientation : image ?
+ image->orientation : UndefinedOrientation;
s=newSViv(j);
(void) sv_setpv(s,MagickOptionToMnemonic(MagickOrientationOptions,
j));
{
if (LocaleCompare(attribute,"units") == 0)
{
- j=info ? info->image_info->units : image->units;
- if (info)
- if (info->image_info->units == UndefinedResolution)
+ j=info ? info->image_info->units : image ? image->units :
+ UndefinedResolution;
+ if (info && (info->image_info->units == UndefinedResolution))
+ if (image)
j=image->units;
if (j == UndefinedResolution)
s=newSVpv("undefined units",0);
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
SV
*sv;
+ sv=NULL;
ssize_test=0;
pp=(Arguments *) NULL;
qq=rp->arguments;
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
attribute=NULL;
if (sv_isobject(ST(0)) == 0)
{
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
av=NULL;
attribute=NULL;
if (sv_isobject(ST(0)) == 0)
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
if (sv_isobject(ST(0)) == 0)
{
ThrowPerlException(exception,OptionError,"ReferenceIsNotMyType",
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
av=NULL;
if (sv_isobject(ST(0)) == 0)
{
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
package_info=(struct PackageInfo *) NULL;
number_images=0;
ac=(items < 2) ? 1 : items-1;
exception=AcquireExceptionInfo();
perl_exception=newSVpv("",0);
+ sv=NULL;
av=NULL;
attribute=NULL;
if (sv_isobject(ST(0)) == 0)