|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/blob.h"#include "MagickCore/blob-private.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/memory_.h"#include "MagickCore/semaphore.h"#include "MagickCore/string_.h"
Go to the source code of this file.
Data Structures | |
| struct | _DataSegmentInfo |
| struct | _MemoryInfo |
| struct | _MagickMemoryMethods |
Defines | |
| #define | BlockFooter(block, size) ((size_t *) ((char *) (block)+(size)-2*sizeof(size_t))) |
| #define | BlockHeader(block) ((size_t *) (block)-1) |
| #define | BlockSize 4096 |
| #define | BlockThreshold 1024 |
| #define | AlignedSize (16*sizeof(void *)) |
| #define | MaxBlockExponent 16 |
| #define | MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
| #define | MaxSegments 1024 |
| #define | MemoryGuard ((0xdeadbeef << 31)+0xdeafdeed) |
| #define | NextBlock(block) ((char *) (block)+SizeOfBlock(block)) |
| #define | NextBlockInList(block) (*(void **) (block)) |
| #define | PreviousBlock(block) ((char *) (block)-(*((size_t *) (block)-2))) |
| #define | PreviousBlockBit 0x01 |
| #define | PreviousBlockInList(block) (*((void **) (block)+1)) |
| #define | SegmentSize (2*1024*1024) |
| #define | SizeMask (~0x01) |
| #define | SizeOfBlock(block) (*BlockHeader(block) & SizeMask) |
Typedefs | |
| typedef struct _DataSegmentInfo | DataSegmentInfo |
| typedef struct _MemoryInfo | MemoryInfo |
| typedef struct _MagickMemoryMethods | MagickMemoryMethods |
Functions | |
| static size_t | MagickMax (const size_t x, const size_t y) |
| MagickExport void * | AcquireAlignedMemory (const size_t count, const size_t quantum) |
| MagickExport void * | AcquireMagickMemory (const size_t size) |
| MagickExport void * | AcquireQuantumMemory (const size_t count, const size_t quantum) |
| MagickExport void * | CopyMagickMemory (void *destination, const void *source, const size_t size) |
| MagickExport void | DestroyMagickMemory (void) |
| MagickExport void | GetMagickMemoryMethods (AcquireMemoryHandler *acquire_memory_handler, ResizeMemoryHandler *resize_memory_handler, DestroyMemoryHandler *destroy_memory_handler) |
| MagickExport void * | RelinquishAlignedMemory (void *memory) |
| MagickExport void * | RelinquishMagickMemory (void *memory) |
| MagickExport void * | ResetMagickMemory (void *memory, int byte, const size_t size) |
| MagickExport void * | ResizeMagickMemory (void *memory, const size_t size) |
| MagickExport void * | ResizeQuantumMemory (void *memory, const size_t count, const size_t quantum) |
| MagickExport void | SetMagickMemoryMethods (AcquireMemoryHandler acquire_memory_handler, ResizeMemoryHandler resize_memory_handler, DestroyMemoryHandler destroy_memory_handler) |
Variables | |
| static MagickMemoryMethods | memory_methods |
| #define AlignedSize (16*sizeof(void *)) |
Definition at line 73 of file memory.c.
Referenced by AcquireAlignedMemory().
| #define BlockFooter | ( | block, | |
| size | |||
| ) | ((size_t *) ((char *) (block)+(size)-2*sizeof(size_t))) |
Definition at line 68 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define BlockHeader | ( | block | ) | ((size_t *) (block)-1) |
Definition at line 70 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
Definition at line 75 of file memory.c.
Referenced by AcquireMagickMemory().
| #define MaxSegments 1024 |
Definition at line 76 of file memory.c.
Referenced by AcquireMagickMemory().
| #define NextBlock | ( | block | ) | ((char *) (block)+SizeOfBlock(block)) |
Definition at line 78 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlock | ( | block | ) | ((char *) (block)-(*((size_t *) (block)-2))) |
Definition at line 80 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlockBit 0x01 |
Definition at line 81 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlockInList | ( | block | ) | (*((void **) (block)+1)) |
| #define SegmentSize (2*1024*1024) |
Definition at line 83 of file memory.c.
Referenced by AcquireMagickMemory().
| #define SizeMask (~0x01) |
Definition at line 84 of file memory.c.
Referenced by AcquireMagickMemory(), and RelinquishMagickMemory().
| #define SizeOfBlock | ( | block | ) | (*BlockHeader(block) & SizeMask) |
Definition at line 85 of file memory.c.
Referenced by RelinquishMagickMemory().
| typedef struct _DataSegmentInfo DataSegmentInfo |
| typedef struct _MagickMemoryMethods MagickMemoryMethods |
| typedef struct _MemoryInfo MemoryInfo |
| MagickExport void* AcquireAlignedMemory | ( | const size_t | count, |
| const size_t | quantum | ||
| ) |
Definition at line 197 of file memory.c.
References AlignedSize, and MagickMax().
Referenced by AcquireCacheNexusPixels(), AdaptiveBlurImage(), AdaptiveSharpenImage(), GetBlurKernel(), EdgeImage(), EmbossImage(), GaussianBlurImage(), GetMotionBlurKernel(), SelectiveBlurImage(), SharpenImage(), ParseKernelArray(), AcquireKernelBuiltIn(), and CloneKernelInfo().
| MagickExport void* AcquireMagickMemory | ( | const size_t | size | ) |
Definition at line 392 of file memory.c.
References memory_methods, _MagickMemoryMethods::acquire_memory_handler, AcquireSemaphoreInfo(), LockSemaphoreInfo(), SizeMask, ResetMagickMemory(), SegmentSize, MaxBlocks, MaxSegments, UnlockSemaphoreInfo(), and MagickFalse.
Referenced by CloneBlobInfo(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadColorLists(), Ascii85Initialize(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), AcquireDrawInfo(), CloneDrawInfo(), ConvertPathToPolygon(), DrawImage(), AcquireExceptionInfo(), CloneExceptionInfo(), ThrowException(), AcquireFxInfo(), AppendValueToLinkedList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), NewHashmap(), NewLinkedList(), PutEntryInHashmap(), ClassifyImageColors(), GetCubeInfo(), GetNodeInfo(), IsHistogramImage(), IsPaletteImage(), CloneImageView(), NewImageView(), NewImageViewRegion(), AcquireImage(), AcquireImageInfo(), CloneImage(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), SetMagickInfo(), AcquireQuantumMemory(), ResizeMagickMemory(), LoadMimeList(), CloneMontageInfo(), AcquireKernelBuiltIn(), CloneKernelInfo(), LoadPolicyList(), LoadPolicyLists(), AcquireQuantizeInfo(), CloneQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), SetImageRegistry(), AcquireResampleFilter(), AcquireResizeFilter(), Classify(), GetImageDynamicThreshold(), InitializeIntervalTree(), AcquireRadonInfo(), AcquireSignatureInfo(), AddValueToSplayTree(), NewSplayTree(), AcquirePixelList(), AcquireStreamInfo(), AcquireStreamPixels(), QueueAuthenticPixelsStream(), AcquireStringInfo(), MagickCreateThreadKey(), GetThresholdMapFile(), AcquireTimerInfo(), AcquireTokenInfo(), LoadTypeList(), ListFiles(), AddChildToXMLTree(), ParseProcessingInstructions(), ParseInternalDoctype(), and NewXMLTreeTag().
| MagickExport void* AcquireQuantumMemory | ( | const size_t | count, |
| const size_t | quantum | ||
| ) |
Definition at line 463 of file memory.c.
References AcquireMagickMemory().
Referenced by AccelerateConvolveImage(), GetImageDepth(), SetImageDepth(), FileToBlob(), FileToImage(), ImageToBlob(), ImageToFile(), ImagesToBlob(), InjectImageBlob(), PingBlob(), AcquireCacheView(), CloneCacheView(), AcquirePixelCache(), AcquirePixelCacheNexus(), DiskToDiskPixelCacheClone(), PixelCacheCloneUnoptimized(), GetVirtualPixelsFromNexus(), AllocatePixelCachePixels(), GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), AcquireImageColormap(), SortColormapByIntensity(), RGBTransformImage(), TransformRGBImage(), GetImageDistortion(), GetImageDistortions(), HuffmanDecodeImage(), HuffmanEncodeImage(), LZWEncodeImage(), PackbitsEncodeImage(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfoList(), GetDelegateList(), CopyDelegateFile(), GenerateCoefficients(), DistortImage(), CloneDrawInfo(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), DrawDashPolygon(), DrawImage(), AcquirePolygonThreadSet(), TraceBezier(), TraceStrokePolygon(), DespeckleImage(), MotionBlurImage(), RadialBlurImage(), ClutImage(), ColorDecisionListImage(), ContrastStretchImage(), EqualizeImage(), GammaImage(), LinearStretchImage(), SigmoidalContrastImage(), GetImageFeatures(), AcquireFxInfo(), AcquireFxThreadSet(), WaveImage(), NewHashmap(), IncreaseHashmapCapacity(), GetImageHistogram(), IdentifyImage(), GetImageViewException(), CloneImage(), CompareImagesLayers(), OptimizeLayerFrames(), DeleteImages(), ImageListToArray(), GetLocaleInfoList(), GetLocaleList(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagicList(), GetMagickInfoList(), GetMagickList(), AcquireMagickMatrix(), GaussJordanElimination(), GetMimeInfoList(), GetMimeList(), MontageImageList(), ParseKernelArray(), GetCommandOptions(), FloodfillPaintImage(), GradientImage(), AcquireHistogramThreadSet(), AcquirePixelChannelMap(), ClonePixelInfo(), ExportImagePixels(), ImportImagePixels(), GetPolicyInfoList(), GetPolicyList(), GetIPTCProperty(), Get8BIMProperty(), GetEXIFProperty(), AcquirePixelThreadSet(), GetCubeInfo(), GetNodeInfo(), SetGrayscaleImage(), AcquireQuantumPixels(), AcquireRandomInfoThreadSet(), AcquireResampleFilterThreadSet(), AcquireContributionThreadSet(), SampleImage(), ScaleImage(), Classify(), GetImageDynamicThreshold(), InitializeIntervalTree(), OptimalTau(), ScaleSpace(), SegmentImage(), DeskewImage(), AcquireSignatureInfo(), BalanceSplayTree(), IterateOverSplayTree(), GetImageStatistics(), AcquirePixelList(), AcquirePixelListThreadSet(), StreamImagePixels(), AcquireString(), AcquireStringInfo(), BlobToStringInfo(), ConfigureFileToStringInfo(), ConstantString(), EscapeString(), SetStringInfoLength(), StringInfoToString(), StringToArgv(), StringInfoToHexString(), StringToList(), GetThresholdMapFile(), ConvertLatin1ToUTF8(), GetTypeInfoList(), GetTypeList(), access_utf8(), fopen_utf8(), open_utf8(), popen_utf8(), remove_utf8(), rename_utf8(), stat_utf8(), AcquireUniqueSymbolicLink(), Base64Decode(), Base64Encode(), ExpandFilenames(), GetExecutionPath(), GetPathComponents(), ListFiles(), ConvertUTF16ToUTF8(), ParseEntities(), ParseProcessingInstructions(), ParseInternalDoctype(), NewXMLTree(), and SetXMLTreeAttribute().
| MagickExport void* CopyMagickMemory | ( | void * | destination, |
| const void * | source, | ||
| const size_t | size | ||
| ) |
Definition at line 506 of file memory.c.
Referenced by CloneDrawInfo(), DestroyEdge(), TraceStrokePolygon(), CloneImage(), ClonePixelChannelMap(), WriteProfileLong(), WriteProfileShort(), Get8BIMProperty(), RiemersmaDither(), AcquireRandomInfo(), SetRandomKey(), UpdateSignature(), SubstituteString(), GetPathComponent(), ConvertUTF16ToUTF8(), ParseEntities(), ParseInternalDoctype(), NewXMLTreeTag(), and SetXMLTreeAttribute().
| MagickExport void DestroyMagickMemory | ( | void | ) |
Definition at line 554 of file memory.c.
References AcquireSemaphoreInfo(), LockSemaphoreInfo(), UnlockSemaphoreInfo(), MagickFalse, memory_methods, _MagickMemoryMethods::destroy_memory_handler, UnmapBlob(), ResetMagickMemory(), and DestroySemaphoreInfo().
| MagickExport void GetMagickMemoryMethods | ( | AcquireMemoryHandler * | acquire_memory_handler, |
| ResizeMemoryHandler * | resize_memory_handler, | ||
| DestroyMemoryHandler * | destroy_memory_handler | ||
| ) |
Definition at line 682 of file memory.c.
References memory_methods, _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::resize_memory_handler, and _MagickMemoryMethods::destroy_memory_handler.
| static size_t MagickMax | ( | const size_t | x, |
| const size_t | y | ||
| ) | [inline, static] |
Definition at line 190 of file memory.c.
Referenced by AcquireAlignedMemory().
| MagickExport void* RelinquishAlignedMemory | ( | void * | memory | ) |
Definition at line 718 of file memory.c.
Referenced by RelinquishCacheNexusPixels(), AdaptiveBlurImage(), AdaptiveSharpenImage(), BlurImage(), MotionBlurImage(), SelectiveBlurImage(), and DestroyKernelInfo().
| MagickExport void* RelinquishMagickMemory | ( | void * | memory | ) |
Definition at line 749 of file memory.c.
References memory_methods, _MagickMemoryMethods::destroy_memory_handler, LockSemaphoreInfo(), SizeOfBlock, BlockHeader, NextBlock, PreviousBlockBit, PreviousBlock, SizeMask, BlockFooter, and UnlockSemaphoreInfo().
Referenced by AccelerateConvolveImage(), AnnotateImage(), GetMultilineTypeMetrics(), SetImageArtifact(), GetImageDepth(), SetImageDepth(), DestroyBlob(), FileToBlob(), FileToImage(), ImageToFile(), InjectImageBlob(), PingBlob(), DestroyCacheView(), DiskToDiskPixelCacheClone(), PixelCacheCloneUnoptimized(), RelinquishPixelCachePixels(), DestroyPixelCache(), DestroyPixelCacheNexus(), GetVirtualPixelsFromNexus(), ListCoderInfo(), DestroyCoderNode(), LoadCoderList(), LoadCoderLists(), DestroyColorElement(), ListColorInfo(), LoadColorList(), SortColormapByIntensity(), RGBTransformImage(), TransformRGBImage(), GetNormalizedCrossCorrelationDistortion(), GetImageDistortion(), GetImageDistortions(), HuffmanDecodeImage(), HuffmanEncodeImage(), LZWEncodeImage(), PackbitsEncodeImage(), DestroyConfigureElement(), GetConfigureOptions(), GetConfigurePaths(), ListConfigureInfo(), LoadConfigureList(), ReadInlineImage(), DestroyDelegate(), GetDelegateCommand(), CopyDelegateFile(), InvokeDelegate(), ListDelegateInfo(), LoadDelegateList(), GenerateCoefficients(), DistortImage(), SparseColorImage(), ConvertPathToPolygon(), DestroyDrawInfo(), DestroyEdge(), DestroyPolygonInfo(), DrawDashPolygon(), DrawImage(), DestroyPolygonThreadSet(), AcquirePolygonThreadSet(), DrawStrokePolygon(), TraceBezier(), TraceStrokePolygon(), DespeckleImage(), MotionBlurImage(), PreviewImage(), RadialBlurImage(), ClutImage(), ColorDecisionListImage(), ContrastStretchImage(), EqualizeImage(), GammaImage(), LinearStretchImage(), SigmoidalContrastImage(), DestroyExceptionElement(), DestroyExceptionInfo(), GetImageFeatures(), AcquireFxInfo(), DestroyFxInfo(), DestroyFxThreadSet(), WaveImage(), ClearLinkedList(), DestroyHashmap(), DestroyLinkedList(), InsertValueInSortedLinkedList(), IncreaseHashmapCapacity(), PutEntryInHashmap(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), DestroyCubeInfo(), DestroyColorCube(), GetNumberColors(), IdentifyImage(), DestroyImageView(), DestroyImage(), DestroyImageInfo(), CompareImagesLayers(), OptimizeLayerFrames(), DeleteImages(), GetLocaleOptions(), ListLocaleInfo(), DestroyLocaleNode(), LoadLocaleList(), ListLogInfo(), DestroyLogElement(), LogMagickEventList(), LoadLogList(), ListMagicInfo(), LoadMagicList(), DestroyMagicElement(), DestroyMagickNode(), ListMagickInfo(), AcquireMagickMatrix(), GaussJordanElimination(), RelinquishMagickMatrix(), ResizeMagickMemory(), ResizeQuantumMemory(), ListMimeInfo(), DestroyMimeElement(), DestroyMontageInfo(), MontageImageList(), DestroyKernelInfo(), SetImageOption(), FloodfillPaintImage(), DestroyHistogramThreadSet(), DestroyPixelChannelMap(), ExportImagePixels(), ImportImagePixels(), ListPolicyInfo(), LoadPolicyList(), DestroyPolicyElement(), ProfileImage(), SetImageProfile(), GetXMPProperty(), GetMagickProperty(), SetImageProperty(), DestroyQuantizeInfo(), DestroyPixelThreadSet(), SetGrayscaleImage(), DestroyQuantumInfo(), DestroyQuantumPixels(), DestroyRandomInfoThreadSet(), DestroyRandomInfo(), DestroyRegistryNode(), SetImageRegistry(), DestroyResampleFilterThreadSet(), DestroyResampleFilter(), DestroyResizeFilter(), DestroyContributionThreadSet(), SampleImage(), ScaleImage(), Classify(), GetImageDynamicThreshold(), InitializeIntervalTree(), FreeNodes(), OptimalTau(), ScaleSpace(), SegmentImage(), DestroyRadonInfo(), DeskewImage(), DestroySignatureInfo(), BalanceSplayTree(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroySplayTree(), IterateOverSplayTree(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetSplayTree(), GetImageMean(), DestroyPixelList(), DestroyPixelListThreadSet(), RelinquishStreamPixels(), DestroyPixelStream(), DestroyStreamInfo(), StreamImagePixels(), DestroyString(), DestroyStringInfo(), DestroyStringList(), StringToArgv(), MagickDeleteThreadKey(), DestroyThresholdMap(), DestroyTimerInfo(), DestroyTokenInfo(), TransformImages(), ListTypeInfo(), DestroyTypeNode(), LoadTypeList(), access_utf8(), fopen_utf8(), open_utf8(), popen_utf8(), remove_utf8(), rename_utf8(), stat_utf8(), AcquireUniqueSymbolicLink(), Base64Decode(), ExpandFilenames(), GetExecutionPath(), ListFiles(), SystemCommand(), AddPathToXMLTree(), CanonicalXMLContent(), DestroyXMLTreeAttributes(), DestroyXMLTree(), GetXMLTreePath(), and ParseInternalDoctype().
| MagickExport void* ResetMagickMemory | ( | void * | memory, |
| int | byte, | ||
| const size_t | size | ||
| ) |
Definition at line 821 of file memory.c.
Referenced by GetMultilineTypeMetrics(), GetTypeMetrics(), GetBlobInfo(), OpenBlob(), AcquireCacheView(), CloneCacheView(), AcquirePixelCache(), AcquirePixelCacheNexus(), PixelCacheCloneUnoptimized(), GetPixelCacheMethods(), GetVirtualPixelsFromNexus(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadColorLists(), QueryColorCompliance(), RGBTransformImage(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetMeanAbsoluteDistortion(), GetMeanSquaredDistortion(), GetPeakAbsoluteDistortion(), GetImageDistortion(), GetImageDistortions(), Ascii85Initialize(), HuffmanEncodeImage(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), DistortResizeImage(), ConvertPathToPolygon(), AcquirePolygonThreadSet(), GetAffineMatrix(), GetDrawInfo(), AdaptiveBlurImage(), AdaptiveSharpenImage(), DespeckleImage(), GaussianBlurImage(), SharpenImage(), ContrastStretchImage(), EqualizeImage(), GammaImage(), LinearStretchImage(), SigmoidalContrastImage(), GetExceptionInfo(), ThrowException(), GetImageFeatures(), AcquireFxInfo(), AcquireFxThreadSet(), SetGeometry(), SetGeometryInfo(), NewHashmap(), NewLinkedList(), IncreaseHashmapCapacity(), GetCubeInfo(), GetNodeInfo(), CloneImageView(), NewImageView(), NewImageViewRegion(), AcquireImage(), CloneImage(), GetImageInfo(), SetImageInfo(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), SetMagickInfo(), GaussJordanElimination(), AcquireMagickMemory(), DestroyMagickMemory(), LoadMimeList(), GetMontageInfo(), MontageImageList(), ParseKernelArray(), AcquireKernelBuiltIn(), GradientImage(), AcquireHistogramThreadSet(), OilPaintImage(), AcquirePixelChannelMap(), InitializePixelChannelMap(), LoadPolicyList(), LoadPolicyLists(), TracePSClippath(), TraceSVGClippath(), AcquirePixelThreadSet(), DitherImage(), GetImageQuantizeError(), GetQuantizeInfo(), AcquireQuantumPixels(), GetQuantumInfo(), AcquireRandomInfoThreadSet(), AcquireRandomInfo(), DestroyRandomInfo(), SetImageRegistry(), AcquireResampleFilterThreadSet(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireContributionThreadSet(), VerticalFilter(), Classify(), GetImageDynamicThreshold(), AllocateSemaphoreInfo(), ResetRadonCells(), AcquireRadonInfo(), AcquireSignatureInfo(), FinalizeSignature(), TransformSignature(), NewSplayTree(), GetImageStatistics(), AcquirePixelList(), AcquirePixelListThreadSet(), AcquireStreamInfo(), AcquireStringInfo(), FormatMagickTime(), ResetStringInfo(), SetStringInfo(), AcquireTimerInfo(), GetTimerInfo(), LoadTypeList(), AddChildToXMLTree(), and NewXMLTreeTag().
| MagickExport void* ResizeMagickMemory | ( | void * | memory, |
| const size_t | size | ||
| ) |
Definition at line 874 of file memory.c.
References AcquireMagickMemory(), memory_methods, _MagickMemoryMethods::resize_memory_handler, RelinquishMagickMemory(), LockSemaphoreInfo(), MagickFalse, UnlockSemaphoreInfo(), ThrowFatalException, and ResourceLimitFatalError.
Referenced by ResizeQuantumMemory(), and QueueAuthenticPixelsStream().
| MagickExport void* ResizeQuantumMemory | ( | void * | memory, |
| const size_t | count, | ||
| const size_t | quantum | ||
| ) |
Definition at line 934 of file memory.c.
References RelinquishMagickMemory(), and ResizeMagickMemory().
Referenced by FileToBlob(), ImageToBlob(), ImagesToBlob(), SeekBlob(), SetBlobExtent(), WriteBlob(), AcquireImageColormap(), ConvertPathToPolygon(), DrawImage(), TraceStrokePolygon(), ClassifyImageColors(), IsHistogramImage(), IsPaletteImage(), TranslateEvent(), TranslateFilename(), InterpretImageProperties(), WriteStreamImage(), CloneString(), ConcatenateString(), SetStringInfoLength(), SubstituteString(), ExpandFilenames(), ListFiles(), CanonicalXMLContent(), ConvertUTF16ToUTF8(), ParseEntities(), ParseProcessingInstructions(), ParseInternalDoctype(), NewXMLTree(), SetXMLTreeAttribute(), EncodePredefinedEntities(), XMLTreeTagToXML(), and XMLTreeInfoToXML().
| MagickExport void SetMagickMemoryMethods | ( | AcquireMemoryHandler | acquire_memory_handler, |
| ResizeMemoryHandler | resize_memory_handler, | ||
| DestroyMemoryHandler | destroy_memory_handler | ||
| ) |
Definition at line 979 of file memory.c.
References memory_methods, _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::resize_memory_handler, and _MagickMemoryMethods::destroy_memory_handler.
MagickMemoryMethods memory_methods [static] |
{
(AcquireMemoryHandler) malloc,
(ResizeMemoryHandler) realloc,
(DestroyMemoryHandler) free
}
Definition at line 140 of file memory.c.
Referenced by AcquireMagickMemory(), DestroyMagickMemory(), GetMagickMemoryMethods(), RelinquishMagickMemory(), ResizeMagickMemory(), and SetMagickMemoryMethods().