]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 02:05:22 +0000 (02:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 02:05:22 +0000 (02:05 +0000)
MagickCore/thread-private.h

index 2b759f537f0c985bf3b217cb65d075984718d512..ab2578c1f97ee42b5f5988918cfec553ef8eea6e 100644 (file)
@@ -24,16 +24,16 @@ extern "C" {
 
 #include <MagickCore/thread_.h>
 
-#define IsConcurrentArea(columns,rows) \
-  if (((((columns) > 64) || ((rows) > 64))) && \
-      ((MagickSizeType) (columns*rows) > (64*64))) \
+#define IsConcurrentUno(colors,threshold) \
+  if ((colors) > threshold) \
     num_threads(GetMagickResourceLimit(ThreadResource))
-#define IsConcurrentAreaExp(columns,rows,expression) \
-  if (((((columns) > 64) || ((rows) > 64))) && \
-      ((MagickSizeType) (columns*rows) > (64*64)) && (expression)) \
+#define IsConcurrentDos(columns,rows,threshold) \
+  if (((((columns) > threshold) || ((rows) > threshold))) && \
+      ((MagickSizeType) (columns*rows) > (threshold*threshold))) \
     num_threads(GetMagickResourceLimit(ThreadResource))
-#define IsConcurrentColors(colors) \
-  if ((colors) > 256) \
+#define IsConcurrentTres(columns,rows,expression,threshold) \
+  if (((((columns) > threshold) || ((rows) > threshold))) && \
+      ((MagickSizeType) (columns*rows) > (threshold*threshold)) && (expression)) \
     num_threads(GetMagickResourceLimit(ThreadResource))
 
 #if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR > 10))