status=MagickTrue;
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(status) \
- dynamic_number_threads(image,image,image->rows,1)
+ #pragma omp parallel for schedule(static,image->rows/2) shared(status)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
texture_view=AcquireVirtualCacheView(texture_image,exception);
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(status) \
- dynamic_number_threads(texture_image,image,image->rows,1)
+ #pragma omp parallel for schedule(static,image->rows/2) shared(status)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
Draw sides of ornamental border.
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows,1)
+ #pragma omp parallel for schedule(static,image->rows/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
foreground,
background;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+ size_t
+ height;
+#endif
+
ssize_t
y;
progress=0;
image_view=AcquireAuthenticCacheView(image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,raise_info->height,1)
+ #pragma omp parallel for schedule(static,raise_info->height/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) raise_info->height; y++)
{
}
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows-2*raise_info->height,1)
+ height=image->rows-2*raise_info->height;
+ #pragma omp parallel for schedule(static,height/2) shared(progress,status)
#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,2048) shared(progress,status) \
- dynamic_number_threads(image,image,raise_info->height,1)
+ height=image->rows-2*raise_info->height;
+ #pragma omp parallel for schedule(static,height/2) shared(progress,status)
#endif
for (y=(ssize_t) (image->rows-raise_info->height); y < (ssize_t) image->rows; y++)
{
progress=0;
image_view=AcquireVirtualCacheView(image,exception);
sample_view=AcquireAuthenticCacheView(sample_image,exception);
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+ #pragma omp parallel for schedule(static,sample_image->rows/2) shared(status)
+#endif
for (y=0; y < (ssize_t) sample_image->rows; y++)
{
register const Quantum
MagickBooleanType
proceed;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+ #pragma omp critical (MagickCore_SampleImage)
+#endif
proceed=SetImageProgress(image,SampleImageTag,progress++,image->rows);
if( IfMagickFalse(proceed) )
status=MagickFalse;
GetPixelCacheTileSize(image,&tile_width,&tile_height);
tile_width=image->columns;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows/tile_height,1)
+ #pragma omp parallel for schedule(static,image->rows/tile_height/2) \
+ shared(progress,status)
#endif
for (tile_y=0; tile_y < (ssize_t) image->rows; tile_y+=(ssize_t) tile_height)
{
Rotate 180 degrees.
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows,1)
+ #pragma omp parallel for schedule(static,image->rows/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) image->rows; y++)
{
GetPixelCacheTileSize(image,&tile_width,&tile_height);
tile_width=image->columns;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows/tile_height,1)
+ #pragma omp parallel for schedule(static,image->rows/tile_height/2) \
+ shared(progress,status)
#endif
for (tile_y=0; tile_y < (ssize_t) image->rows; tile_y+=(ssize_t) tile_height)
{
RectangleInfo
extent;
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+ size_t
+ height;
+#endif
+
ssize_t
y;
image_view=AcquireVirtualCacheView(image,exception);
chop_view=AcquireAuthenticCacheView(chop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,chop_image,extent.y,1)
+ #pragma omp parallel for schedule(static,extent.y/2) shared(progress,status)
#endif
for (y=0; y < (ssize_t) extent.y; y++)
{
Extract chop image.
*/
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,image,image->rows-(extent.y+extent.height),1)
+ height=image->rows-(extent.y+extent.height);
+ #pragma omp parallel for schedule(static,height/2) shared(progress,status)
#endif
for (y=0; y < (ssize_t) (image->rows-(extent.y+extent.height)); y++)
{
image_view=AcquireVirtualCacheView(image,exception);
crop_view=AcquireAuthenticCacheView(crop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,crop_image,crop_image->rows,1)
+ #pragma omp parallel for schedule(static,crop_image->rows/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) crop_image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
flip_view=AcquireAuthenticCacheView(flip_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,flip_image,flip_image->rows,1)
+ #pragma omp parallel for schedule(static,flip_image->rows/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) flip_image->rows; y++)
{
image_view=AcquireVirtualCacheView(image,exception);
flop_view=AcquireAuthenticCacheView(flop_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- #pragma omp parallel for schedule(static,2048) shared(progress,status) \
- dynamic_number_threads(image,flop_image,flop_image->rows,1)
+ #pragma omp parallel for schedule(static,flop_image->rows/2) \
+ shared(progress,status)
#endif
for (y=0; y < (ssize_t) flop_image->rows; y++)
{