|
MagickCore
6.9.1
|
#include "magick/studio.h"#include "magick/blob.h"#include "magick/blob-private.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/memory_.h"#include "magick/memory-private.h"#include "magick/resource_.h"#include "magick/semaphore.h"#include "magick/string_.h"#include "magick/utility-private.h"
Go to the source code of this file.
Data Structures | |
| struct | _DataSegmentInfo |
| struct | _MagickMemoryMethods |
| struct | _MemoryInfo |
| struct | _MemoryPool |
Macros | |
| #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 | 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) |
| #define | AlignedExtent(size, alignment) (((size)+((alignment)-1)) & ~((alignment)-1)) |
Typedefs | |
| typedef struct _DataSegmentInfo | DataSegmentInfo |
| typedef struct _MagickMemoryMethods | MagickMemoryMethods |
| typedef struct _MemoryPool | MemoryPool |
Enumerations | |
| enum | VirtualMemoryType { UndefinedVirtualMemory, AlignedVirtualMemory, MapVirtualMemory, UnalignedVirtualMemory } |
Functions | |
| 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 MemoryInfo * | AcquireVirtualMemory (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 * | GetVirtualMemoryBlob (const MemoryInfo *memory_info) |
| MagickExport void * | RelinquishAlignedMemory (void *memory) |
| MagickExport void * | RelinquishMagickMemory (void *memory) |
| MagickExport MemoryInfo * | RelinquishVirtualMemory (MemoryInfo *memory_info) |
| 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 AlignedExtent | ( | size, | |
| alignment | |||
| ) | (((size)+((alignment)-1)) & ~((alignment)-1)) |
Referenced by AcquireAlignedMemory().
| #define BlockFooter | ( | block, | |
| size | |||
| ) | ((size_t *) ((char *) (block)+(size)-2*sizeof(size_t))) |
Definition at line 71 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define BlockHeader | ( | block | ) | ((size_t *) (block)-1) |
Definition at line 73 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
Definition at line 77 of file memory.c.
Referenced by AcquireMagickMemory().
| #define MaxSegments 1024 |
Definition at line 78 of file memory.c.
Referenced by AcquireMagickMemory().
| #define NextBlock | ( | block | ) | ((char *) (block)+SizeOfBlock(block)) |
Definition at line 80 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlock | ( | block | ) | ((char *) (block)-(*((size_t *) (block)-2))) |
Definition at line 82 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlockBit 0x01 |
Definition at line 83 of file memory.c.
Referenced by RelinquishMagickMemory().
| #define PreviousBlockInList | ( | block | ) | (*((void **) (block)+1)) |
| #define SegmentSize (2*1024*1024) |
Definition at line 85 of file memory.c.
Referenced by AcquireMagickMemory().
| #define SizeMask (~0x01) |
Definition at line 86 of file memory.c.
Referenced by AcquireMagickMemory(), and RelinquishMagickMemory().
| #define SizeOfBlock | ( | block | ) | (*BlockHeader(block) & SizeMask) |
Definition at line 87 of file memory.c.
Referenced by RelinquishMagickMemory().
| typedef struct _DataSegmentInfo DataSegmentInfo |
| typedef struct _MagickMemoryMethods MagickMemoryMethods |
| typedef struct _MemoryPool MemoryPool |
| enum VirtualMemoryType |
| MagickExport void* AcquireAlignedMemory | ( | const size_t | count, |
| const size_t | quantum | ||
| ) |
Definition at line 237 of file memory.c.
References AlignedExtent, and CACHE_LINE_SIZE.
Referenced by AcquireCacheNexusPixels(), AcquireContributionThreadSet(), AcquireKernelBuiltIn(), AcquirePixelCacheNexus(), AcquireRandomInfoThreadSet(), AcquireResampleFilterThreadSet(), AcquireStreamInfo(), AcquireStreamPixels(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AllocatePixelCachePixels(), CloneCacheView(), CloneKernelInfo(), CloneMagickPixelPacket(), ConvolveImageChannel(), EdgeImage(), EmbossImage(), FilterImageChannel(), GetMotionBlurKernel(), ParseKernelArray(), SelectiveBlurImageChannel(), SharpenImageChannel(), and WriteStreamImage().
| MagickExport void* AcquireMagickMemory | ( | const size_t | size | ) |
Definition at line 458 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, ActivateSemaphoreInfo(), _MemoryPool::allocation, _MemoryPool::blocks, LockSemaphoreInfo(), MagickFalse, MaxBlocks, MaxSegments, memory_methods, _DataSegmentInfo::next, _DataSegmentInfo::previous, ResetMagickMemory(), _MemoryPool::segment_pool, SegmentSize, SizeMask, and UnlockSemaphoreInfo().
Referenced by AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireDistributeCacheInfo(), AcquireDrawInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImage(), AcquireImageInfo(), AcquireKernelBuiltIn(), AcquireLogCache(), AcquireMagicCache(), AcquireMatrixInfo(), AcquirePixelList(), AcquirePolicyCache(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireQuantumMemory(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireStringInfo(), AcquireTimerInfo(), AcquireTokenInfo(), AcquireVirtualMemory(), AddChildToXMLTree(), AddValueToSplayTree(), AppendValueToLinkedList(), Ascii85Initialize(), Classify(), ClassifyImageColors(), CloneBlobInfo(), CloneDrawInfo(), CloneExceptionInfo(), CloneImage(), CloneImageView(), CloneKernelInfo(), CloneMontageInfo(), CloneQuantizeInfo(), ConvertPathToPolygon(), DrawImage(), GetCubeInfo(), GetImageAttribute(), GetImageDynamicThreshold(), GetNodeInfo(), GetOpenCLCachedFilesDirectory(), GetThresholdMapFile(), InitializeIntervalTree(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsHistogramImage(), IsPaletteImage(), ListFiles(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MagickCreateThreadKey(), NewHashmap(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), NewXMLTreeTag(), ParseInternalDoctype(), ParseKernelArray(), ParseProcessingInstructions(), PutEntryInHashmap(), ReacquireMemory(), ResizeMagickMemory(), SetImageRegistry(), SetMagickInfo(), and ThrowException().
| MagickExport void* AcquireQuantumMemory | ( | const size_t | count, |
| const size_t | quantum | ||
| ) |
Definition at line 529 of file memory.c.
References AcquireMagickMemory().
Referenced by AcquireContributionThreadSet(), AcquireFxInfo(), AcquireFxThreadSet(), AcquireHistogramThreadSet(), AcquireImageColormap(), AcquireMagickMatrix(), AcquirePixelCacheNexus(), AcquirePixelList(), AcquirePixelListThreadSet(), AcquirePixelThreadSet(), AcquirePolygonThreadSet(), AcquireQuantumPixels(), AcquireSignatureInfo(), AcquireString(), AcquireStringInfo(), AcquireUniqueSymbolicLink(), AllocateString(), BalanceSplayTree(), Base64Decode(), Base64Encode(), BlobToStringInfo(), Classify(), CloneDrawInfo(), CloneImage(), ClutImageChannel(), ColorDecisionListImage(), ColorFloodfillImage(), CompareImageLayers(), ConfigureFileToStringInfo(), ConstantString(), ContrastStretchImageChannel(), ConvertLatin1ToUTF8(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), ConvertUTF16ToUTF8(), CopyDelegateFile(), DeleteImages(), DeskewImage(), DistortImage(), DrawDashPolygon(), DrawImage(), EqualizeImageChannel(), EscapeString(), ExpandFilenames(), ExportImagePixels(), FileToBlob(), FileToImage(), FileToXML(), GammaImageChannel(), GaussJordanElimination(), GenerateCoefficients(), Get8BIMProperty(), GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), GetCommandOptions(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfoList(), GetDelegateList(), GetExecutionPath(), GetEXIFProperty(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImageChannelMoments(), GetImageChannelPerceptualHash(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetImageHistogram(), GetImageViewException(), GetIPTCProperty(), GetLocaleInfoList(), GetLocaleList(), GetLocationStatistics(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagickInfoList(), GetMagickList(), GetMagicList(), GetMimeInfoList(), GetMimeList(), GetNodeInfo(), GetPathComponents(), GetPolicyInfoList(), GetPolicyList(), GetThresholdMapFile(), GetTypeInfoList(), GetTypeList(), GradientImage(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImageListToArray(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImportImagePixels(), IncreaseHashmapCapacity(), InitializeIntervalTree(), InjectImageBlob(), IterateOverSplayTree(), LinearStretchImage(), ListFiles(), LZWEncodeImage(), MatteFloodfillImage(), MergeConnectedComponents(), MontageImageList(), MorphologyPrimitive(), MotionBlurImageChannel(), NewHashmap(), NewXMLTree(), OptimalTau(), OptimizeLayerFrames(), PackbitsEncodeImage(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), PingBlob(), ReduceImageColors(), RGBTransformImage(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), SetGrayscaleImage(), SetImageChannelDepth(), SetStringInfoLength(), SetXMLTreeAttribute(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), StatisticsComponentsStatistics(), StreamImagePixels(), StringInfoToHexString(), StringInfoToString(), StringToArgv(), StringToArrayOfDoubles(), StringToList(), TraceBezier(), TraceStrokePolygon(), TransformRGBImage(), and WaveImage().
| MagickExport MemoryInfo* AcquireVirtualMemory | ( | const size_t | count, |
| const size_t | quantum | ||
| ) |
Definition at line 568 of file memory.c.
References AcquireAlignedMemory(), AcquireMagickMemory(), AcquireMagickResource(), AcquireUniqueFileResource(), AlignedVirtualMemory, _MemoryInfo::blob, _MemoryInfo::filename, IOMode, _MemoryInfo::length, MagickAssumeAligned, MagickFalse, MagickSignature, MapBlob(), MapResource, MapVirtualMemory, MemoryResource, RelinquishMagickResource(), RelinquishVirtualMemory(), ResetMagickMemory(), ResourceLimitFatalError, _MemoryInfo::signature, ThrowFatalException, _MemoryInfo::type, and UnalignedVirtualMemory.
Referenced by DespeckleImage(), FloodfillPaintImage(), and GetCubeInfo().
| MagickExport void* CopyMagickMemory | ( | void * | destination, |
| const void * | source, | ||
| const size_t | size | ||
| ) |
Definition at line 673 of file memory.c.
Referenced by AcquireRandomInfo(), CloneDrawInfo(), CloneImage(), CloneMemory(), CompositeImageChannel(), ConvertUTF16ToUTF8(), CopyImageRegion(), CropImage(), DestroyEdge(), ExcerptImage(), FlipImage(), FrameImage(), Get8BIMProperty(), GetPathComponent(), NewXMLTreeTag(), ParseEntities(), ParseInternalDoctype(), RiemersmaDither(), SetRandomKey(), SetXMLTreeAttribute(), Strip(), SubstituteString(), TextureImage(), TraceStrokePolygon(), TransposeImage(), UpdateSignature(), WriteProfileLong(), WriteProfileShort(), WriteResourceLong(), and WriteTo8BimProfile().
| MagickExport void DestroyMagickMemory | ( | void | ) |
Definition at line 721 of file memory.c.
References ActivateSemaphoreInfo(), _DataSegmentInfo::allocation, _MagickMemoryMethods::destroy_memory_handler, DestroySemaphoreInfo(), _DataSegmentInfo::length, LockSemaphoreInfo(), MagickFalse, _DataSegmentInfo::mapped, memory_methods, _MemoryPool::number_segments, ResetMagickMemory(), _MemoryPool::segments, UnlockSemaphoreInfo(), and UnmapBlob().
| MagickExport void GetMagickMemoryMethods | ( | AcquireMemoryHandler * | acquire_memory_handler, |
| ResizeMemoryHandler * | resize_memory_handler, | ||
| DestroyMemoryHandler * | destroy_memory_handler | ||
| ) |
Definition at line 849 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::destroy_memory_handler, memory_methods, and _MagickMemoryMethods::resize_memory_handler.
| MagickExport void* GetVirtualMemoryBlob | ( | const MemoryInfo * | memory_info | ) |
Definition at line 884 of file memory.c.
References _MemoryInfo::blob, MagickSignature, and _MemoryInfo::signature.
Referenced by DespeckleImage(), FloodfillPaintImage(), and GetCubeInfo().
| MagickExport void* RelinquishAlignedMemory | ( | void * | memory | ) |
Definition at line 914 of file memory.c.
Referenced by AcquireFxInfo(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), DestroyCacheView(), DestroyContributionThreadSet(), DestroyKernelInfo(), DestroyPixelCacheNexus(), DestroyRandomInfoThreadSet(), DestroyResampleFilterThreadSet(), DestroyStreamInfo(), FilterImageChannel(), MotionBlurImageChannel(), RelinquishCacheNexusPixels(), RelinquishPixelCachePixels(), RelinquishStreamPixels(), RelinquishVirtualMemory(), SelectiveBlurImageChannel(), and WriteStreamImage().
| MagickExport void* RelinquishMagickMemory | ( | void * | memory | ) |
Definition at line 951 of file memory.c.
References BlockFooter, BlockHeader, _MagickMemoryMethods::destroy_memory_handler, LockSemaphoreInfo(), memory_methods, NextBlock, PreviousBlock, PreviousBlockBit, SizeMask, SizeOfBlock, and UnlockSemaphoreInfo().
Referenced by access_utf8(), AcquireCoderCache(), AcquireFxInfo(), AcquireMagickMatrix(), AcquirePolygonThreadSet(), AcquireQuantumPixels(), AcquireUniqueSymbolicLink(), AddPathToXMLTree(), AnnotateImage(), BalanceSplayTree(), Base64Decode(), CanonicalXMLContent(), Classify(), ClearLinkedList(), ClutImageChannel(), ColorDecisionListImage(), ColorFloodfillImage(), CompareImageLayers(), ConfigureFileToStringInfo(), ContrastStretchImageChannel(), ConvertPathToPolygon(), CopyDelegateFile(), DeleteImages(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DeskewImage(), DestroyAttribute(), DestroyBlob(), DestroyCoderNode(), DestroyColorCube(), DestroyColorElement(), DestroyConfigureElement(), DestroyContributionThreadSet(), DestroyCubeInfo(), DestroyDelegate(), DestroyDistributeCacheInfo(), DestroyDrawInfo(), DestroyEdge(), DestroyExceptionElement(), DestroyExceptionInfo(), DestroyFxInfo(), DestroyFxThreadSet(), DestroyHashmap(), DestroyHistogramThreadSet(), DestroyImage(), DestroyImageInfo(), DestroyImageView(), DestroyKernelInfo(), DestroyLinkedList(), DestroyLocaleNode(), DestroyLogElement(), DestroyMagicElement(), DestroyMagickNode(), DestroyMatrixInfo(), DestroyMimeElement(), DestroyMontageInfo(), DestroyPixelCache(), DestroyPixelCacheNexus(), DestroyPixelList(), DestroyPixelListThreadSet(), DestroyPixelStream(), DestroyPixelThreadSet(), DestroyPolicyElement(), DestroyPolygonInfo(), DestroyPolygonThreadSet(), DestroyQuantizeInfo(), DestroyQuantumInfo(), DestroyQuantumPixels(), DestroyRandomInfo(), DestroyRegistryNode(), DestroyResampleFilter(), DestroyResizeFilter(), DestroySignatureInfo(), DestroySplayTree(), DestroyStreamInfo(), DestroyString(), DestroyStringInfo(), DestroyStringList(), DestroyThresholdMap(), DestroyTimerInfo(), DestroyTokenInfo(), DestroyTypeNode(), DestroyXMLTree(), DestroyXMLTreeAttributes(), DestroyXMLTreeRoot(), DistortImage(), DrawDashPolygon(), DrawImage(), DrawStrokePolygon(), EqualizeImageChannel(), ExpandFilenames(), ExportImagePixels(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), FileToStringInfo(), FileToXML(), fopen_utf8(), FreeNodes(), GammaImageChannel(), GaussJordanElimination(), GenerateCoefficients(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetExecutionPath(), GetHostname(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelEntropy(), GetImageChannelFeatures(), GetImageChannelMean(), GetImageChannelMoments(), GetImageChannelPerceptualHash(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetLocaleOptions(), GetMultilineTypeMetrics(), GetNormalizedCrossCorrelationDistortion(), GetNumberColors(), GetPerceptualHashDistortion(), GetXMLTreePath(), GetXMPProperty(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImportImagePixels(), IncreaseHashmapCapacity(), InitializeIntervalTree(), InjectImageBlob(), InsertValueInSortedLinkedList(), InvokeDelegate(), IsOptionMember(), IterateOverSplayTree(), LinearStretchImage(), ListCoderInfo(), ListColorInfo(), ListConfigureInfo(), ListDelegateInfo(), ListFiles(), ListLocaleInfo(), ListLogInfo(), ListMagicInfo(), ListMagickInfo(), ListMimeInfo(), ListPolicyInfo(), ListTypeInfo(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadPolicyCache(), LoadTypeCache(), LogMagickEventList(), LZWEncodeImage(), MagickDeleteThreadKey(), MatteFloodfillImage(), MergeConnectedComponents(), MontageImageList(), MorphologyPrimitive(), MotionBlurImageChannel(), open_utf8(), OpenMagickStream(), OptimalTau(), OptimizeLayerFrames(), PackbitsEncodeImage(), ParseInternalDoctype(), PingBlob(), popen_utf8(), PreviewImage(), PutEntryInHashmap(), ReacquireMemory(), ReadInlineImage(), ReduceImageColors(), RelinquishMagickMatrix(), RelinquishVirtualMemory(), remove_utf8(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), rename_utf8(), ResetSplayTree(), ResizeMagickMemory(), ResizeQuantumMemory(), RGBTransformImage(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), SetGrayscaleImage(), SetImageArtifact(), SetImageChannelDepth(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), SparseColorImage(), stat_utf8(), StatisticsComponentsStatistics(), StreamImagePixels(), StringToArgv(), TraceBezier(), TraceStrokePolygon(), TransformImages(), TransformRGBImage(), and WaveImage().
| MagickExport MemoryInfo* RelinquishVirtualMemory | ( | MemoryInfo * | memory_info | ) |
Definition at line 1018 of file memory.c.
References AlignedVirtualMemory, _MemoryInfo::blob, _MemoryInfo::filename, _MemoryInfo::length, MagickSignature, MapResource, MapVirtualMemory, MemoryResource, RelinquishAlignedMemory(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), _MemoryInfo::signature, _MemoryInfo::type, UnalignedVirtualMemory, and UnmapBlob().
Referenced by AcquireVirtualMemory(), DespeckleImage(), DestroyCubeInfo(), and FloodfillPaintImage().
| MagickExport void* ResetMagickMemory | ( | void * | memory, |
| int | byte, | ||
| const size_t | size | ||
| ) |
Definition at line 1079 of file memory.c.
Referenced by AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireContributionThreadSet(), AcquireDistributeCacheInfo(), AcquireFxInfo(), AcquireFxThreadSet(), AcquireHistogramThreadSet(), AcquireImage(), AcquireKernelBuiltIn(), AcquireLogCache(), AcquireMagicCache(), AcquireMagickMemory(), AcquireMatrixInfo(), AcquirePixelCacheNexus(), AcquirePixelList(), AcquirePixelListThreadSet(), AcquirePixelThreadSet(), AcquirePolicyCache(), AcquirePolygonThreadSet(), AcquireQuantumPixels(), AcquireRandomInfo(), AcquireRandomInfoThreadSet(), AcquireResampleFilter(), AcquireResampleFilterThreadSet(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireStringInfo(), AcquireTimerInfo(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AddChildToXMLTree(), AllocateSemaphoreInfo(), Ascii85Initialize(), CannyEdgeImage(), Classify(), CloneCacheView(), CloneImage(), CloneImageView(), ClonePixelCacheRepository(), ConnectPixelCacheServer(), ContrastStretchImageChannel(), ConvertPathToPolygon(), DespeckleImage(), DestroyMagickMemory(), DestroyRandomInfo(), DistortResizeImage(), DistributePixelCacheServer(), DitherImage(), EdgeImage(), EnhanceImage(), EqualizeImageChannel(), FinalizeSignature(), FormatMagickTime(), GammaImageChannel(), GaussJordanElimination(), GetAbsoluteDistortion(), GetAffineMatrix(), GetBlobInfo(), GetCubeInfo(), GetDrawInfo(), GetExceptionInfo(), GetFuzzDistortion(), GetImageAttribute(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImageChannelMoments(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetImageInfo(), GetImageQuantizeError(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanSquaredDistortion(), GetMontageInfo(), GetMultilineTypeMetrics(), GetNodeInfo(), GetPathAttributes(), GetPeakAbsoluteDistortion(), GetPixelCacheMethods(), GetQuantizeInfo(), GetQuantumInfo(), GetTimerInfo(), GetTypeMetrics(), GradientImage(), HorizontalFilter(), HuffmanEncodeImage(), IdentityAffine(), IncreaseHashmapCapacity(), InitializeExceptionInfo(), LinearStretchImage(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MergeConnectedComponents(), MontageImageList(), NewHashmap(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), NewXMLTreeTag(), NullMatrix(), OilPaintImage(), OpenBlob(), ParseKernelArray(), PopDoublePixel(), PopFloatPixel(), QueryMagickColorCompliance(), ResetStringInfo(), RGBTransformImage(), ScaleImage(), SetGeometry(), SetGeometryInfo(), SetImageAlphaChannel(), SetImageColorspace(), SetImageInfo(), SetImageRegistry(), SetMagickInfo(), SetStringInfo(), SharpenImageChannel(), SigmoidalContrastImageChannel(), StatisticsComponentsStatistics(), ThrowException(), TracePSClippath(), TraceSVGClippath(), TransformSignature(), VerticalFilter(), and WriteStreamImage().
| MagickExport void* ResizeMagickMemory | ( | void * | memory, |
| const size_t | size | ||
| ) |
Definition at line 1132 of file memory.c.
References AcquireMagickMemory(), LockSemaphoreInfo(), MagickFalse, memory_methods, RelinquishMagickMemory(), _MagickMemoryMethods::resize_memory_handler, ResourceLimitFatalError, ThrowFatalException, and UnlockSemaphoreInfo().
Referenced by ResizeQuantumMemory().
| MagickExport void* ResizeQuantumMemory | ( | void * | memory, |
| const size_t | count, | ||
| const size_t | quantum | ||
| ) |
Definition at line 1192 of file memory.c.
References RelinquishMagickMemory(), and ResizeMagickMemory().
Referenced by AcquireImageColormap(), BlobToStringInfo(), CanonicalXMLContent(), ClassifyImageColors(), CloneString(), ConcatenateString(), ConvertPathToPolygon(), ConvertUTF16ToUTF8(), DrawImage(), EncodePredefinedEntities(), ExpandFilenames(), FileToBlob(), FileToXML(), ImagesToBlob(), ImageToBlob(), IsHistogramImage(), IsPaletteImage(), ListFiles(), NewXMLTree(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), SeekBlob(), SetBlobExtent(), SetStringInfoLength(), SetXMLTreeAttribute(), SubstituteString(), TraceStrokePolygon(), TranslateEvent(), TranslateFilename(), WriteBlob(), XMLTreeInfoToXML(), and XMLTreeTagToXML().
| MagickExport void SetMagickMemoryMethods | ( | AcquireMemoryHandler | acquire_memory_handler, |
| ResizeMemoryHandler | resize_memory_handler, | ||
| DestroyMemoryHandler | destroy_memory_handler | ||
| ) |
Definition at line 1238 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::destroy_memory_handler, memory_methods, and _MagickMemoryMethods::resize_memory_handler.
|
static |
Definition at line 182 of file memory.c.
Referenced by AcquireMagickMemory(), DestroyMagickMemory(), GetMagickMemoryMethods(), RelinquishMagickMemory(), ResizeMagickMemory(), and SetMagickMemoryMethods().