MagickCore
6.9.10
Convert, Edit, Or Compose Bitmap Images
|
#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/policy.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/utility.h"
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) |
static size_t | StringToSizeType (const char *string, const double interval) |
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 size_t | GetMaxMemoryRequest (void) |
MagickExport void * | GetVirtualMemoryBlob (const MemoryInfo *memory_info) |
MagickExport MagickBooleanType | HeapOverflowSanityCheck (const size_t count, const size_t quantum) |
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 size_t | max_memory_request = 0 |
static size_t | virtual_anonymous_memory = 0 |
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))) |
Referenced by AcquireAlignedMemory(), DestroyMagickMemory(), and RelinquishMagickMemory().
#define BlockHeader | ( | block | ) | ((size_t *) (block)-1) |
Referenced by AcquireAlignedMemory(), DestroyMagickMemory(), and RelinquishMagickMemory().
#define BlockSize 4096 |
#define BlockThreshold 1024 |
Referenced by AcquireAlignedMemory().
#define MaxBlockExponent 16 |
Referenced by AcquireAlignedMemory().
#define MaxBlocks ((BlockThreshold/(4*sizeof(size_t)))+MaxBlockExponent+1) |
Referenced by AcquireAlignedMemory(), and AcquireMagickMemory().
#define MaxSegments 1024 |
Referenced by AcquireMagickMemory(), and DestroyMagickMemory().
#define MemoryGuard ((0xdeadbeef << 31)+0xdeafdeed) |
#define NextBlock | ( | block | ) | ((char *) (block)+SizeOfBlock(block)) |
Referenced by AcquireAlignedMemory(), DestroyMagickMemory(), and RelinquishMagickMemory().
#define NextBlockInList | ( | block | ) | (*(void **) (block)) |
Referenced by AcquireAlignedMemory().
#define PreviousBlock | ( | block | ) | ((char *) (block)-(*((size_t *) (block)-2))) |
Referenced by RelinquishMagickMemory().
#define PreviousBlockBit 0x01 |
Referenced by AcquireAlignedMemory(), DestroyMagickMemory(), and RelinquishMagickMemory().
#define PreviousBlockInList | ( | block | ) | (*((void **) (block)+1)) |
Referenced by AcquireAlignedMemory().
#define SegmentSize (2*1024*1024) |
Referenced by AcquireMagickMemory(), and DestroyMagickMemory().
#define SizeMask (~0x01) |
Referenced by AcquireAlignedMemory(), AcquireMagickMemory(), and RelinquishMagickMemory().
#define SizeOfBlock | ( | block | ) | (*BlockHeader(block) & SizeMask) |
Referenced by AcquireAlignedMemory(), RelinquishMagickMemory(), and ResetMagickMemory().
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 | ||
) |
References AlignedExtent, _MemoryPool::allocation, BlockFooter, BlockHeader, _MemoryPool::blocks, BlockThreshold, CACHE_LINE_SIZE, GetMagickPageSize(), HeapOverflowSanityCheck(), MagickFalse, MaxBlockExponent, MaxBlocks, _DataSegmentInfo::next, NextBlock, NextBlockInList, _DataSegmentInfo::previous, PreviousBlockBit, PreviousBlockInList, SizeMask, and SizeOfBlock.
Referenced by AcquireCacheNexusPixels(), AcquireContributionThreadSet(), AcquireKernelBuiltIn(), AcquirePixelCacheNexus(), AcquirePixelList(), AcquireRandomInfoThreadSet(), AcquireResampleFilterThreadSet(), AcquireStreamInfo(), AcquireStreamPixels(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), CloneCacheView(), CloneKernelInfo(), CloneMagickPixelPacket(), ConvolveImageChannel(), EdgeImage(), EmbossImage(), FilterImageChannel(), GetMotionBlurKernel(), OpenPixelCache(), ParseKernelArray(), SelectiveBlurImageChannel(), SharpenImageChannel(), and WriteStreamImage().
MagickExport void* AcquireMagickMemory | ( | const size_t | size | ) |
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 AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireCriticalMemory(), AcquireDistributeCacheInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImageInfo(), AcquireKernelBuiltIn(), AcquireLogCache(), AcquireMagicCache(), AcquireMatrixInfo(), AcquirePixelList(), AcquirePolicyCache(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireQuantumMemory(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireStringInfoContainer(), AcquireTimerInfo(), AcquireTokenInfo(), AddChildToXMLTree(), AddValueToSplayTree(), AppendValueToLinkedList(), Ascii85Initialize(), CheckImageColors(), Classify(), CloneBlobInfo(), CloneExceptionInfo(), CloneImageView(), CloneKernelInfo(), CloneMontageInfo(), CloneQuantizeInfo(), ConvertPathToPolygon(), DrawImage(), GetCubeInfo(), GetImageAttribute(), GetImageDynamicThreshold(), GetNodeInfo(), GetThresholdMapFile(), GetTypeList(), InitializeIntervalTree(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsHistogramImage(), ListFiles(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MagickCreateThreadKey(), NewHashmap(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), NewXMLTreeTag(), ParseInternalDoctype(), ParseKernelArray(), ParseProcessingInstructions(), PutEntryInHashmap(), ReacquireMemory(), RenderHoughLines(), ResizeMagickMemory(), SetMagickInfo(), and ThrowException().
MagickExport void* AcquireQuantumMemory | ( | const size_t | count, |
const size_t | quantum | ||
) |
References AcquireMagickMemory(), HeapOverflowSanityCheck(), and MagickFalse.
Referenced by AcquireContributionThreadSet(), AcquireFxInfo(), AcquireFxThreadSet(), AcquireHistogramThreadSet(), AcquireImageColormap(), AcquireMagickMatrix(), AcquirePixelCacheNexus(), AcquirePixelListThreadSet(), AcquirePixelThreadSet(), AcquirePolygonThreadSet(), AcquireQuantumPixels(), AcquireSignatureInfo(), AcquireString(), AcquireStringInfo(), AcquireUniqueSymbolicLink(), AcquireVirtualMemory(), AllocateString(), AutoThresholdImage(), BalanceSplayTree(), Base64Decode(), Base64Encode(), BlobToStringInfo(), Classify(), ClassifyImageColors(), CloneDrawInfo(), CloneImage(), ClonePixelCacheOnDisk(), ClutImageChannel(), ColorDecisionListImage(), ColorFloodfillImage(), CompareImageLayers(), ConfigureFileToStringInfo(), ConnectedComponentsImage(), ConstantString(), ContrastStretchImageChannel(), ConvertLatin1ToUTF8(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), ConvertUTF16ToUTF8(), CopyDelegateFile(), CreateMagickThreadKey(), DeleteImages(), DeskewImage(), DistortImage(), DrawDashPolygon(), DrawImage(), EqualizeImageChannel(), EscapeParenthesis(), 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(), GetNextImageProfile(), GetNodeInfo(), GetPathComponents(), GetPolicyInfoList(), GetPolicyList(), GetThresholdMapFile(), GetTypeInfoList(), GetTypeList(), GradientImage(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImageListToArray(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImportImagePixels(), IncreaseHashmapCapacity(), InitializeIntervalTree(), InjectImageBlob(), IterateOverSplayTree(), KapurThreshold(), LinearStretchImage(), ListFiles(), LZWEncodeImage(), MagickReadDirectory(), MatteFloodfillImage(), MontageImageList(), MorphologyPrimitive(), MotionBlurImageChannel(), NewHashmap(), NewXMLTree(), OpenCacheView(), OptimalTau(), OptimizeLayerFrames(), OTSUThreshold(), PackbitsEncodeImage(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), ReduceImageColors(), RenderType(), RGBTransformImage(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), SetGrayscaleImage(), SetImageChannelDepth(), SetStringInfoLength(), SetXMLTreeAttribute(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), StreamImagePixels(), StringInfoToHexString(), StringInfoToString(), StringToArgv(), StringToArrayOfDoubles(), StringToList(), TraceBezier(), TraceStrokePolygon(), TransformRGBImage(), WaveImage(), and WaveletDenoiseImage().
MagickExport MemoryInfo* AcquireVirtualMemory | ( | const size_t | count, |
const size_t | quantum | ||
) |
References AcquireAlignedMemory(), AcquireQuantumMemory(), AcquireUniqueFileResource(), AlignedVirtualMemory, _MemoryInfo::blob, DestroyString(), _MemoryInfo::filename, GetMaxMemoryRequest(), GetPolicyValue(), HeapOverflowSanityCheck(), 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(), ComplexImages(), DespeckleImage(), FloodfillPaintImage(), ForwardFourierTransformImage(), GetCubeInfo(), InterpolativeResizeImage(), LocalContrastImage(), and WaveletDenoiseImage().
MagickExport void* CopyMagickMemory | ( | void * | destination, |
const void * | source, | ||
const size_t | size | ||
) |
MagickExport void DestroyMagickMemory | ( | void | ) |
References _MagickMemoryMethods::acquire_memory_handler, ActivateSemaphoreInfo(), _DataSegmentInfo::allocation, BlockFooter, BlockHeader, _DataSegmentInfo::bound, _MagickMemoryMethods::destroy_memory_handler, DestroySemaphoreInfo(), IOMode, _DataSegmentInfo::length, LockSemaphoreInfo(), MagickFalse, MagickTrue, MapBlob(), _DataSegmentInfo::mapped, MaxSegments, memory_methods, _DataSegmentInfo::next, NextBlock, _MemoryPool::number_segments, PreviousBlockBit, _MemoryPool::segments, SegmentSize, UnlockSemaphoreInfo(), and UnmapBlob().
MagickExport void GetMagickMemoryMethods | ( | AcquireMemoryHandler * | acquire_memory_handler, |
ResizeMemoryHandler * | resize_memory_handler, | ||
DestroyMemoryHandler * | destroy_memory_handler | ||
) |
MagickExport size_t GetMaxMemoryRequest | ( | void | ) |
References DestroyString(), GetPolicyValue(), MagickULLConstant, max_memory_request, and StringToSizeType().
Referenced by AcquireVirtualMemory().
MagickExport void* GetVirtualMemoryBlob | ( | const MemoryInfo * | memory_info | ) |
References _MemoryInfo::blob, MagickCoreSignature, and _MemoryInfo::signature.
Referenced by AcquireQuantumPixels(), ComplexImages(), DespeckleImage(), DestroyQuantumPixels(), FloodfillPaintImage(), ForwardFourierTransformImage(), GetCubeInfo(), GetQuantumPixels(), InterpolativeResizeImage(), LocalContrastImage(), and WaveletDenoiseImage().
MagickExport MagickBooleanType HeapOverflowSanityCheck | ( | const size_t | count, |
const size_t | quantum | ||
) |
References MagickFalse, and MagickTrue.
Referenced by AcquireAlignedMemory(), AcquireQuantumMemory(), AcquireVirtualMemory(), and ResizeQuantumMemory().
MagickExport void* RelinquishAlignedMemory | ( | void * | memory | ) |
Referenced by AcquireFxInfo(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), DestroyCacheView(), DestroyContributionThreadSet(), DestroyKernelInfo(), DestroyPixelCacheNexus(), DestroyPixelList(), DestroyRandomInfoThreadSet(), DestroyResampleFilterThreadSet(), DestroyStreamInfo(), FilterImageChannel(), MotionBlurImageChannel(), RelinquishCacheNexusPixels(), RelinquishPixelCachePixels(), RelinquishStreamPixels(), RelinquishVirtualMemory(), SelectiveBlurImageChannel(), and WriteStreamImage().
MagickExport void* RelinquishMagickMemory | ( | void * | memory | ) |
References BlockFooter, BlockHeader, _MagickMemoryMethods::destroy_memory_handler, LockSemaphoreInfo(), memory_methods, _DataSegmentInfo::next, NextBlock, _DataSegmentInfo::previous, PreviousBlock, PreviousBlockBit, SizeMask, SizeOfBlock, and UnlockSemaphoreInfo().
Referenced by access_utf8(), AcquireCoderCache(), AcquireFxInfo(), AcquireMagickMatrix(), AcquirePolygonThreadSet(), AcquireUniqueSymbolicLink(), AddPathToXMLTree(), AnnotateImage(), AutoThresholdImage(), BalanceSplayTree(), Base64Decode(), CanonicalXMLContent(), Classify(), ClearLinkedList(), ClonePixelCacheOnDisk(), ClutImageChannel(), ColorDecisionListImage(), ColorFloodfillImage(), CompareImageLayers(), ConnectedComponentsImage(), ContrastStretchImageChannel(), ConvertPathToPolygon(), CopyDelegateFile(), CreateMagickThreadKey(), DeleteImages(), DeleteMagickThreadKey(), 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(), FileToXML(), fopen_utf8(), FreeNodes(), GammaImageChannel(), GaussJordanElimination(), GenerateCoefficients(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetExecutionPath(), GetHostname(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelEntropy(), GetImageChannelFeatures(), GetImageChannelMean(), GetImageChannelMoments(), GetImageChannelPerceptualHash(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetLocaleOptions(), GetMagickHomeURL(), GetMultilineTypeMetrics(), GetMVGMacros(), GetNextImageProfile(), GetNormalizedCrossCorrelationDistortion(), GetNumberColors(), GetPerceptualHashDistortion(), GetXMLTreePath(), GetXMPProperty(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImportImagePixels(), IncreaseHashmapCapacity(), InitializeIntervalTree(), InjectImageBlob(), InsertValueInSortedLinkedList(), InvokeDelegate(), IsOptionMember(), IterateOverSplayTree(), KapurThreshold(), 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(), MagickReadDirectory(), MatteFloodfillImage(), MontageImageList(), MorphologyPrimitive(), MotionBlurImageChannel(), open_utf8(), OpenMagickStream(), OptimalTau(), OptimizeLayerFrames(), OTSUThreshold(), PackbitsEncodeImage(), ParseInternalDoctype(), popen_utf8(), PreviewImage(), PutEntryInHashmap(), ReacquireMemory(), ReadInlineImage(), ReduceImageColors(), RelinquishMagickMatrix(), RelinquishVirtualMemory(), remove_utf8(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), rename_utf8(), RenderType(), ResetSplayTree(), ResizeMagickMemory(), ResizeQuantumMemory(), RGBTransformImage(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), ScaleSpace(), SegmentImage(), SetGrayscaleImage(), SetImageArtifact(), SetImageChannelDepth(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SetPixelCacheVirtualMethod(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), SparseColorImage(), stat_utf8(), StreamImagePixels(), StringToArgv(), TraceBezier(), TraceStrokePolygon(), TransformImages(), TransformRGBImage(), WaveImage(), and WaveletDenoiseImage().
MagickExport MemoryInfo* RelinquishVirtualMemory | ( | MemoryInfo * | memory_info | ) |
References AlignedVirtualMemory, _MemoryInfo::blob, _MemoryInfo::filename, _MemoryInfo::length, MagickCoreSignature, MapVirtualMemory, RelinquishAlignedMemory(), RelinquishMagickMemory(), RelinquishUniqueFileResource(), _MemoryInfo::signature, _MemoryInfo::type, UnalignedVirtualMemory, and UnmapBlob().
Referenced by AcquireVirtualMemory(), ComplexImages(), DespeckleImage(), DestroyCubeInfo(), DestroyQuantumPixels(), FloodfillPaintImage(), ForwardFourierTransformImage(), InterpolativeResizeImage(), LocalContrastImage(), and WaveletDenoiseImage().
MagickExport void* ResetMagickMemory | ( | void * | memory, |
int | byte, | ||
const size_t | size | ||
) |
References _MemoryPool::allocation, and SizeOfBlock.
MagickExport void* ResizeMagickMemory | ( | void * | memory, |
const size_t | size | ||
) |
MagickExport void* ResizeQuantumMemory | ( | void * | memory, |
const size_t | count, | ||
const size_t | quantum | ||
) |
References HeapOverflowSanityCheck(), MagickFalse, RelinquishMagickMemory(), and ResizeMagickMemory().
Referenced by AcquireImageColormap(), CanonicalXMLContent(), CheckImageColors(), CheckPrimitiveExtent(), ClassifyImageColors(), CloneString(), ConcatenateString(), ConvertPathToPolygon(), ConvertUTF16ToUTF8(), DrawImage(), EncodePredefinedEntities(), ExpandFilenames(), FileToBlob(), FileToXML(), ImagesToBlob(), ImageToBlob(), IsHistogramImage(), ListFiles(), NewXMLTree(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), SetBlobExtent(), SetStringInfoLength(), SetXMLTreeAttribute(), StringToList(), SubstituteString(), TranslateEvent(), TranslateFilename(), WriteBlob(), XMLTreeInfoToXML(), and XMLTreeTagToXML().
MagickExport void SetMagickMemoryMethods | ( | AcquireMemoryHandler | acquire_memory_handler, |
ResizeMemoryHandler | resize_memory_handler, | ||
DestroyMemoryHandler | destroy_memory_handler | ||
) |
|
inlinestatic |
References MagickULLConstant, and SiPrefixToDoubleInterval().
Referenced by GetMaxMemoryRequest().
|
static |
Referenced by GetMaxMemoryRequest().
|
static |
Referenced by AcquireMagickMemory(), DestroyMagickMemory(), GetMagickMemoryMethods(), RelinquishMagickMemory(), ResizeMagickMemory(), and SetMagickMemoryMethods().
|
static |
Referenced by AcquireVirtualMemory().