]> granicus.if.org Git - imagemagick/blob - MagickCore/cache-view.h
(no commit message)
[imagemagick] / MagickCore / cache-view.h
1 /*
2   Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4   
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7   
8     http://www.imagemagick.org/script/license.php
9   
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15
16   MagickCore cache view methods.
17 */
18 #ifndef _MAGICKCORE_CACHE_VIEW_H
19 #define _MAGICKCORE_CACHE_VIEW_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #include "MagickCore/pixel.h"
26
27 typedef enum
28 {
29   UndefinedVirtualPixelMethod,
30   BackgroundVirtualPixelMethod,
31   DitherVirtualPixelMethod,
32   EdgeVirtualPixelMethod,
33   MirrorVirtualPixelMethod,
34   RandomVirtualPixelMethod,
35   TileVirtualPixelMethod,
36   TransparentVirtualPixelMethod,
37   MaskVirtualPixelMethod,
38   BlackVirtualPixelMethod,
39   GrayVirtualPixelMethod,
40   WhiteVirtualPixelMethod,
41   HorizontalTileVirtualPixelMethod,
42   VerticalTileVirtualPixelMethod,
43   HorizontalTileEdgeVirtualPixelMethod,
44   VerticalTileEdgeVirtualPixelMethod,
45   CheckerTileVirtualPixelMethod
46 } VirtualPixelMethod;
47
48 typedef struct _CacheView
49   CacheView;
50
51 extern MagickExport CacheView
52   *AcquireCacheView(const Image *),
53   *CloneCacheView(const CacheView *),
54   *DestroyCacheView(CacheView *);
55
56 extern MagickExport ClassType
57   GetCacheViewStorageClass(const CacheView *);
58
59 extern MagickExport ColorspaceType
60   GetCacheViewColorspace(const CacheView *);
61
62 extern MagickExport const Quantum
63   *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
64     const size_t,const size_t,ExceptionInfo *),
65   *GetCacheViewVirtualPixelQueue(const CacheView *);
66
67 extern MagickExport const void
68   *GetCacheViewVirtualMetacontent(const CacheView *);
69
70 extern MagickExport MagickBooleanType
71   GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t,
72     Quantum *,ExceptionInfo *),
73   GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod,
74     const ssize_t,const ssize_t,Quantum *,ExceptionInfo *),
75   GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
76     Quantum *,ExceptionInfo *),
77   SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *),
78   SetCacheViewVirtualPixelMethod(CacheView *,const VirtualPixelMethod),
79   SyncCacheViewAuthenticPixels(CacheView *,ExceptionInfo *);
80
81 extern MagickExport MagickSizeType
82   GetCacheViewExtent(const CacheView *);
83
84 extern MagickExport Quantum
85   *GetCacheViewAuthenticPixelQueue(CacheView *),
86   *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
87     const size_t,const size_t,ExceptionInfo *),
88   *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
89     const size_t,const size_t,ExceptionInfo *);
90
91 extern MagickExport void
92   *GetCacheViewAuthenticMetacontent(CacheView *);
93
94 #if defined(__cplusplus) || defined(c_plusplus)
95 }
96 #endif
97
98 #endif