From: cristy Date: Sun, 13 Sep 2009 02:10:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10705 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daa9769ac958fb4c03379076f66d55b70d96b3b6;p=imagemagick --- diff --git a/magick/cache.c b/magick/cache.c index eb8e30e83..30ca4dc44 100644 --- a/magick/cache.c +++ b/magick/cache.c @@ -2773,7 +2773,7 @@ MagickExport void GetPixelCacheTileSize(const Image *image,unsigned long *width, assert(cache_info->signature == MagickSignature); *width=2048UL/sizeof(PixelPacket); if (GetPixelCacheType(image) == DiskCache) - *width=8196UL/sizeof(PixelPacket); + *width=8192UL/sizeof(PixelPacket); *height=(*width); } diff --git a/magick/shear.c b/magick/shear.c index eab86fb35..a82b73993 100644 --- a/magick/shear.c +++ b/magick/shear.c @@ -1073,6 +1073,9 @@ static Image *IntegralRotateImage(const Image *image,unsigned long rotations, Rotate 90 degrees. */ GetPixelCacheTileSize(image,&tile_width,&tile_height); +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp parallel for schedule(static,1) shared(progress, status) +#endif for (tile_y=0; tile_y < (long) image->rows; tile_y+=tile_height) { register long @@ -1112,8 +1115,8 @@ static Image *IntegralRotateImage(const Image *image,unsigned long rotations, if ((tile_y+(long) tile_height) > (long) image->rows) height=(unsigned long) (tile_height-(tile_y+tile_height- image->rows)); - p=GetCacheViewVirtualPixels(image_view,tile_x,tile_y,width, - height,exception); + p=GetCacheViewVirtualPixels(image_view,tile_x,tile_y,width,height, + exception); if (p == (const PixelPacket *) NULL) { status=MagickFalse; @@ -1184,6 +1187,9 @@ static Image *IntegralRotateImage(const Image *image,unsigned long rotations, /* Rotate 180 degrees. */ +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp parallel for schedule(static,1) shared(progress, status) +#endif for (y=0; y < (long) image->rows; y++) { MagickBooleanType @@ -1257,6 +1263,9 @@ static Image *IntegralRotateImage(const Image *image,unsigned long rotations, Rotate 270 degrees. */ GetPixelCacheTileSize(image,&tile_width,&tile_height); +#if defined(MAGICKCORE_OPENMP_SUPPORT) + #pragma omp parallel for schedule(static,1) shared(progress, status) +#endif for (tile_y=0; tile_y < (long) image->rows; tile_y+=tile_height) { register long