From: cristy Date: Sun, 30 Dec 2012 18:13:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0756e449ad62cc8ea1c29d5ff732f909b62cef26;p=imagemagick --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index aa0a0d2a5..45120f27b 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -4900,6 +4900,11 @@ static MagickBooleanType SetCacheAlphaChannel(Image *image,const Quantum alpha, MagickBooleanType status; +#if defined(MAGICKCORE_OPENMP_SUPPORT) + size_t + chunk; +#endif + ssize_t y; @@ -4913,6 +4918,10 @@ static MagickBooleanType SetCacheAlphaChannel(Image *image,const Quantum alpha, image->alpha_trait=BlendPixelTrait; status=MagickTrue; image_view=AcquireVirtualCacheView(image,exception); /* must be virtual */ +#if defined(MAGICKCORE_OPENMP_SUPPORT) + chunk=image->rows/2; + #pragma omp parallel for magick_schedule(static,chunk) shared(progress,status) +#endif for (y=0; y < (ssize_t) image->rows; y++) { register Quantum diff --git a/tests/validate.h b/tests/validate.h index e0c77d5e6..7a4d8ef39 100644 --- a/tests/validate.h +++ b/tests/validate.h @@ -355,7 +355,6 @@ static const struct ReferenceFormats #endif { "YUV", UndefinedCompression, 0.0 }, { "YCbCr", UndefinedCompression, 0.0 }, - { "YCbCrA", UndefinedCompression, 0.0 }, #if defined(MAGICKCORE_GS_DELEGATE) { "AI", UndefinedCompression, 0.0 }, { "EPDF", UndefinedCompression, 0.0 },