height=MagickMin(source_image->rows,destination_image->rows);
width=MagickMin(source_image->columns,destination_image->columns);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static) shared(status) \
+ #pragma omp parallel for schedule(static,4) shared(status) \
dynamic_number_threads(source_image,width,height,1)
#endif
for (y=0; y < (ssize_t) height; y++)
status=MagickFalse;
continue;
}
- destination_traits=GetPixelChannelMapTraits(destination_image,
+ destination_traits=GetPixelChannelTraits(destination_image,
destination_channel);
- source_traits=GetPixelChannelMapTraits(source_image,source_channel);
+ source_traits=GetPixelChannelTraits(source_image,source_channel);
if ((destination_traits == UndefinedPixelTrait) ||
(source_traits == UndefinedPixelTrait))
continue;
Image
*canvas;
- SetPixelChannelMapMask(destination_image,channel_mask);
+ SetPixelChannelMask(destination_image,channel_mask);
if ((channel_op == ExtractChannelOp) && (destination_channel == 1))
(void) SetImageColorspace(destination_image,GRAYColorspace,exception);
status=SetImageStorageClass(destination_image,DirectClass,exception);
if (status == MagickFalse)
break;
}
- SetPixelChannelMapMask(destination_image,channel_mask);
+ SetPixelChannelMask(destination_image,channel_mask);
if ((channel_op == ExtractChannelOp) && (destination_channel == 1))
(void) SetImageColorspace(destination_image,GRAYColorspace,exception);
status=SetImageStorageClass(destination_image,DirectClass,exception);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
(void) SetImageColorspace(combine_image,RGBColorspace,exception);
if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0)
- combine_image->matte=MagickTrue;
+ combine_image->alpha_trait=BlendPixelTrait;
/*
Combine images.
*/
if (next == (Image *) NULL)
continue;
- channel=GetPixelChannelMapChannel(combine_image,i);
- traits=GetPixelChannelMapTraits(combine_image,channel);
+ channel=GetPixelChannelChannel(combine_image,i);
+ traits=GetPixelChannelTraits(combine_image,channel);
if (traits == UndefinedPixelTrait)
continue;
image_view=AcquireVirtualCacheView(next,exception);
separate_image=DestroyImage(separate_image);
return((Image *) NULL);
}
- separate_image->matte=MagickFalse;
+ separate_image->alpha_trait=UndefinedPixelTrait;
(void) SetImageColorspace(separate_image,GRAYColorspace,exception);
/*
Separate image.
image_view=AcquireVirtualCacheView(image,exception);
separate_view=AcquireAuthenticCacheView(separate_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static) shared(progress,status) \
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
dynamic_number_threads(image,image->columns,image->rows,1)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
PixelTrait
traits;
- channel=GetPixelChannelMapChannel(image,i);
- traits=GetPixelChannelMapTraits(image,channel);
+ channel=GetPixelChannelChannel(image,i);
+ traits=GetPixelChannelTraits(image,channel);
if ((traits == UndefinedPixelTrait) ||
(GetChannelBit(channel_type,channel) == 0))
continue;
pixel=p[i];
if (IssRGBColorspace(image->colorspace) != MagickFalse)
- pixel=InversesRGBCompandor(pixel);
+ pixel=DecodesRGBGamma(pixel);
SetPixelChannel(separate_image,GrayPixelChannel,ClampToQuantum(pixel),
q);
}
PixelTrait
traits;
- channel=GetPixelChannelMapChannel(image,i);
- traits=GetPixelChannelMapTraits(image,channel);
+ channel=GetPixelChannelChannel(image,i);
+ traits=GetPixelChannelTraits(image,channel);
if ((traits == UndefinedPixelTrait) ||
((traits & UpdatePixelTrait) == 0))
continue;