#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,4) shared(progress,status)
#endif
- for (x=0; x < (ssize_t) image->columns; x++)
+ for (x=0; x < (ssize_t) blur_image->columns; x++)
{
register const Quantum
*restrict p;
if (status == MagickFalse)
continue;
p=GetCacheViewVirtualPixels(image_view,x,-((ssize_t) width/2L),1,
- image->rows+width,exception);
+ blur_image->rows+width,exception);
q=GetCacheViewAuthenticPixels(blur_view,x,0,1,blur_image->rows,exception);
if ((p == (const Quantum *) NULL) || (q == (Quantum *) NULL))
{
status=MagickFalse;
continue;
}
- for (y=0; y < (ssize_t) image->rows; y++)
+ for (y=0; y < (ssize_t) blur_image->rows; y++)
{
register ssize_t
i;
- for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
+ for (i=0; i < (ssize_t) GetPixelChannels(blur_image); i++)
{
MagickRealType
alpha,
gamma=0.0;
for (u=0; u < (ssize_t) width; u++)
{
- alpha=(MagickRealType) (QuantumScale*
- GetPixelAlpha(blur_image,pixels));
+ alpha=(MagickRealType) (QuantumScale*GetPixelAlpha(blur_image,
+ pixels));
pixel+=(*k)*alpha*pixels[i];
gamma+=(*k)*alpha;
k++;
}
static inline PixelTrait GetPixelChannelMapTraits(const Image *restrict image,
- const int offset)
+ const PixelChannel channel)
{
- return(image->channel_map[image->channel_map[offset].channel].traits);
+ return(image->channel_map[channel].traits);
}
static inline size_t GetPixelChannels(const Image *restrict image)