% MagickWand Wand View Methods %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% March 2003 %
% %
% %
-% Copyright 1999-2013 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 %
#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
#endif
ssize_t
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
- width=source->extent.width-source->extent.x;
- #pragma omp parallel for schedule(static) shared(progress,status) \
- dynamic_number_threads(source_image,width,height,1)
+ #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++)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
#endif
ssize_t
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
- width=source->extent.width-source->extent.x;
- #pragma omp parallel for schedule(static) shared(progress,status) \
- dynamic_number_threads(source_image,width,height,1)
+ #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++)
{
wand_view->description=ConstantString("WandView");
wand_view->wand=wand;
exception=AcquireExceptionInfo();
- wand_view->view=AcquireVirtualCacheView(wand_view->wand->images);
+ wand_view->view=AcquireVirtualCacheView(wand_view->wand->images,exception);
wand_view->extent.width=wand->images->columns;
wand_view->extent.height=wand->images->rows;
wand_view->pixel_wands=AcquirePixelsThreadSet(wand_view->extent.width);
WandViewId,(double) wand_view->id);
wand_view->description=ConstantString("WandView");
exception=AcquireExceptionInfo();
- wand_view->view=AcquireVirtualCacheView(wand_view->wand->images);
+ wand_view->view=AcquireVirtualCacheView(wand_view->wand->images,exception);
wand_view->wand=wand;
wand_view->extent.width=width;
wand_view->extent.height=height;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
#endif
ssize_t
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=destination->extent.height-destination->extent.y;
- width=destination->extent.width-destination->extent.x;
- #pragma omp parallel for schedule(static) shared(progress,status) \
- dynamic_number_threads(destination_image,width,height,1)
+ #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++)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
#endif
ssize_t
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
- width=source->extent.width-source->extent.x;
- #pragma omp parallel for schedule(static) shared(progress,status) \
- dynamic_number_threads(source_image,width,height,1)
+ #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++)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
size_t
- height,
- width;
+ height;
#endif
ssize_t
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
- width=source->extent.width-source->extent.x;
- #pragma omp parallel for schedule(static) shared(progress,status) \
- dynamic_number_threads(source_image,width,height,1)
+ #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++)
{