Data Structures | Functions

cache-view.c File Reference

#include "magick/studio.h"
#include "magick/cache.h"
#include "magick/cache-private.h"
#include "magick/cache-view.h"
#include "magick/memory_.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/string_.h"
#include "magick/thread-private.h"
Include dependency graph for cache-view.c:

Go to the source code of this file.

Data Structures

struct  _CacheView

Functions

MagickExport CacheViewAcquireCacheView (const Image *image)
MagickExport CacheViewCloneCacheView (const CacheView *cache_view)
MagickExport CacheViewDestroyCacheView (CacheView *cache_view)
MagickExport ColorspaceType GetCacheViewColorspace (const CacheView *cache_view)
MagickExport ExceptionInfoGetCacheViewException (const CacheView *cache_view)
MagickExport MagickSizeType GetCacheViewExtent (const CacheView *cache_view)
MagickExport ClassType GetCacheViewStorageClass (const CacheView *cache_view)
MagickExport PixelPacketGetCacheViewAuthenticPixels (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, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport IndexPacketGetCacheViewAuthenticIndexQueue (CacheView *cache_view)
MagickExport PixelPacketGetCacheViewAuthenticPixelQueue (CacheView *cache_view)
MagickExport const IndexPacketGetCacheViewVirtualIndexQueue (const CacheView *cache_view)
MagickExport const PixelPacketGetCacheViewVirtualPixelQueue (const CacheView *cache_view)
MagickExport const PixelPacketGetCacheViewVirtualPixels (const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel (const CacheView *cache_view, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel (const CacheView *cache_view, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport PixelPacketQueueCacheViewAuthenticPixels (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)
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod (CacheView *cache_view, const VirtualPixelMethod virtual_pixel_method)
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels (CacheView *cache_view, ExceptionInfo *exception)

Function Documentation

MagickExport CacheView* AcquireCacheView ( const Image image  ) 

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

References AcquireAlignedMemory(), AcquirePixelCacheNexus(), CacheFatalError, _CacheView::debug, _Image::debug, _Image::filename, GetImageVirtualPixelMethod(), GetMagickModule, GetOpenMPMaximumThreads(), _CacheView::image, IsEventLogging(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheView::nexus_info, _CacheView::number_threads, ReferenceImage(), ResetMagickMemory(), ResourceLimitFatalError, _CacheView::signature, _Image::signature, ThrowFatalException, TraceEvent, and _CacheView::virtual_pixel_method.

Referenced by AcquireResampleFilter(), AdaptiveBlurImageChannel(), AdaptiveResizeImage(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), BlurImageChannel(), ChopImage(), ClampImageChannel(), Classify(), ClassifyImageColors(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DirectToColormapImage(), DistortImage(), DitherImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExcerptImage(), FilterImageChannel(), FlipImage(), FlopImage(), FloydSteinbergDither(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetAbsoluteError(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetMeanAbsoluteError(), GetMeanErrorPerPixel(), GetMeanSquaredError(), GetPeakAbsoluteError(), GetSimilarityMetric(), HaldClutImageChannel(), HorizontalFilter(), ImplodeImage(), IntegralRotateImage(), InterpolateResampleFilter(), IsGrayImage(), IsHighDynamicRangeImage(), IsHistogramImage(), IsImagesEqual(), IsImageSimilar(), IsMonochromeImage(), IsOpaqueImage(), IsPaletteImage(), LevelImageChannel(), LevelizeImageChannel(), MedianFilterImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), NewImageView(), NewImageViewRegion(), NewMagickImage(), OilPaintImage(), OpaquePaintImageChannel(), OpenCacheView(), OrderedPosterizeImageChannel(), PosterizeImage(), ProfileImage(), RadialBlurImageChannel(), RadonTransform(), RaiseImage(), RandomThresholdImageChannel(), ReduceNoiseImage(), RenderPostscript(), ResamplePixelColor(), RGBTransformImage(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageChannelDepth(), SetImageColor(), SetImageOpacity(), ShadeImage(), ShadowImage(), SigmoidalContrastImageChannel(), SignatureImage(), SimilarityImage(), SketchImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), SwirlImage(), SyncImage(), TextureImage(), TintImage(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveImage(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().

MagickExport CacheView* CloneCacheView ( const CacheView cache_view  ) 
MagickExport CacheView* DestroyCacheView ( CacheView cache_view  ) 

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

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

Referenced by AdaptiveBlurImageChannel(), AdaptiveResizeImage(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), BlurImageChannel(), ChopImage(), ClampImageChannel(), Classify(), ClassifyImageColors(), CloseCacheView(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DestroyImageView(), DestroyResampleFilter(), DirectToColormapImage(), DistortImage(), DitherImage(), DrawAffineImage(), DrawPolygonPrimitive(), DrawPrimitive(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExcerptImage(), FilterImageChannel(), FlipImage(), FlopImage(), FloydSteinbergDither(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetAbsoluteError(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetMeanAbsoluteError(), GetMeanErrorPerPixel(), GetMeanSquaredError(), GetPeakAbsoluteError(), GetSimilarityMetric(), HaldClutImageChannel(), HorizontalFilter(), ImplodeImage(), IntegralRotateImage(), InterpolateResampleFilter(), IsGrayImage(), IsHighDynamicRangeImage(), IsHistogramImage(), IsImagesEqual(), IsImageSimilar(), IsMonochromeImage(), IsOpaqueImage(), IsPaletteImage(), LevelImageChannel(), MedianFilterImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), NewMagickImage(), OilPaintImage(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PosterizeImage(), ProfileImage(), RadialBlurImageChannel(), RadonTransform(), RaiseImage(), RandomThresholdImageChannel(), ReduceNoiseImage(), RenderPostscript(), ResamplePixelColor(), RGBTransformImage(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageChannelDepth(), SetImageColor(), SetImageOpacity(), ShadowImage(), SigmoidalContrastImageChannel(), SignatureImage(), SimilarityImage(), SketchImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), SwirlImage(), SyncImage(), TextureImage(), TintImage(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveImage(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().

MagickExport IndexPacket* GetCacheViewAuthenticIndexQueue ( CacheView cache_view  ) 

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

References _Image::cache, GetOpenMPThreadId(), GetPixelCacheNexusIndexes(), _CacheView::image, MagickSignature, _CacheView::nexus_info, _CacheView::number_threads, and _CacheView::signature.

Referenced by AdaptiveBlurImageChannel(), AdaptiveResizeImage(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), BlurImageChannel(), ChopImage(), ClampImageChannel(), Classify(), ClutImageChannel(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), CompositeImageChannel(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CropImage(), CycleColormapImage(), DirectToColormapImage(), DistortImage(), DrawAffineImage(), DrawGradientImage(), DuplexTransferImageViewIterator(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExcerptImage(), FilterImageChannel(), FlipImage(), FlopImage(), FloydSteinbergDither(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetCacheViewIndexes(), GetImageBoundingBox(), GetImageQuantizeError(), GetImageViewAuthenticIndexes(), HaldClutImageChannel(), HorizontalFilter(), ImplodeImage(), ImportQuantumPixels(), IntegralRotateImage(), LevelImageChannel(), LevelizeImageChannel(), MedianFilterImage(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), NewMagickImage(), OilPaintImage(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PosterizeImage(), ProfileImage(), RadialBlurImageChannel(), RandomThresholdImageChannel(), ReduceNoiseImage(), ResamplePixelColor(), RGBTransformImage(), RiemersmaDither(), SampleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageChannelDepth(), SetImageColor(), SetImageViewIterator(), SigmoidalContrastImageChannel(), SketchImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), SwirlImage(), SyncImage(), TextureImage(), TransferImageViewIterator(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UnsharpMaskImageChannel(), UpdateImageViewIterator(), VerticalFilter(), WaveImage(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().

MagickExport PixelPacket* GetCacheViewAuthenticPixelQueue ( CacheView cache_view  ) 
MagickExport PixelPacket* 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 387 of file cache-view.c.

References GetAuthenticPixelCacheNexus(), GetImagePixelCache(), GetOpenMPThreadId(), _CacheView::image, MagickSignature, MagickTrue, _CacheView::nexus_info, _CacheView::number_threads, and _CacheView::signature.

Referenced by AdaptiveThresholdImage(), AddNoiseImageChannel(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), BlurImageChannel(), ClampImageChannel(), Classify(), ClutImageChannel(), ColorDecisionListImage(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CycleColormapImage(), DespeckleImage(), DirectToColormapImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), DuplexTransferImageViewIterator(), EqualizeImageChannel(), EvaluateImageChannel(), ExcerptImage(), FilterImageChannel(), FloydSteinbergDither(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetCacheView(), GetCacheViewPixels(), HaldClutImageChannel(), ImplodeImage(), LevelImageChannel(), LevelizeImageChannel(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), ProfileImage(), RadialBlurImageChannel(), RaiseImage(), RandomThresholdImageChannel(), RenderPostscript(), RGBTransformImage(), RiemersmaDither(), SelectiveBlurImageChannel(), SeparateImageChannel(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetImageOpacity(), SetImageViewIterator(), ShadowImage(), SigmoidalContrastImageChannel(), SimilarityImage(), SolarizeImage(), SortColormapByIntensity(), SwirlImage(), SyncImage(), TransferImageViewIterator(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), UnsharpMaskImageChannel(), UpdateImageViewIterator(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().

MagickExport ColorspaceType GetCacheViewColorspace ( const CacheView cache_view  ) 
MagickExport ExceptionInfo* GetCacheViewException ( const CacheView cache_view  ) 
MagickExport MagickSizeType GetCacheViewExtent ( const CacheView cache_view  ) 
MagickExport ClassType GetCacheViewStorageClass ( const CacheView cache_view  ) 
MagickExport const IndexPacket* GetCacheViewVirtualIndexQueue ( const CacheView cache_view  ) 
MagickExport const PixelPacket* GetCacheViewVirtualPixelQueue ( const CacheView cache_view  ) 
MagickExport const PixelPacket* 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 678 of file cache-view.c.

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

Referenced by AcquireCacheViewPixels(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), BlueShiftImage(), BlurImageChannel(), ChopImage(), Classify(), ClassifyImageColors(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), CompositeImageChannel(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CropImage(), DespeckleImage(), DuplexTransferImageViewIterator(), EnhanceImage(), EvaluateImages(), ExcerptImage(), FilterImageChannel(), FlipImage(), FlopImage(), FrameImage(), GetAbsoluteError(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetImageViewIterator(), GetMeanAbsoluteError(), GetMeanErrorPerPixel(), GetMeanSquaredError(), GetPeakAbsoluteError(), GetSimilarityMetric(), HorizontalFilter(), IntegralRotateImage(), InterpolatePixelColor(), InterpolateResampleFilter(), IsGrayImage(), IsHighDynamicRangeImage(), IsHistogramImage(), IsImagesEqual(), IsImageSimilar(), IsMonochromeImage(), IsOpaqueImage(), IsPaletteImage(), MedianFilterImage(), MorphImages(), MorphologyPrimitive(), OilPaintImage(), RadonTransform(), ReduceNoiseImage(), ResamplePixelColor(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SepiaToneImage(), ShadeImage(), SignatureImage(), SpliceImage(), TextureImage(), TintImage(), TransferImageViewIterator(), TransposeImage(), TransverseImage(), UnsharpMaskImageChannel(), and VerticalFilter().

MagickExport MagickBooleanType GetOneCacheViewAuthenticPixel ( const CacheView cache_view,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel ( const CacheView cache_view,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel ( const CacheView cache_view,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
MagickExport PixelPacket* QueueCacheViewAuthenticPixels ( 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 
)
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod ( CacheView cache_view,
const VirtualPixelMethod  virtual_pixel_method 
)
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels ( CacheView cache_view,
ExceptionInfo exception 
)

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

References _CacheView::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), _CacheView::image, LogMagickEvent(), MagickFalse, MagickSignature, _CacheView::nexus_info, _CacheView::number_threads, _CacheView::signature, SyncAuthenticPixelCacheNexus(), and TraceEvent.

Referenced by AdaptiveBlurImageChannel(), AdaptiveResizeImage(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), BlurImageChannel(), ChopImage(), ClampImageChannel(), Classify(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), ConvolveImageChannel(), CopyImageRegion(), CropImage(), CycleColormapImage(), DespeckleImage(), DirectToColormapImage(), DistortImage(), DrawAffineImage(), DrawPolygonPrimitive(), DrawPrimitive(), DuplexTransferImageViewIterator(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExcerptImage(), FilterImageChannel(), FlipImage(), FlopImage(), FloydSteinbergDither(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), HaldClutImageChannel(), HorizontalFilter(), ImplodeImage(), IntegralRotateImage(), LevelImageChannel(), LevelizeImageChannel(), MedianFilterImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), NewMagickImage(), OilPaintImage(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PosterizeImage(), ProfileImage(), RadialBlurImageChannel(), RaiseImage(), RandomThresholdImageChannel(), ReduceNoiseImage(), RenderPostscript(), RGBTransformImage(), RiemersmaDither(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetImageChannelDepth(), SetImageColor(), SetImageOpacity(), SetImageViewIterator(), ShadeImage(), ShadowImage(), SigmoidalContrastImageChannel(), SimilarityImage(), SketchImage(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpreadImage(), SwirlImage(), SyncCacheView(), SyncCacheViewPixels(), SyncImage(), TextureImage(), TintImage(), TransferImageViewIterator(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), UnsharpMaskImageChannel(), UpdateImageViewIterator(), VerticalFilter(), WaveImage(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().