MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/image-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/policy.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/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 | BlockThreshold 1024 |
#define | MaxBlockExponent 16 |
#define | MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
#define | MaxSegments 1024 |
#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 | ALIGNMENT_OVERHEAD (MAGICKCORE_MAX_ALIGNMENT_PADDING(CACHE_LINE_SIZE) + MAGICKCORE_SIZEOF_VOID_P) |
#define | AcquireAlignedMemory_Actual AcquireAlignedMemory_Generic |
#define | MinMemoryRequest "16MiB" |
Typedefs | |
typedef struct _DataSegmentInfo | DataSegmentInfo |
typedef struct _MagickMemoryMethods | MagickMemoryMethods |
typedef struct _MemoryPool | MemoryPool |
Enumerations | |
enum | VirtualMemoryType { UndefinedVirtualMemory , AlignedVirtualMemory , MapVirtualMemory , UnalignedVirtualMemory } |
Variables | |
static size_t | max_memory_request = 0 |
static size_t | virtual_anonymous_memory = 0 |
static MagickMemoryMethods | memory_methods |
#define AcquireAlignedMemory_Actual AcquireAlignedMemory_Generic |
#define ALIGNMENT_OVERHEAD (MAGICKCORE_MAX_ALIGNMENT_PADDING(CACHE_LINE_SIZE) + MAGICKCORE_SIZEOF_VOID_P) |
#define BlockFooter | ( | block, | |
size | |||
) | ((size_t *) ((char *) (block)+(size)-2*sizeof(size_t))) |
#define MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
#define MinMemoryRequest "16MiB" |
#define NextBlock | ( | block | ) | ((char *) (block)+SizeOfBlock(block)) |
#define PreviousBlock | ( | block | ) | ((char *) (block)-(*((size_t *) (block)-2))) |
#define PreviousBlockInList | ( | block | ) | (*((void **) (block)+1)) |
#define SizeOfBlock | ( | block | ) | (*BlockHeader(block) & SizeMask) |
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 365 of file memory.c.
References _MagickMemoryMethods::acquire_aligned_memory_handler, AcquireAlignedMemory_Actual, CACHE_LINE_SIZE, HeapOverflowSanityCheckGetSize(), MagickFalse, and memory_methods.
Referenced by AcquireCacheNexusPixels(), AcquireContributionTLS(), AcquireKernelBuiltIn(), AcquirePixelCache(), AcquirePixelCacheNexus(), AcquirePixelList(), AcquireStreamInfo(), AcquireStreamPixels(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AdaptiveBlurImage(), AdaptiveSharpenImage(), CloneCacheView(), CloneKernelInfo(), EdgeImage(), EmbossImage(), GetMotionBlurKernel(), OpenPixelCache(), ParseKernelArray(), SelectiveBlurImage(), SharpenImage(), and WriteStreamImage().
|
inlinestatic |
Definition at line 338 of file memory.c.
References AcquireMagickMemory(), adjust(), ALIGNMENT_OVERHEAD, and pointer_to_space_for_actual_base_address().
MagickExport void * AcquireCriticalMemory | ( | const size_t | size | ) |
Definition at line 626 of file memory.c.
References AcquireMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by AcquireCustomStreamInfo(), AcquireDistributeCacheInfo(), AcquireDrawInfo(), AcquireExceptionInfo(), AcquireFxInfoPrivate(), AcquireImage(), AcquireImageInfo(), AcquireMagickInfo(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireStringInfoContainer(), AcquireTimerInfo(), AcquireTokenInfo(), CheckPrimitiveExtent(), CloneBlobInfo(), CloneDrawInfo(), CloneExceptionInfo(), CloneImage(), CloneImageView(), CloneMontageInfo(), CloneQuantizeInfo(), GetThresholdMapFile(), InitializeIntervalTree(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), OptimalTau(), ParseProcessingInstructions(), SetImageRegistry(), SetPolicyValue(), and TraceStrokePolygon().
MagickExport void * AcquireMagickMemory | ( | const size_t | size | ) |
Definition at line 552 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, ActivateSemaphoreInfo(), _MemoryPool::allocation, _MemoryPool::blocks, LockSemaphoreInfo(), MagickFalse, MaxBlocks, MaxSegments, memory_methods, _DataSegmentInfo::next, _DataSegmentInfo::previous, _MemoryPool::segment_pool, SegmentSize, SizeMask, and UnlockSemaphoreInfo().
Referenced by AcquireAlignedMemory_Generic(), AcquireCoderCache(), AcquireColorCache(), AcquireCriticalMemory(), AcquireKernelBuiltIn(), AcquireMagicList(), AcquireMatrixInfo(), AcquirePixelList(), AcquirePolicyCache(), AcquirePolicyString(), AcquireQuantumMemory(), AddChildToXMLTree(), AddConfigureKey(), AddValueToSplayTree(), AllocFxRt(), AppendValueToLinkedList(), Ascii85Initialize(), BuildRPN(), CloneKernelInfo(), ClonePixelInfo(), ClonePolygonEdgesTLS(), CollectStatistics(), ConvertPathToPolygon(), CreateMagickThreadKey(), GetCubeInfo(), GetNodeInfo(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), ListFiles(), NewXMLTreeTag(), ParseInternalDoctype(), ParseKernelArray(), RenderMVGContent(), ResizeMagickMemory(), and ThrowException().
MagickExport void * AcquireQuantumMemory | ( | const size_t | count, |
const size_t | quantum | ||
) |
Definition at line 665 of file memory.c.
References AcquireMagickMemory(), GetMaxMemoryRequest(), HeapOverflowSanityCheckGetSize(), and MagickFalse.
Referenced by AcquireBilateralTLS(), AcquireContributionTLS(), AcquireFxInfoPrivate(), AcquireHistogramTLS(), AcquireImageColormap(), AcquireKmeansTLS(), AcquireMagickMatrix(), AcquirePixelCacheNexus(), AcquirePixelChannelMap(), AcquirePixelListTLS(), AcquirePixelTLS(), AcquirePolygonTLS(), AcquireQuantumPixels(), AcquireRandomInfoTLS(), AcquireResampleFilterTLS(), AcquireSignatureInfo(), AcquireString(), AcquireStringInfo(), AcquireUniqueSymbolicLink(), AcquireVirtualMemory(), AnnotateImage(), AutoThresholdImage(), BalanceSplayTree(), Base64Decode(), Base64Encode(), BlobToStringInfo(), CheckImageColors(), CLAHE(), Classify(), ClassifyImageColors(), CloneDrawInfo(), CloneImage(), ClonePixelCacheOnDisk(), ClonePolygonEdgesTLS(), ClutImage(), ColorDecisionListImage(), CompareImagesLayers(), ConcatenateStringInfo(), ConfigureFileToStringInfo(), ConnectedComponentsImage(), ConstantString(), ContrastStretchImage(), ConvertLatin1ToUTF8(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), ConvertUTF16ToUTF8(), CopyDelegateFile(), CreateMagickThreadKey(), CustomStreamToImage(), DeleteImages(), DeskewImage(), DistortImage(), DrawDashPolygon(), EqualizeImage(), EscapeParenthesis(), EscapeString(), EvaluateImages(), ExpandFilenames(), ExportImagePixels(), FileToBlob(), FileToImage(), FileToXML(), GammaImage(), GaussJordanElimination(), GenerateCoefficients(), Get8BIMProperty(), GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), GetCommandOptions(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfoList(), GetDelegateList(), GetExecutionPath(), GetEXIFProperty(), GetImageConvexHull(), GetImageDepth(), GetImageDistortion(), GetImageDistortions(), GetImageDynamicThreshold(), GetImageFeatures(), GetImageHistogram(), GetImageMinimumBoundingBox(), GetImageMoments(), GetImagePerceptualHash(), GetImageStatistics(), GetImageViewException(), GetIPTCProperty(), GetLocaleInfoList(), GetLocaleList(), GetLocationStatistics(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagickInfoList(), GetMagickList(), GetMagicList(), GetMimeInfoList(), GetMimeList(), GetNodeInfo(), GetPathComponents(), GetPolicyInfoList(), GetPolicyList(), GetThresholdMapFile(), GetTypeInfoList(), GetTypeList(), GetVirtualPixelCacheNexus(), GradientImage(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImageListToArray(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), ImportImagePixels(), InitFx(), InitializeIntervalTree(), InjectImageBlob(), IterateOverSplayTree(), KapurThreshold(), LinearStretchImage(), ListFiles(), LZWEncodeImage(), MontageImageList(), MorphologyPrimitive(), MotionBlurImage(), NewXMLTree(), OptimalTau(), OptimizeLayerFrames(), OTSUThreshold(), PackbitsEncodeImage(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), popen_utf8(), ReduceImageColors(), RenderHoughLines(), RenderMVGContent(), RotationalBlurImage(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), SetGrayscaleImage(), SetImageDepth(), SetImageInfo(), SetStringInfoLength(), SetXMLTreeAttribute(), SortColormapByIntensity(), sRGBTransformImage(), StreamImagePixels(), StringInfoToHexString(), StringInfoToString(), StringToArgv(), StringToArrayOfDoubles(), StringToStrings(), TraceBezier(), TraceStrokePolygon(), TransformsRGBImage(), WaveImage(), and WaveletDenoiseImage().
MagickExport MemoryInfo * AcquireVirtualMemory | ( | const size_t | count, |
const size_t | quantum | ||
) |
Definition at line 705 of file memory.c.
References AcquireAlignedMemory(), AcquireQuantumMemory(), AcquireUniqueFileResource(), AlignedVirtualMemory, _MemoryInfo::blob, DestroyString(), _MemoryInfo::filename, GetMaxMemoryRequest(), GetPolicyValue(), HeapOverflowSanityCheckGetSize(), IOMode, _MemoryInfo::length, LocaleCompare(), MagickAssumeAligned, MagickCoreSignature, MagickFalse, MapBlob(), MapVirtualMemory, RelinquishUniqueFileResource(), RelinquishVirtualMemory(), ResourceLimitFatalError, _MemoryInfo::signature, ThrowFatalException, _MemoryInfo::type, UnalignedVirtualMemory, and virtual_anonymous_memory.
Referenced by AcquireQuantumPixels(), CLAHE(), CLAHEImage(), DespeckleImage(), FloodfillPaintImage(), GetCubeInfo(), GetImageConvexHull(), GetImageStatistics(), LocalContrastImage(), and WaveletDenoiseImage().
|
inlinestatic |
Definition at line 322 of file memory.c.
References pointer_to_space_for_actual_base_address().
Referenced by RelinquishAlignedMemory().
|
inlinestatic |
Definition at line 332 of file memory.c.
References align_to_cache(), and reserve_space_for_actual_base_address().
Referenced by AcquireAlignedMemory_Generic(), and ClutImage().
|
inlinestatic |
MagickExport void * CopyMagickMemory | ( | void *magick_restrict | destination, |
const void *magick_restrict | source, | ||
const size_t | size | ||
) |
MagickExport void DestroyMagickMemory | ( | void | ) |
Definition at line 885 of file memory.c.
References ActivateSemaphoreInfo(), _DataSegmentInfo::allocation, _MagickMemoryMethods::destroy_memory_handler, _DataSegmentInfo::length, LockSemaphoreInfo(), MagickFalse, _DataSegmentInfo::mapped, memory_methods, _MemoryPool::number_segments, RelinquishSemaphoreInfo(), _MemoryPool::segments, UnlockSemaphoreInfo(), and UnmapBlob().
MagickExport void GetMagickMemoryMethods | ( | AcquireMemoryHandler * | acquire_memory_handler, |
ResizeMemoryHandler * | resize_memory_handler, | ||
DestroyMemoryHandler * | destroy_memory_handler | ||
) |
Definition at line 1013 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::destroy_memory_handler, memory_methods, and _MagickMemoryMethods::resize_memory_handler.
MagickExport size_t GetMaxMemoryRequest | ( | void | ) |
Definition at line 1044 of file memory.c.
References DestroyString(), GetPolicyValue(), MAGICK_SSIZE_MAX, MagickMax, MagickMin, max_memory_request, MinMemoryRequest, and StringToSizeType().
Referenced by AcquireQuantumMemory(), AcquireVirtualMemory(), and ResizeQuantumMemory().
MagickExport void * GetVirtualMemoryBlob | ( | const MemoryInfo * | memory_info | ) |
Definition at line 1090 of file memory.c.
References _MemoryInfo::blob, MagickCoreSignature, and _MemoryInfo::signature.
Referenced by AcquireQuantumPixels(), CLAHE(), CLAHEImage(), DespeckleImage(), DestroyQuantumPixels(), FloodfillPaintImage(), GetCubeInfo(), GetImageConvexHull(), GetImageStatistics(), GetQuantumPixels(), LocalContrastImage(), and WaveletDenoiseImage().
|
inlinestatic |
Definition at line 317 of file memory.c.
Referenced by AcquireAlignedMemory_Generic(), and actual_base_address().
MagickExport void * RelinquishAlignedMemory | ( | void * | memory | ) |
Definition at line 1120 of file memory.c.
References actual_base_address(), memory_methods, _MagickMemoryMethods::relinquish_aligned_memory_handler, and RelinquishMagickMemory().
Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), DestroyCacheView(), DestroyContributionTLS(), DestroyKernelInfo(), DestroyPixelCache(), DestroyPixelCacheNexus(), DestroyPixelList(), DestroyPixelStream(), DestroyStreamInfo(), MotionBlurImage(), RelinquishCacheNexusPixels(), RelinquishPixelCachePixels(), RelinquishStreamPixels(), RelinquishVirtualMemory(), SelectiveBlurImage(), and WriteStreamImage().
MagickExport void * RelinquishMagickMemory | ( | void * | memory | ) |
Definition at line 1162 of file memory.c.
References BlockFooter, BlockHeader, _MagickMemoryMethods::destroy_memory_handler, LockSemaphoreInfo(), memory_methods, NextBlock, PreviousBlock, PreviousBlockBit, SizeOfBlock, and UnlockSemaphoreInfo().
Referenced by access_utf8(), AcquireCoderCache(), AcquireFxInfoPrivate(), AcquireMagickMatrix(), AcquirePolygonTLS(), AcquireUniqueSymbolicLink(), AddPathToXMLTree(), AnnotateImage(), AutoThresholdImage(), BalanceSplayTree(), Base64Decode(), CanonicalXMLContent(), CLAHE(), Classify(), ClearLinkedList(), ClonePixelCacheOnDisk(), ClutImage(), ColorDecisionListImage(), CompareImagesLayers(), ConnectedComponentsImage(), ContrastStretchImage(), ConvertPathToPolygon(), CopyDelegateFile(), CreateMagickThreadKey(), CustomStreamToImage(), DeInitFx(), DeleteImages(), DeleteMagickThreadKey(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DeskewImage(), DestroyBilateralTLS(), DestroyBlob(), DestroyCoderNode(), DestroyColorCube(), DestroyColorElement(), DestroyConfigureElement(), DestroyContributionTLS(), DestroyCubeInfo(), DestroyCustomStreamInfo(), DestroyDelegate(), DestroyDistributeCacheInfo(), DestroyDrawInfo(), DestroyEdge(), DestroyExceptionElement(), DestroyExceptionInfo(), DestroyFxInfo(), DestroyFxRt(), DestroyHistogramTLS(), DestroyImage(), DestroyImageInfo(), DestroyImageView(), DestroyKernelInfo(), DestroyKmeansTLS(), DestroyLinkedList(), DestroyLocaleNode(), DestroyLogElement(), DestroyMagicElement(), DestroyMagickNode(), DestroyMatrixInfo(), DestroyMimeElement(), DestroyMontageInfo(), DestroyPixelCacheNexus(), DestroyPixelChannelMap(), DestroyPixelList(), DestroyPixelListTLS(), DestroyPixelTLS(), DestroyPolicyElement(), DestroyPolygonInfo(), DestroyPolygonTLS(), DestroyQuantizeInfo(), DestroyQuantumInfo(), DestroyQuantumPixels(), DestroyRandomInfo(), DestroyRandomInfoTLS(), DestroyRegistryNode(), DestroyResampleFilter(), DestroyResampleFilterTLS(), DestroyResizeFilter(), DestroyRPN(), DestroySignatureInfo(), DestroySplayTree(), DestroyStreamInfo(), DestroyString(), DestroyStringInfo(), DestroyStringList(), DestroyThresholdMap(), DestroyTimerInfo(), DestroyTokenInfo(), DestroyTypeNode(), DestroyXMLTree(), DestroyXMLTreeAttributes(), DestroyXMLTreeRoot(), DistortImage(), DrawDashPolygon(), DrawStrokePolygon(), EqualizeImage(), EvaluateImages(), ExecuteRPN(), ExpandFilenames(), ExportImagePixels(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), FileToXML(), fopen_utf8(), FreeNodes(), GammaImage(), GaussJordanElimination(), GenerateCoefficients(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetExecutionPath(), GetHostname(), GetImageDepth(), GetImageDistortion(), GetImageDistortions(), GetImageDynamicThreshold(), GetImageEntropy(), GetImageFeatures(), GetImageKurtosis(), GetImageMean(), GetImageMedian(), GetImageMinimumBoundingBox(), GetImageMoments(), GetImagePerceptualHash(), GetImageStatistics(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMultilineTypeMetrics(), GetMVGMacros(), GetNormalizedCrossCorrelationDistortion(), GetNumberColors(), GetPerceptualHashDistortion(), GetVirtualPixelCacheNexus(), GetXMLTreePath(), GetXMPProperty(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImageStat(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), ImportImagePixels(), InitFx(), InitializeIntervalTree(), InjectImageBlob(), InsertValueInSortedLinkedList(), InvokeDelegate(), IsOptionMember(), IterateOverSplayTree(), KapurThreshold(), LinearStretchImage(), ListCoderInfo(), ListColorInfo(), ListConfigureInfo(), ListDelegateInfo(), ListFiles(), ListLocaleInfo(), ListLogInfo(), ListMagicInfo(), ListMagickInfo(), ListMimeInfo(), ListPolicyInfo(), ListTypeInfo(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadPolicyCache(), LoadTypeCache(), LogMagickEventList(), LZWEncodeImage(), MontageImageList(), MorphologyPrimitive(), MotionBlurImage(), open_utf8(), OptimalTau(), OptimizeLayerFrames(), OTSUThreshold(), PackbitsEncodeImage(), ParseInternalDoctype(), popen_utf8(), PreviewImage(), ReadInlineImage(), ReduceImageColors(), RelinquishAlignedMemory(), RelinquishMagickMatrix(), RelinquishVirtualMemory(), remove_utf8(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), rename_utf8(), RenderMVGContent(), RenderType(), ResetSplayTree(), ResizeMagickMemory(), ResizeQuantumMemory(), RotationalBlurImage(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), set_file_timestamp(), SetGrayscaleImage(), SetImageArtifact(), SetImageDepth(), SetImageInfo(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SetPolicyValue(), SortColormapByIntensity(), SparseColorImage(), sRGBTransformImage(), stat_utf8(), StreamImagePixels(), StringToArgv(), TraceBezier(), TraceStrokePolygon(), TransformsRGBImage(), WaveImage(), and WaveletDenoiseImage().
MagickExport MemoryInfo * RelinquishVirtualMemory | ( | MemoryInfo * | memory_info | ) |
Definition at line 1229 of file memory.c.
References AlignedVirtualMemory, _MemoryInfo::blob, _MemoryInfo::filename, _MemoryInfo::length, MagickCoreSignature, MapVirtualMemory, RelinquishAlignedMemory(), RelinquishMagickMemory(), RelinquishUniqueFileResource(), _MemoryInfo::signature, _MemoryInfo::type, UnalignedVirtualMemory, and UnmapBlob().
Referenced by AcquireVirtualMemory(), CLAHE(), CLAHEImage(), DespeckleImage(), DestroyCubeInfo(), DestroyQuantumPixels(), FloodfillPaintImage(), GetImageConvexHull(), GetImageStatistics(), LocalContrastImage(), and WaveletDenoiseImage().
|
inlinestatic |
MagickExport void * ResetMagickMemory | ( | void * | memory, |
int | c, | ||
const size_t | size | ||
) |
Definition at line 1290 of file memory.c.
Referenced by GetPixelInfoPixel(), and TransformSignature().
MagickPrivate void ResetMaxMemoryRequest | ( | void | ) |
Definition at line 1322 of file memory.c.
References max_memory_request.
MagickPrivate void ResetVirtualAnonymousMemory | ( | void | ) |
Definition at line 1345 of file memory.c.
References virtual_anonymous_memory.
Referenced by SetMagickSecurityPolicyValue().
MagickExport void * ResizeMagickMemory | ( | void * | memory, |
const size_t | size | ||
) |
Definition at line 1397 of file memory.c.
References AcquireMagickMemory(), LockSemaphoreInfo(), MagickFalse, memory_methods, RelinquishMagickMemory(), _MagickMemoryMethods::resize_memory_handler, ResourceLimitFatalError, ThrowFatalException, and UnlockSemaphoreInfo().
Referenced by ExtendOperatorStack(), ExtendRPN(), ExtendUserSymbols(), and ResizeQuantumMemory().
MagickExport void * ResizeQuantumMemory | ( | void * | memory, |
const size_t | count, | ||
const size_t | quantum | ||
) |
Definition at line 1457 of file memory.c.
References GetMaxMemoryRequest(), HeapOverflowSanityCheckGetSize(), MagickFalse, RelinquishMagickMemory(), and ResizeMagickMemory().
Referenced by AcquireImageColormap(), CheckImageColors(), CheckPrimitiveExtent(), ClassifyImageColors(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), ConvertUTF16ToUTF8(), EncodePredefinedEntities(), ExpandFilenames(), FileToBlob(), FileToXML(), ImagesToBlob(), ImageToBlob(), ListFiles(), NewXMLTree(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RenderMVGContent(), SetBlobExtent(), SetImageColormap(), SetStringInfoLength(), SetXMLTreeAttribute(), StringToStrings(), SubstituteString(), SubstituteXMLEntities(), TranslateEvent(), TranslateFilename(), WriteBlob(), XMLTreeInfoToXML(), and XMLTreeTagToXML().
MagickExport void SetMagickAlignedMemoryMethods | ( | AcquireAlignedMemoryHandler | acquire_aligned_memory_handler, |
RelinquishAlignedMemoryHandler | relinquish_aligned_memory_handler | ||
) |
Definition at line 1500 of file memory.c.
References _MagickMemoryMethods::acquire_aligned_memory_handler, memory_methods, and _MagickMemoryMethods::relinquish_aligned_memory_handler.
MagickExport void SetMagickMemoryMethods | ( | AcquireMemoryHandler | acquire_memory_handler, |
ResizeMemoryHandler | resize_memory_handler, | ||
DestroyMemoryHandler | destroy_memory_handler | ||
) |
Definition at line 1539 of file memory.c.
References _MagickMemoryMethods::acquire_memory_handler, _MagickMemoryMethods::destroy_memory_handler, memory_methods, and _MagickMemoryMethods::resize_memory_handler.
|
static |
Definition at line 201 of file memory.c.
Referenced by GetMaxMemoryRequest(), and ResetMaxMemoryRequest().
|
static |
Definition at line 222 of file memory.c.
Referenced by AcquireAlignedMemory(), AcquireMagickMemory(), DestroyMagickMemory(), GetMagickMemoryMethods(), RelinquishAlignedMemory(), RelinquishMagickMemory(), ResizeMagickMemory(), SetMagickAlignedMemoryMethods(), and SetMagickMemoryMethods().
|
static |
Definition at line 202 of file memory.c.
Referenced by AcquireVirtualMemory(), and ResetVirtualAnonymousMemory().