From 08ac61b11685e804c15f86cdf794a3b9f6c23f1e Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 12 Dec 2016 21:11:21 -0500 Subject: [PATCH] ... --- MagickCore/compare.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MagickCore/compare.c b/MagickCore/compare.c index f6fcf1207..37f760b86 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -560,6 +560,9 @@ static MagickBooleanType GetFuzzDistortion(const Image *image, channel_distortion[i]+=distance*distance; channel_distortion[CompositePixelChannel]+=distance*distance; } +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp critical (MagickCore_GetFuzzDistortion) +#endif area++; p+=GetPixelChannels(image); q+=GetPixelChannels(reconstruct_image); @@ -671,6 +674,9 @@ static MagickBooleanType GetMeanAbsoluteDistortion(const Image *image, channel_distortion[i]+=distance; channel_distortion[CompositePixelChannel]+=distance; } +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp critical (MagickCore_GetFuzzDistortion) +#endif area++; p+=GetPixelChannels(image); q+=GetPixelChannels(reconstruct_image); @@ -878,6 +884,9 @@ static MagickBooleanType GetMeanSquaredDistortion(const Image *image, channel_distortion[i]+=distance*distance; channel_distortion[CompositePixelChannel]+=distance*distance; } +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp critical (MagickCore_GetFuzzDistortion) +#endif area++; p+=GetPixelChannels(image); q+=GetPixelChannels(reconstruct_image); -- 2.40.0