cache-view.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore cache view methods.
00017 */
00018 #ifndef MAGICKCORE_CACHE_VIEW_H
00019 #define MAGICKCORE_CACHE_VIEW_H
00020 
00021 #include "magick/pixel.h"
00022 
00023 #if defined(__cplusplus) || defined(c_plusplus)
00024 extern "C" {
00025 #endif
00026 
00027 typedef enum
00028 {
00029   UndefinedVirtualPixelMethod,
00030   BackgroundVirtualPixelMethod,
00031   ConstantVirtualPixelMethod,  /* deprecated */
00032   DitherVirtualPixelMethod,
00033   EdgeVirtualPixelMethod,
00034   MirrorVirtualPixelMethod,
00035   RandomVirtualPixelMethod,
00036   TileVirtualPixelMethod,
00037   TransparentVirtualPixelMethod,
00038   MaskVirtualPixelMethod,
00039   BlackVirtualPixelMethod,
00040   GrayVirtualPixelMethod,
00041   WhiteVirtualPixelMethod,
00042   HorizontalTileVirtualPixelMethod,
00043   VerticalTileVirtualPixelMethod,
00044   HorizontalTileEdgeVirtualPixelMethod,
00045   VerticalTileEdgeVirtualPixelMethod,
00046   CheckerTileVirtualPixelMethod
00047 } VirtualPixelMethod;
00048 
00049 typedef struct _CacheView
00050   CacheView;
00051 
00052 extern MagickExport CacheView
00053   *AcquireAuthenticCacheView(const Image *,ExceptionInfo *),
00054   *AcquireCacheView(const Image *),
00055   *AcquireVirtualCacheView(const Image *,ExceptionInfo *),
00056   *CloneCacheView(const CacheView *),
00057   *DestroyCacheView(CacheView *);
00058 
00059 extern MagickExport ClassType
00060   GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__));
00061 
00062 extern MagickExport ColorspaceType
00063   GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__));
00064 
00065 extern MagickExport const IndexPacket
00066   *GetCacheViewVirtualIndexQueue(const CacheView *)
00067     magick_attribute((__pure__));
00068 
00069 extern MagickExport const PixelPacket
00070   *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
00071     const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00072   *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot;
00073 
00074 extern MagickExport ExceptionInfo
00075   *GetCacheViewException(const CacheView *) magick_attribute((__pure__));
00076 
00077 extern MagickExport IndexPacket
00078   *GetCacheViewAuthenticIndexQueue(CacheView *) magick_attribute((__pure__));
00079 
00080 extern MagickExport MagickBooleanType
00081   GetOneCacheViewAuthenticPixel(const CacheView *magick_restrict,const ssize_t,
00082     const ssize_t,PixelPacket *magick_restrict,ExceptionInfo *),
00083   GetOneCacheViewVirtualMethodPixel(const CacheView *,
00084     const VirtualPixelMethod,const ssize_t,const ssize_t,PixelPacket *,
00085     ExceptionInfo *),
00086   GetOneCacheViewVirtualPixel(const CacheView *magick_restrict,const ssize_t,
00087     const ssize_t,PixelPacket *magick_restrict,ExceptionInfo *),
00088   SetCacheViewStorageClass(CacheView *,const ClassType),
00089   SetCacheViewVirtualPixelMethod(CacheView *magick_restrict,
00090     const VirtualPixelMethod),
00091   SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *)
00092     magick_hot_spot;
00093 
00094 extern MagickExport MagickSizeType
00095   GetCacheViewExtent(const CacheView *);
00096 
00097 extern MagickExport size_t
00098   GetCacheViewChannels(const CacheView *);
00099 
00100 extern MagickExport PixelPacket
00101   *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot,
00102   *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00103     const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00104   *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00105     const size_t,const size_t,ExceptionInfo *) magick_hot_spot;
00106 
00107 #if defined(__cplusplus) || defined(c_plusplus)
00108 }
00109 #endif
00110 
00111 #endif

Generated on 2 Mar 2020 for MagickCore by  doxygen 1.6.1