- /*
+/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% MagickCore Image View Methods %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% March 2003 %
% %
% %
-% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
MagickOffsetType
progress;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
+#endif
ssize_t
y;
return(MagickFalse);
status=MagickTrue;
progress=0;
- height=source->extent.height-source->extent.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))
+ height=source->extent.height-source->extent.y;
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
+ magick_threads(source_image,destination_image,height,1)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
MagickOffsetType
progress;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
+#endif
ssize_t
y;
source_image=source->image;
status=MagickTrue;
progress=0;
- height=source->extent.height-source->extent.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))
+ height=source->extent.height-source->extent.y;
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
+ magick_threads(source_image,source_image,height,1)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
MagickOffsetType
progress;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
+#endif
ssize_t
y;
return(MagickFalse);
status=MagickTrue;
progress=0;
- height=destination->extent.height-destination->extent.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))
+ height=destination->extent.height-destination->extent.y;
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
+ magick_threads(destination_image,destination_image,height,1)
#endif
for (y=destination->extent.y; y < (ssize_t) destination->extent.height; y++)
{
MagickOffsetType
progress;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
+#endif
ssize_t
y;
return(MagickFalse);
status=MagickTrue;
progress=0;
- height=source->extent.height-source->extent.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))
+ height=source->extent.height-source->extent.y;
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
+ magick_threads(source_image,destination_image,height,1)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{
MagickOffsetType
progress;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
+#endif
ssize_t
y;
return(MagickFalse);
status=MagickTrue;
progress=0;
- height=source->extent.height-source->extent.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))
+ height=source->extent.height-source->extent.y;
+ #pragma omp parallel for schedule(static,4) shared(progress,status) \
+ magick_threads(source_image,source_image,height,1)
#endif
for (y=source->extent.y; y < (ssize_t) source->extent.height; y++)
{