(((MagickRealType) QuantumRange+1.0)/2.0)))/(((MagickRealType)
QuantumRange+1.0)/2.0)+center.y+((compose == DisplaceCompositeOp) ?
y : 0);
- (void) InterpolatePixelInfo(image,image_view,
+ status=InterpolatePixelInfo(image,image_view,
UndefinedInterpolatePixel,(double) offset.x,(double) offset.y,
&pixel,exception);
+ if (status == MagickFalse)
+ break;
/*
Mask with the 'invalid pixel mask' in alpha channel.
*/
p+=GetPixelChannels(source_image);
q+=GetPixelChannels(canvas_image);
}
+ if (x < (ssize_t) source_image->columns)
+ break;
sync=SyncCacheViewAuthenticPixels(canvas_view,exception);
if (sync == MagickFalse)
break;
inverse_affine.tx;
point.y=(double) x*inverse_affine.rx+y*inverse_affine.sy+
inverse_affine.ty;
- (void) InterpolatePixelInfo(source,source_view,UndefinedInterpolatePixel,
+ status=InterpolatePixelInfo(source,source_view,UndefinedInterpolatePixel,
point.x,point.y,&pixel,exception);
+ if (status == MagickFalse)
+ break;
GetPixelInfoPixel(image,q,&composite);
CompositePixelInfoOver(&pixel,pixel.alpha,&composite,composite.alpha,
&composite);
status=InterpolatePixelChannels(gaussian_image,image_view,kuwahara_image,
UndefinedInterpolatePixel,(double) target.x+target.width/2.0,(double)
target.y+target.height/2.0,q,exception);
+ if (status == MagickFalse)
+ break;
q+=GetPixelChannels(kuwahara_image);
}
if (SyncCacheViewAuthenticPixels(kuwahara_view,exception) == MagickFalse)
status=InterpolatePixelChannels(image,image_view,spread_image,method,
(double) x+width*(point.x-0.5),(double) y+width*(point.y-0.5),q,
exception);
+ if (status == MagickFalse)
+ break;
q+=GetPixelChannels(spread_image);
}
if (SyncCacheViewAuthenticPixels(spread_view,exception) == MagickFalse)
for (i=0; i <= (ssize_t) MaxMap; i++)
{
GetPixelInfo(clut_image,clut_map+i);
- (void) InterpolatePixelInfo(clut_image,clut_view,method,
+ status=InterpolatePixelInfo(clut_image,clut_view,method,
(double) i*(clut_image->columns-adjust)/MaxMap,(double) i*
(clut_image->rows-adjust)/MaxMap,clut_map+i,exception);
+ if (status == MagickFalse)
+ break;
}
clut_view=DestroyCacheView(clut_view);
image_view=AcquireAuthenticCacheView(image,exception);
point.y-=floor(point.y);
point.z-=floor(point.z);
pixel1=zero;
- (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
+ status=InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
fmod(offset,width),floor(offset/width),&pixel1,exception);
+ if (status == MagickFalse)
+ break;
pixel2=zero;
- (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
+ status=InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
+ if (status == MagickFalse)
+ break;
pixel3=zero;
CompositePixelInfoAreaBlend(&pixel1,pixel1.alpha,&pixel2,pixel2.alpha,
point.y,&pixel3);
offset+=cube_size;
- (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
+ status=InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
fmod(offset,width),floor(offset/width),&pixel1,exception);
- (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
+ if (status == MagickFalse)
+ break;
+ status=InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
+ if (status == MagickFalse)
+ break;
pixel4=zero;
CompositePixelInfoAreaBlend(&pixel1,pixel1.alpha,&pixel2,pixel2.alpha,
point.y,&pixel4);
Image
*image;
+ MagickBooleanType
+ status;
+
PixelInfo
pixel;
return(0.0);
}
GetPixelInfo(image,&pixel);
- (void) InterpolatePixelInfo(image,fx_info->view[i],image->interpolate,
+ status=InterpolatePixelInfo(image,fx_info->view[i],image->interpolate,
point.x,point.y,&pixel,exception);
+ (void) status;
if ((strlen(p) > 2) && (LocaleCompare(p,"intensity") != 0) &&
(LocaleCompare(p,"luma") != 0) && (LocaleCompare(p,"luminance") != 0) &&
(LocaleCompare(p,"hue") != 0) && (LocaleCompare(p,"saturation") != 0) &&
status=InterpolatePixelChannels(canvas,interpolate_view,implode_image,
method,(double) (factor*delta.x/scale.x+center.x),(double) (factor*
delta.y/scale.y+center.y),q,exception);
+ if (status == MagickFalse)
+ break;
}
p+=GetPixelChannels(canvas);
q+=GetPixelChannels(implode_image);
status=InterpolatePixelChannels(canvas,interpolate_view,swirl_image,
method,((cosine*delta.x-sine*delta.y)/scale.x+center.x),(double)
((sine*delta.x+cosine*delta.y)/scale.y+center.y),q,exception);
+ if (status == MagickFalse)
+ break;
}
p+=GetPixelChannels(canvas);
q+=GetPixelChannels(swirl_image);
{
status=InterpolatePixelChannels(canvas,canvas_view,wave_image,method,
(double) x,(double) (y-sine_map[x]),q,exception);
+ if (status == MagickFalse)
+ break;
q+=GetPixelChannels(wave_image);
}
if (SyncCacheViewAuthenticPixels(wave_view,exception) == MagickFalse)
offset.x=((double) x+0.5)*scale.x-0.5;
status=InterpolatePixelChannels(image,image_view,resize_image,method,
offset.x,offset.y,q,exception);
+ if (status == MagickFalse)
+ break;
}
q+=GetPixelChannels(resize_image);
}