00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKCORE_CACHE_VIEW_H
00019 #define MAGICKCORE_CACHE_VIEW_H
00020
00021 #include "MagickCore/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 DitherVirtualPixelMethod,
00032 EdgeVirtualPixelMethod,
00033 MirrorVirtualPixelMethod,
00034 RandomVirtualPixelMethod,
00035 TileVirtualPixelMethod,
00036 TransparentVirtualPixelMethod,
00037 MaskVirtualPixelMethod,
00038 BlackVirtualPixelMethod,
00039 GrayVirtualPixelMethod,
00040 WhiteVirtualPixelMethod,
00041 HorizontalTileVirtualPixelMethod,
00042 VerticalTileVirtualPixelMethod,
00043 HorizontalTileEdgeVirtualPixelMethod,
00044 VerticalTileEdgeVirtualPixelMethod,
00045 CheckerTileVirtualPixelMethod
00046 } VirtualPixelMethod;
00047
00048 typedef struct _CacheView
00049 CacheView;
00050
00051 extern MagickExport CacheView
00052 *AcquireAuthenticCacheView(const Image *,ExceptionInfo *),
00053 *AcquireVirtualCacheView(const Image *,ExceptionInfo *),
00054 *CloneCacheView(const CacheView *),
00055 *DestroyCacheView(CacheView *);
00056
00057 extern MagickExport ClassType
00058 GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__));
00059
00060 extern MagickExport ColorspaceType
00061 GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__));
00062
00063 extern MagickExport const Image
00064 *GetCacheViewImage(const CacheView *) magick_attribute((__pure__));
00065
00066 extern MagickExport const Quantum
00067 *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
00068 const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00069 *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot;
00070
00071 extern MagickExport const void
00072 *GetCacheViewVirtualMetacontent(const CacheView *)
00073 magick_attribute((__pure__));
00074
00075 extern MagickExport MagickBooleanType
00076 GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
00077 Quantum *,ExceptionInfo *),
00078 GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod,
00079 const ssize_t,const ssize_t,Quantum *,ExceptionInfo *),
00080 GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t,
00081 Quantum *,ExceptionInfo *),
00082 GetOneCacheViewVirtualPixelInfo(const CacheView *,const ssize_t,const ssize_t,
00083 PixelInfo *,ExceptionInfo *),
00084 SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *),
00085 SetCacheViewVirtualPixelMethod(CacheView *magick_restrict,
00086 const VirtualPixelMethod),
00087 SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *)
00088 magick_hot_spot;
00089
00090 extern MagickExport MagickSizeType
00091 GetCacheViewExtent(const CacheView *) magick_attribute((__pure__));
00092
00093 extern MagickExport Quantum
00094 *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot,
00095 *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00096 const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00097 *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00098 const size_t,const size_t,ExceptionInfo *) magick_hot_spot;
00099
00100 extern MagickExport void
00101 *GetCacheViewAuthenticMetacontent(CacheView *);
00102
00103 #if defined(__cplusplus) || defined(c_plusplus)
00104 }
00105 #endif
00106
00107 #endif