MagickCore  7.0.3
cache-view.c File Reference
Include dependency graph for cache-view.c:

Go to the source code of this file.

Data Structures

struct  _CacheView
 

Functions

MagickExport CacheViewAcquireAuthenticCacheView (const Image *image, ExceptionInfo *exception)
 
MagickExport CacheViewAcquireVirtualCacheView (const Image *image, ExceptionInfo *exception)
 
MagickExport CacheViewCloneCacheView (const CacheView *cache_view)
 
MagickExport CacheViewDestroyCacheView (CacheView *cache_view)
 
MagickExport QuantumGetCacheViewAuthenticPixels (CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport void * GetCacheViewAuthenticMetacontent (CacheView *cache_view)
 
MagickExport QuantumGetCacheViewAuthenticPixelQueue (CacheView *cache_view)
 
MagickExport ColorspaceType GetCacheViewColorspace (const CacheView *cache_view)
 
MagickExport MagickSizeType GetCacheViewExtent (const CacheView *cache_view)
 
MagickExport const ImageGetCacheViewImage (const CacheView *cache_view)
 
MagickExport ClassType GetCacheViewStorageClass (const CacheView *cache_view)
 
MagickExport const void * GetCacheViewVirtualMetacontent (const CacheView *cache_view)
 
MagickExport const QuantumGetCacheViewVirtualPixelQueue (const CacheView *cache_view)
 
MagickExport const QuantumGetCacheViewVirtualPixels (const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneCacheViewAuthenticPixel (const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel (const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneCacheViewVirtualPixelInfo (const CacheView *cache_view, const ssize_t x, const ssize_t y, PixelInfo *pixel, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel (const CacheView *cache_view, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
MagickExport QuantumQueueCacheViewAuthenticPixels (CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport MagickBooleanType SetCacheViewStorageClass (CacheView *cache_view, const ClassType storage_class, ExceptionInfo *exception)
 
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod (CacheView *magick_restrict cache_view, const VirtualPixelMethod virtual_pixel_method)
 
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels (CacheView *magick_restrict cache_view, ExceptionInfo *exception)
 

Function Documentation

MagickExport CacheView* AcquireAuthenticCacheView ( const Image image,
ExceptionInfo exception 
)

Definition at line 112 of file cache-view.c.

References AcquireVirtualCacheView(), and magick_restrict.

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AdaptiveThresholdImage(), AddNoiseImage(), AppendImages(), AssignImageColors(), BilevelImage(), BlackThresholdImage(), BlueShiftImage(), CannyEdgeImage(), ChannelImage(), ChopImage(), ClampImage(), Classify(), ClutImage(), ColorDecisionListImage(), ColorMatrixImage(), CombineImages(), CompareImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ConsolidateCMYKImages(), ContrastImage(), ContrastStretchImage(), CopyImagePixels(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DistortImage(), DitherImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), EnhanceImage(), EqualizeImage(), EvaluateImage(), EvaluateImages(), ExcerptImage(), FlipImage(), FloodfillPaintImage(), FlopImage(), FloydSteinbergDither(), ForwardFourierTransformImage(), FrameImage(), FunctionImage(), FxImage(), GammaImage(), GetImageMask(), GrayscaleImage(), HaldClutImage(), HorizontalFilter(), HuffmanDecodeImage(), ImplodeImage(), IntegralRotateImage(), InterpolativeResizeImage(), KuwaharaImage(), LevelImage(), LevelizeImage(), LocalContrastImage(), MagnifyImage(), MatrixToImage(), MeanShiftImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), NegateImage(), NewMagickImage(), OilPaintImage(), OpaquePaintImage(), OrderedDitherImage(), PerceptibleImage(), PlasmaImage(), PolynomialImage(), PosterizeImage(), ProfileImage(), RaiseImage(), RandomThresholdImage(), RenderPostscript(), RenderType(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SeparateImage(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlpha(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageColor(), SetImageDepth(), SetImageMask(), SetImageRegionMask(), ShadeImage(), ShadowImage(), SigmoidalContrastImage(), SimilarityImage(), SketchImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), sRGBTransformImage(), StatisticImage(), SteganoImage(), SwirlImage(), SyncImage(), TextureImage(), TintImage(), TransformsRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UniqueImageColors(), UnsharpMaskImage(), VerticalFilter(), WaveImage(), WaveletDenoiseImage(), WhiteThresholdImage(), XShearImage(), and YShearImage().

MagickExport CacheView* AcquireVirtualCacheView ( const Image image,
ExceptionInfo exception 
)

Definition at line 149 of file cache-view.c.

References AcquireAlignedMemory(), AcquirePixelCacheNexus(), CacheFatalError, _Image::debug, _Image::filename, GetImageVirtualPixelMethod(), GetMagickModule, GetMagickResourceLimit(), GetOpenMPMaximumThreads(), IsEventLogging(), LogMagickEvent(), magick_restrict, magick_unreferenced, MagickAssumeAligned, MagickCoreSignature, MagickFalse, ReferenceImage(), ResetMagickMemory(), ResourceLimitFatalError, _Image::signature, ThreadResource, ThrowFatalException, and TraceEvent.

Referenced by AcquireAuthenticCacheView(), AcquireFxInfo(), AcquireResampleFilter(), AdaptiveBlurImage(), AdaptiveSharpenImage(), AdaptiveThresholdImage(), AddNoiseImage(), AppendImages(), BlueShiftImage(), CannyEdgeImage(), ChannelImage(), CheckImageColors(), ChopImage(), Classify(), ClassifyImageColors(), ClutImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ConsolidateCMYKImages(), ContrastStretchImage(), CopyImagePixels(), CopyImageRegion(), CropImage(), DespeckleImage(), DrawAffineImage(), EnhanceImage(), EqualizeImage(), EvaluateImages(), ExcerptImage(), FlipImage(), FloodfillPaintImage(), FlopImage(), ForwardFourierTransformImage(), FrameImage(), FxImage(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageDepth(), GetImageFeatures(), GetImageKurtosis(), GetImageMask(), GetImageMoments(), GetImageQuantizeError(), GetImageRange(), GetImageTotalInkDensity(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), HaldClutImage(), HorizontalFilter(), HoughLineImage(), IdentifyImageGray(), IdentifyImageMonochrome(), ImplodeImage(), IntegralRotateImage(), InterpolativeResizeImage(), IsEquivalentImage(), IsHighDynamicRangeImage(), IsImageOpaque(), IsImagesEqual(), KuwaharaImage(), LinearStretchImage(), LocalContrastImage(), MagnifyImage(), MeanShiftImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), NewImageView(), NewImageViewRegion(), OilPaintImage(), PlasmaImage(), PolynomialImage(), RadonTransform(), ResamplePixelColor(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SeparateImage(), SepiaToneImage(), SetCacheAlphaChannel(), SetImageColorMetric(), SetImageMask(), ShadeImage(), SignatureImage(), SmushXGap(), SmushYGap(), SpliceImage(), SpreadImage(), StatisticImage(), SteganoImage(), SwirlImage(), TextureImage(), TintImage(), TransposeImage(), TransverseImage(), UnsharpMaskImage(), VerticalFilter(), and WaveImage().

MagickExport CacheView* DestroyCacheView ( CacheView cache_view)

Definition at line 252 of file cache-view.c.

References _CacheView::debug, DestroyImage(), DestroyPixelCacheNexus(), _Image::filename, GetMagickModule, _CacheView::image, LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheView::nexus_info, _CacheView::number_threads, RelinquishAlignedMemory(), _CacheView::signature, and TraceEvent.

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AdaptiveThresholdImage(), AddNoiseImage(), AppendImages(), AssignImageColors(), BilevelImage(), BlackThresholdImage(), BlueShiftImage(), CannyEdgeImage(), ChannelImage(), CheckImageColors(), ChopImage(), ClampImage(), Classify(), ClassifyImageColors(), ClutImage(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ConsolidateCMYKImages(), ContrastImage(), ContrastStretchImage(), CopyImagePixels(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DestroyFxInfo(), DestroyImageView(), DestroyResampleFilter(), DistortImage(), DitherImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), EnhanceImage(), EqualizeImage(), EvaluateImage(), EvaluateImages(), ExcerptImage(), FlipImage(), FloodfillPaintImage(), FlopImage(), FloydSteinbergDither(), ForwardFourierTransformImage(), FrameImage(), FunctionImage(), FxImage(), GammaImage(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageDepth(), GetImageFeatures(), GetImageKurtosis(), GetImageMask(), GetImageMoments(), GetImageQuantizeError(), GetImageRange(), GetImageTotalInkDensity(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GrayscaleImage(), HaldClutImage(), HorizontalFilter(), HoughLineImage(), HuffmanDecodeImage(), IdentifyImageGray(), IdentifyImageMonochrome(), ImplodeImage(), IntegralRotateImage(), InterpolativeResizeImage(), IsEquivalentImage(), IsHighDynamicRangeImage(), IsImageOpaque(), IsImagesEqual(), KuwaharaImage(), LevelImage(), LevelizeImage(), LinearStretchImage(), LocalContrastImage(), MagnifyImage(), MatrixToImage(), MeanShiftImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), NegateImage(), NewMagickImage(), OilPaintImage(), OpaquePaintImage(), OrderedDitherImage(), PerceptibleImage(), PlasmaImage(), PolynomialImage(), PosterizeImage(), ProfileImage(), RadonTransform(), RaiseImage(), RandomThresholdImage(), RenderPostscript(), RenderType(), ResamplePixelColor(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SeparateImage(), SepiaToneImage(), SetCacheAlphaChannel(), SetGrayscaleImage(), SetImageAlpha(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageColor(), SetImageColorMetric(), SetImageDepth(), SetImageMask(), SetImageRegionMask(), ShadeImage(), ShadowImage(), SigmoidalContrastImage(), SignatureImage(), SimilarityImage(), SketchImage(), SmushXGap(), SmushYGap(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), sRGBTransformImage(), StatisticImage(), SteganoImage(), SwirlImage(), SyncImage(), TextureImage(), TintImage(), TransformsRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UniqueImageColors(), UnsharpMaskImage(), VerticalFilter(), WaveImage(), WaveletDenoiseImage(), WhiteThresholdImage(), XShearImage(), and YShearImage().

MagickExport Quantum* GetCacheViewAuthenticPixels ( CacheView cache_view,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)

Definition at line 299 of file cache-view.c.

References GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), _CacheView::image, magick_restrict, MagickCoreSignature, _CacheView::nexus_info, _CacheView::number_threads, and _CacheView::signature.

Referenced by AssignImageColors(), BilevelImage(), BlackThresholdImage(), CannyEdgeImage(), ChannelImage(), ClampImage(), Classify(), ClutImage(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ContrastImage(), ContrastStretchImage(), CopyImageRegion(), CycleColormapImage(), DespeckleImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), DuplexTransferImageViewIterator(), EqualizeImage(), EvaluateImage(), ExcerptImage(), FloodfillPaintImage(), FloydSteinbergDither(), ForwardFourierTransformImage(), FunctionImage(), GammaImage(), GetImageMask(), GrayscaleImage(), HaldClutImage(), LevelImage(), LevelizeImage(), LocalContrastImage(), MeanShiftImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), NegateImage(), OpaquePaintImage(), OrderedDitherImage(), PerceptibleImage(), PosterizeImage(), ProfileImage(), RaiseImage(), RandomThresholdImage(), RenderPostscript(), RenderType(), RiemersmaDither(), SepiaToneImage(), SetCacheAlphaChannel(), SetGrayscaleImage(), SetImageAlpha(), SetImageAlphaChannel(), SetImageDepth(), SetImageMask(), SetImageRegionMask(), SetImageViewIterator(), SigmoidalContrastImage(), SimilarityImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), sRGBTransformImage(), SteganoImage(), SyncImage(), TraceEdges(), TransferImageViewIterator(), TransformsRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), UpdateImageViewIterator(), WaveletDenoiseImage(), WhiteThresholdImage(), XShearImage(), and YShearImage().

MagickExport const Quantum* GetCacheViewVirtualPixels ( const CacheView cache_view,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)

Definition at line 651 of file cache-view.c.

References GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), _CacheView::image, magick_restrict, MagickCoreSignature, _CacheView::nexus_info, _CacheView::number_threads, _CacheView::signature, and _CacheView::virtual_pixel_method.

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AdaptiveThresholdImage(), AddNoiseImage(), AppendImages(), BlueShiftImage(), CannyEdgeImage(), ChannelImage(), CheckImageColors(), ChopImage(), Classify(), ClassifyImageColors(), ColorMatrixImage(), CombineImages(), CompareImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ConsolidateCMYKImages(), ContrastStretchImage(), CopyImagePixels(), CopyImageRegion(), CropImage(), DespeckleImage(), DuplexTransferImageViewIterator(), EnhanceImage(), EqualizeImage(), EvaluateImages(), ExcerptImage(), FlipImage(), FloodfillPaintImage(), FlopImage(), ForwardFourierTransformImage(), FrameImage(), FxImage(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageDepth(), GetImageFeatures(), GetImageKurtosis(), GetImageMask(), GetImageMoments(), GetImageQuantizeError(), GetImageRange(), GetImageTotalInkDensity(), GetImageViewIterator(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), HorizontalFilter(), HoughLineImage(), IdentifyImageGray(), IdentifyImageMonochrome(), ImplodeImage(), IntegralRotateImage(), InterpolatePixelChannel(), InterpolatePixelChannels(), InterpolatePixelInfo(), InterpolativeResizeImage(), IsEquivalentImage(), IsHighDynamicRangeImage(), IsImageOpaque(), IsImagesEqual(), KuwaharaImage(), LinearStretchImage(), LocalContrastImage(), MagnifyImage(), MeanShiftImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), OilPaintImage(), PlasmaImageProxy(), PolynomialImage(), RadonTransform(), ResamplePixelColor(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SeparateImage(), SepiaToneImage(), SetImageColorMetric(), SetImageMask(), ShadeImage(), SignatureImage(), SmushXGap(), SmushYGap(), SpliceImage(), StatisticImage(), SwirlImage(), TextureImage(), TintImage(), TransferImageViewIterator(), TransposeImage(), TransverseImage(), UnsharpMaskImage(), and VerticalFilter().

MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod ( CacheView *magick_restrict  cache_view,
const VirtualPixelMethod  virtual_pixel_method 
)
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels ( CacheView *magick_restrict  cache_view,
ExceptionInfo exception 
)

Definition at line 1100 of file cache-view.c.

References GetOpenMPThreadId(), MagickCoreSignature, and SyncAuthenticPixelCacheNexus().

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AdaptiveThresholdImage(), AddNoiseImage(), AppendImages(), AssignImageColors(), BilevelImage(), BlackThresholdImage(), BlueShiftImage(), CannyEdgeImage(), ChannelImage(), ChopImage(), ClampImage(), Classify(), ClutImage(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImages(), ComplexImages(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), ConsolidateCMYKImages(), ContrastImage(), ContrastStretchImage(), CopyImagePixels(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DistortImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), DuplexTransferImageViewIterator(), EnhanceImage(), EqualizeImage(), EvaluateImage(), EvaluateImages(), ExcerptImage(), FlipImage(), FloodfillPaintImage(), FlopImage(), FloydSteinbergDither(), ForwardFourierTransformImage(), FrameImage(), FunctionImage(), FxImage(), GammaImage(), GetImageMask(), GrayscaleImage(), HaldClutImage(), HorizontalFilter(), HuffmanDecodeImage(), ImplodeImage(), IntegralRotateImage(), InterpolativeResizeImage(), KuwaharaImage(), LevelImage(), LevelizeImage(), LocalContrastImage(), MagnifyImage(), MatrixToImage(), MeanShiftImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), NegateImage(), NewMagickImage(), OilPaintImage(), OpaquePaintImage(), OrderedDitherImage(), PerceptibleImage(), PlasmaImageProxy(), PolynomialImage(), PosterizeImage(), ProfileImage(), RaiseImage(), RandomThresholdImage(), RenderPostscript(), RenderType(), RiemersmaDither(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SeparateImage(), SepiaToneImage(), SetCacheAlphaChannel(), SetGrayscaleImage(), SetImageAlpha(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageColor(), SetImageDepth(), SetImageMask(), SetImageRegionMask(), SetImageViewIterator(), ShadeImage(), ShadowImage(), SigmoidalContrastImage(), SimilarityImage(), SketchImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), sRGBTransformImage(), StatisticImage(), SteganoImage(), SwirlImage(), SyncImage(), TextureImage(), TintImage(), TraceEdges(), TransferImageViewIterator(), TransformsRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UniqueColorsToImage(), UnsharpMaskImage(), UpdateImageViewIterator(), VerticalFilter(), WaveImage(), WaveletDenoiseImage(), WhiteThresholdImage(), XShearImage(), and YShearImage().