]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 30 Dec 2012 18:13:48 +0000 (18:13 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 30 Dec 2012 18:13:48 +0000 (18:13 +0000)
MagickCore/cache.c
tests/validate.h

index aa0a0d2a54e159954bc335ceaacc92be08088642..45120f27b41ffa4fed22fea4706f4581a8676e0d 100644 (file)
@@ -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
index e0c77d5e6cebab410a7b4c47a9db7ff71c897c69..7a4d8ef39e508cf57a920a548b10d21f40a52fb8 100644 (file)
@@ -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 },