GetPixelInfo(image,&zero);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image->colormap[i].red=(double) ScaleAnyToQuantum(ScaleQuantumToAny(
ClampToQuantum(image->colormap[i].red),range),range);
if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0)
- image->colormap[i].green=(double) ScaleAnyToQuantum(ScaleQuantumToAny( ClampToQuantum(image->colormap[i].green),range),range);
+ image->colormap[i].green=(double) ScaleAnyToQuantum(ScaleQuantumToAny(
+ ClampToQuantum(image->colormap[i].green),range),range);
if ((GetPixelBlueTraits(image) & UpdatePixelTrait) != 0)
image->colormap[i].blue=(double) ScaleAnyToQuantum(ScaleQuantumToAny(
ClampToQuantum(image->colormap[i].blue),range),range);
range);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception); /* must be virtual */
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/resource_.h"
#include "MagickCore/string-private.h"
+#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"
width=MagickMin(source_image->columns,destination_image->columns);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=0; y < (ssize_t) height; y++)
{
separate_view=AcquireAuthenticCacheView(separate_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
+#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/xml-tree.h"
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
image->colormap[i].alpha=(double) i;
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
0.002/film_gamma);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
logmap[i]=ScaleMapToQuantum((MagickRealType) (MaxMap*(reference_white+
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
primary_info.z=(double) (MaxMap+1.0)/2.0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
#include "MagickCore/resource_.h"
#include "MagickCore/string_.h"
#include "MagickCore/statistic.h"
+#include "MagickCore/thread-private.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"
highlight_view=AcquireAuthenticCacheView(highlight_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
reconstruct_view=AcquireVirtualCacheView(reconstruct_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
similarity_view=AcquireAuthenticCacheView(similarity_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) (image->rows-reference->rows+1); y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((composite_image->rows*composite_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) composite_image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y+=(ssize_t) texture_image->rows)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((raise_info->height*raise_info->width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) raise_info->height; y++)
{
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=(ssize_t) raise_info->height; y < (ssize_t) (image->rows-raise_info->height); y++)
{
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=(ssize_t) (image->rows-raise_info->height); y < (ssize_t) image->rows; y++)
{
distort_view=AcquireAuthenticCacheView(distort_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((distort_image->rows*distort_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (j=0; j < (ssize_t) distort_image->rows; j++)
{
sparse_view=AcquireAuthenticCacheView(sparse_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((sparse_image->rows*sparse_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (j=0; j < (ssize_t) sparse_image->rows; j++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=start; y <= stop; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=bounding_box.y; y < (ssize_t) bounding_box.height; y++)
{
stop=(ssize_t) floor(bounds.y2+0.5);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=start; y <= stop; y++)
{
stop=(ssize_t) floor(bounds.y2+0.5);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=start; y <= stop; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((blur_image->rows*blur_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) blur_image->rows; y++)
{
sharp_view=AcquireAuthenticCacheView(sharp_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((sharp_image->rows*sharp_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) sharp_image->rows; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((blur_image->rows*blur_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (x=0; x < (ssize_t) blur_image->columns; x++)
{
r=p+(y_offset*(columns+2)+x_offset);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if ((rows*columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(columns,rows,64)
#endif
for (y=0; y < (ssize_t) rows; y++)
{
s=q-(y_offset*(columns+2)+x_offset);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
- if ((rows*columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(columns,rows,64)
#endif
for (y=0; y < (ssize_t) rows; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
blur_view=AcquireAuthenticCacheView(blur_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
shade_view=AcquireAuthenticCacheView(shade_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
spread_view=AcquireAuthenticCacheView(spread_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if (((image->rows*image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(image->columns,image->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
unsharp_view=AcquireAuthenticCacheView(unsharp_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
clut_view=AcquireVirtualCacheView(clut_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image->filename);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
number_channels=GetPixelChannels(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i < (ssize_t) number_channels; i++)
{
number_channels=GetPixelChannels(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i < (ssize_t) number_channels; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (j=0; j < (ssize_t) image->colors; j++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
enhance_view=AcquireAuthenticCacheView(enhance_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
number_channels=GetPixelChannels(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i < (ssize_t) number_channels; i++)
{
number_channels=GetPixelChannels(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i < (ssize_t) number_channels; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (j=0; j < (ssize_t) image->colors; j++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
if (gamma != 0.0)
#if defined(MAGICKCORE_OPENMP_SUPPORT) && (MaxMap > 256)
#pragma omp parallel for \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
gamma_map[i]=ScaleMapToQuantum((MagickRealType) (MaxMap*pow((double) i/
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
if (image->storage_class == PseudoClass)
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
if (image->storage_class == PseudoClass)
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
switch (colorspace)
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
(void) ResetMagickMemory(sigmoidal_map,0,(MaxMap+1)*sizeof(*sigmoidal_map));
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if (MaxMap > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(MaxMap,256)
#endif
for (i=0; i <= (ssize_t) MaxMap; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((number_grays*number_grays) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(number_grays,number_grays,64)
#endif
for (i=0; i < 4; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((number_grays*number_grays) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(number_grays,number_grays,64)
#endif
for (i=0; i < 4; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((number_grays*number_grays) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(number_grays,number_grays,64)
#endif
for (i=0; i < 4; i++)
{
(void) ResetMagickMemory(&sum_squares,0,sizeof(sum_squares));
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((number_grays*number_grays) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(number_grays,number_grays,64)
#endif
for (i=0; i < 4; i++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((number_grays*number_grays) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(number_grays,number_grays,64)
#endif
for (i=0; i < 4; i++)
{
key=GetRandomSecretKey(random_info[0]);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (((image->rows*image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(image->columns,image->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
shift_view=AcquireAuthenticCacheView(shift_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
colorize_view=AcquireAuthenticCacheView(colorize_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
color_view=AcquireAuthenticCacheView(color_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
fx_view=AcquireAuthenticCacheView(fx_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) fx_image->rows; y++)
{
implode_view=AcquireAuthenticCacheView(implode_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
morph_view=AcquireAuthenticCacheView(morph_images,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((morph_image->rows*morph_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) morph_images->rows; y++)
{
sepia_view=AcquireAuthenticCacheView(sepia_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
random_view=AcquireAuthenticCacheView(random_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if (((image->rows*image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(image->columns,image->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) random_image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
swirl_view=AcquireAuthenticCacheView(swirl_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
tint_view=AcquireAuthenticCacheView(tint_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
BackgroundVirtualPixelMethod);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) wave_image->rows; y++)
{
- /*
+/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((width*height) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=destination->extent.width-destination->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=destination->extent.y; y < (ssize_t) destination->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(range_exception,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
+#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (x=0; x < (ssize_t) image->columns; x++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
paint_view=AcquireAuthenticCacheView(paint_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#include "MagickCore/semaphore.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
+#include "MagickCore/thread-private.h"
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
if (image->storage_class == PseudoClass)
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (image->colors > 256) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentUno(image->colors,256)
#endif
for (i=0; i < (ssize_t) image->colors; i++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
scale.y=(double) image->rows/resize_image->rows;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((resize_image->rows*resize_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) resize_image->rows; y++)
{
resize_view=AcquireAuthenticCacheView(resize_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((resize_image->rows*resize_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (x=0; x < (ssize_t) resize_image->columns; x++)
{
resize_view=AcquireAuthenticCacheView(resize_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) resize_image->rows; y++)
{
sample_view=AcquireAuthenticCacheView(sample_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((sample_image->rows*sample_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) sample_image->rows; y++)
{
#include "MagickCore/resource_.h"
#include "MagickCore/segment.h"
#include "MagickCore/string_.h"
+#include "MagickCore/thread-private.h"
\f
/*
Define declarations.
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) \
- if ((p->width*p->height) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(p->width,p->height,64)
#endif
for (x=0; x < (ssize_t) p->width; x++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
(void) ResetRadonCells(source_cells);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
GetPixelCacheTileSize(image,&tile_width,&tile_height);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (tile_y=0; tile_y < (ssize_t) image->rows; tile_y+=(ssize_t) tile_height)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
GetPixelCacheTileSize(image,&tile_width,&tile_height);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (tile_y=0; tile_y < (ssize_t) image->rows; tile_y+=(ssize_t) tile_height)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=0; y < (ssize_t) height; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (x=0; x < (ssize_t) width; x++)
{
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if (((evaluate_image->rows*evaluate_image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(images->columns,images->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) evaluate_image->rows; y++)
{
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if (((evaluate_image->rows*evaluate_image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(images->columns,images->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) evaluate_image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if (((image->rows*image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(image->columns,image->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
statistic_view=AcquireAuthenticCacheView(statistic_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((statistic_image->rows*statistic_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) statistic_image->rows; y++)
{
threshold_view=AcquireAuthenticCacheView(threshold_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if (((image->rows*image->columns) > 8192) && (key == ~0UL)) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentTres(image->columns,image->rows,key == ~0UL,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
chop_view=AcquireAuthenticCacheView(chop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((extent.y*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) extent.y; y++)
{
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) (image->rows-(extent.y+extent.height)); y++)
{
crop_view=AcquireAuthenticCacheView(crop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((crop_image->rows*crop_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) crop_image->rows; y++)
{
excerpt_view=AcquireAuthenticCacheView(excerpt_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((excerpt_image->rows*excerpt_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) excerpt_image->rows; y++)
{
flip_view=AcquireAuthenticCacheView(flip_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((flip_image->rows*flip_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) flip_image->rows; y++)
{
flop_view=AcquireAuthenticCacheView(flop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((flop_image->rows*flop_image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) flop_image->rows; y++)
{
destination_view=AcquireAuthenticCacheView(destination,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(status) \
- if ((rows*columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(columns,rows,64)
#endif
for (y=0; y < (ssize_t) rows; y++)
{
splice_view=AcquireAuthenticCacheView(splice_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((splice_geometry.y*splice_geometry.x) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) splice_geometry.y; y++)
{
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((splice_geometry.y*splice_geometry.x) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=(ssize_t) (splice_geometry.y+splice_geometry.height);
y < (ssize_t) splice_image->rows; y++)
transpose_view=AcquireAuthenticCacheView(transpose_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
transverse_view=AcquireAuthenticCacheView(transverse_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
#define MagickLibAddendum "-0"
#define MagickLibInterface 7
#define MagickLibMinInterface 7
-#define MagickReleaseDate "2012-04-25"
+#define MagickReleaseDate "2012-05-06"
#define MagickChangeDate "20110801"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=destination->extent.width-destination->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=destination->extent.y; y < (ssize_t) destination->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
width=source->extent.width-source->extent.x;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) shared(progress,status) \
- if ((height*width) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(width,height,64)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
image->rows=(size_t) (level*cube_size);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,8) shared(status) \
- IsConcurrent(image->columns,image->rows)
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y+=(ssize_t) level)
{
*/
static unsigned char *SFWScan(unsigned char *p,const unsigned char *q,
- const unsigned char *target,const int length)
+ const unsigned char *target,const size_t length)
{
register ssize_t
i;
continue;
if (length == 1)
return(p);
- for (i=1; i < length; i++)
+ for (i=1; i < (ssize_t) length; i++)
if (*(p+i) != *(target+i))
break;
- if (i == length)
+ if (i == (ssize_t) length)
return(p);
}
return((unsigned char *) NULL);
Image
*flipped_image,
+ *jpeg_image,
*image;
ImageInfo
/*
Read image into a buffer.
*/
+ if (GetBlobSize(image) != (size_t) GetBlobSize(image))
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
buffer=(unsigned char *) AcquireQuantumMemory((size_t) GetBlobSize(image),
sizeof(*buffer));
if (buffer == (unsigned char *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
count=ReadBlob(image,(size_t) GetBlobSize(image),buffer);
- if ((count == 0) || (LocaleNCompare((char *) buffer,"SFW",3) != 0))
+ if ((count != (ssize_t) GetBlobSize(image)) ||
+ (LocaleNCompare((char *) buffer,"SFW",3) != 0))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
(void) CloseBlob(image);
- image=DestroyImage(image);
/*
Find the start of the JFIF data
*/
/*
Read JPEG image.
*/
- image=ReadImage(read_info,exception);
+ jpeg_image=ReadImage(read_info,exception);
(void) RelinquishUniqueFileResource(read_info->filename);
read_info=DestroyImageInfo(read_info);
- if (image == (Image *) NULL)
- return(GetFirstImageInList(image));
+ if (jpeg_image == (Image *) NULL)
+ {
+ image=DestroyImageList(image);
+ return(jpeg_image);
+ }
+ (void) CopyMagickString(jpeg_image->filename,image->filename,MaxTextExtent);
+ (void) CopyMagickString(jpeg_image->magick,image->magick,MaxTextExtent);
+ image=DestroyImageList(image);
+ image=jpeg_image;
/*
Correct image orientation.
*/
<name>ImageMagick</name>
<shortdesc xml:lang="en">ImageMagick: convert, edit, and compose images.</shortdesc>
<homepage rdf:resource="http://www.imagemagick.org/"/>
- <created>2012-04-25</created>
+ <created>2012-05-06</created>
<description xml:lang="en">
ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
<release>
<Version>
<name>stable</name>
- <created>2012-04-25</created>
+ <created>2012-05-06</created>
<revision>7.0.0</revision>
<patch-level>-0</patch-level>
</Version>
<configure name="LIB_VERSION" value="0x700"/>
<configure name="LIB_VERSION_NUMBER" value="7,0,0,0"/>
<configure name="SVN_REVISION" value="7561" />
- <configure name="RELEASE_DATE" value="2012-04-25"/>
+ <configure name="RELEASE_DATE" value="2012-05-06"/>
<configure name="CONFIGURE" value="./configure "/>
<configure name="PREFIX" value="/usr/local"/>
<configure name="EXEC-PREFIX" value="/usr/local"/>
image_view=AcquireVirtualCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(status) \
- if ((image->rows*image->columns) > 8192) \
- num_threads(GetMagickResourceLimit(ThreadResource))
+ IsConcurrentDos(image->columns,image->rows,64)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{