18#ifndef MAGICKCORE_RESAMPLE_PRIVATE_H
19#define MAGICKCORE_RESAMPLE_PRIVATE_H
21#include "MagickCore/thread-private.h"
23#if defined(__cplusplus) || defined(c_plusplus)
32 for (i=0; i < (ssize_t) GetMagickResourceLimit(ThreadResource); i++)
34 filter[i]=DestroyResampleFilter(filter[i]);
40 const VirtualPixelMethod method,
const MagickBooleanType interpolate,
52 number_threads=(size_t) GetMagickResourceLimit(ThreadResource);
56 ThrowFatalException(ResourceLimitFatalError,
"MemoryAllocationFailed");
57 (void) memset(filter,0,number_threads*
sizeof(*filter));
58 for (i=0; i < (ssize_t) number_threads; i++)
60 filter[i]=AcquireResampleFilter(image,exception);
61 if (method != UndefinedVirtualPixelMethod)
62 (void) SetResampleFilterVirtualPixelMethod(filter[i],method);
63 if (interpolate != MagickFalse)
64 SetResampleFilter(filter[i],PointFilter);
69#if defined(__cplusplus) || defined(c_plusplus)