blob: e64f96ac4ef1d19f5948734ef338b2d67aed45cb [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy16af1cb2009-12-11 21:38:29 +00002 Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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)
22extern "C" {
23#endif
24
25#include "magick/pixel.h"
26
27typedef enum
28{
29 UndefinedVirtualPixelMethod,
30 BackgroundVirtualPixelMethod,
31 ConstantVirtualPixelMethod, /* deprecated */
32 DitherVirtualPixelMethod,
33 EdgeVirtualPixelMethod,
34 MirrorVirtualPixelMethod,
35 RandomVirtualPixelMethod,
36 TileVirtualPixelMethod,
37 TransparentVirtualPixelMethod,
38 MaskVirtualPixelMethod,
39 BlackVirtualPixelMethod,
40 GrayVirtualPixelMethod,
41 WhiteVirtualPixelMethod,
42 HorizontalTileVirtualPixelMethod,
43 VerticalTileVirtualPixelMethod,
44 HorizontalTileEdgeVirtualPixelMethod,
45 VerticalTileEdgeVirtualPixelMethod,
46 CheckerTileVirtualPixelMethod
47} VirtualPixelMethod;
48
49typedef struct _CacheView
50 CacheView;
51
52extern MagickExport ClassType
53 GetCacheViewStorageClass(const CacheView *);
54
55extern MagickExport ColorspaceType
56 GetCacheViewColorspace(const CacheView *);
57
58extern MagickExport const IndexPacket
59 *GetCacheViewVirtualIndexQueue(const CacheView *);
60
61extern MagickExport const PixelPacket
cristybb503372010-05-27 20:51:26 +000062 *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
63 const size_t,const size_t,ExceptionInfo *),
cristy3ed852e2009-09-05 21:47:34 +000064 *GetCacheViewVirtualPixelQueue(const CacheView *);
65
66extern MagickExport ExceptionInfo
67 *GetCacheViewException(const CacheView *);
68
69extern MagickExport IndexPacket
70 *GetCacheViewAuthenticIndexQueue(CacheView *);
71
72extern MagickExport MagickBooleanType
cristybb503372010-05-27 20:51:26 +000073 GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t,
cristy3ed852e2009-09-05 21:47:34 +000074 PixelPacket *,ExceptionInfo *),
75 GetOneCacheViewVirtualMethodPixel(const CacheView *,
cristybb503372010-05-27 20:51:26 +000076 const VirtualPixelMethod,const ssize_t,const ssize_t,PixelPacket *,
cristy3ed852e2009-09-05 21:47:34 +000077 ExceptionInfo *),
cristybb503372010-05-27 20:51:26 +000078 GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
cristy3ed852e2009-09-05 21:47:34 +000079 PixelPacket *,ExceptionInfo *),
80 SetCacheViewStorageClass(CacheView *,const ClassType),
81 SetCacheViewVirtualPixelMethod(CacheView *,const VirtualPixelMethod),
82 SyncCacheViewAuthenticPixels(CacheView *,ExceptionInfo *);
83
84extern MagickExport MagickSizeType
85 GetCacheViewExtent(const CacheView *);
86
87extern MagickExport PixelPacket
88 *GetCacheViewAuthenticPixelQueue(CacheView *),
cristybb503372010-05-27 20:51:26 +000089 *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
90 const size_t,const size_t,ExceptionInfo *),
91 *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
92 const size_t,const size_t,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000093
94extern MagickExport CacheView
95 *AcquireCacheView(const Image *),
96 *CloneCacheView(const CacheView *),
97 *DestroyCacheView(CacheView *);
98
99#if defined(__cplusplus) || defined(c_plusplus)
100}
101#endif
102
103#endif