clone_nexus[id],exception);
if (pixels == (Quantum *) NULL)
continue;
- (void) memcpy(clone_nexus[id]->metacontent,cache_nexus[id]->metacontent,
- length*sizeof(cache_nexus[id]->metacontent));
+ if (clone_nexus[id]->metacontent != (void *) NULL)
+ (void) memcpy(clone_nexus[id]->metacontent,
+ cache_nexus[id]->metacontent,length*
+ sizeof(cache_nexus[id]->metacontent));
status=WritePixelCacheMetacontent(clone_info,clone_nexus[id],exception);
}
}
*/
state=DefaultState;
command_type=NullCommand;
+ crop_info.x=0;
+ crop_info.y=0;
(void) XMapWindow(display,windows->info.id);
do
{
progress;
double
- black[CompositePixelChannel],
+ black[CompositePixelChannel+1],
*equalize_map,
*histogram,
*map,
- white[CompositePixelChannel];
+ white[CompositePixelChannel+1];
register ssize_t
i;
}
(void) ResetMagickMemory(equalize_map,0,(MaxMap+1)*GetPixelChannels(image)*
sizeof(*equalize_map));
+ (void) ResetMagickMemory(black,0,sizeof(*black));
+ (void) ResetMagickMemory(white,0,sizeof(*white));
number_channels=GetPixelChannels(image);
for (i=0; i < (ssize_t) number_channels; i++)
{
image_view=AcquireVirtualCacheView(image,exception);
morphology_view=AcquireAuthenticCacheView(morphology_image,exception);
width=image->columns+kernel->width-1;
+ offset.x=0.0;
+ offset.y=0.0;
switch (method)
{
case ConvolveMorphology:
return((const char *)NULL); \
}
#define WarnNoImageInfoReturn(format,arg) \
- if (image == (Image *) NULL ) { \
+ if (image_info == (ImageInfo *) NULL ) { \
(void) ThrowMagickException(exception,GetMagickModule(),OptionWarning, \
"NoImageInfoForProperty",format,arg); \
return((const char *)NULL); \
if (image != (Image *) NULL)
return(image);
read_info=CloneImageInfo(image_info);
- (void) CopyMagickString(read_info->filename,path,MaxTextExtent);
+ if (path != (const char *) NULL)
+ (void) CopyMagickString(read_info->filename,path,MaxTextExtent);
image=ReadImage(read_info,exception);
read_info=DestroyImageInfo(read_info);
if (image != (Image *) NULL)
offset;
/* EOF - no more tokens! */
+ if (token_info == (ScriptTokenInfo *) NULL)
+ return(MagickFalse);
if (token_info->status != TokenStatusOK)
{
token_info->token[0]='\0';
return(MagickFalse);
}
-
state=IN_WHITE;
quote='\0';
offset=0;
(void) ResetMagickMemory(command,0,sizeof(command));
cmyk=image_info->colorspace == CMYKColorspace ? MagickTrue : MagickFalse;
(void) ResetMagickMemory(&hires_bounds,0,sizeof(hires_bounds));
+ columns=0;
+ rows=0;
priority=0;
rows=0;
extent=0;
green,
red;
+ red=0.0;
+ green=0.0;
+ blue=0.0;
+ black=0.0;
+ alpha=0.0;
for (x=0; x < (ssize_t) image->columns; x++)
{
if (ReadBlobString(image,text) == (char *) NULL)
color=(color*65535UL)/green_mask;
SetPixelGreen(image,ScaleShortToQuantum((unsigned short) color),
q);
+ color=(pixel >> blue_shift) & blue_mask;
if (blue_mask != 0)
- color=(pixel >> blue_shift) & blue_mask;
- color=(color*65535UL)/blue_mask;
+ color=(color*65535UL)/blue_mask;
SetPixelBlue(image,ScaleShortToQuantum((unsigned short) color),q);
q+=GetPixelChannels(image);
}