blob: 1f97503c7866a4eaf6e69051dccdaf30104bffe9 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy7e41fe82010-12-04 23:12:08 +00002 Copyright 1999-2011 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
cristy4c08aed2011-07-01 19:47:50 +000025#include "MagickCore/pixel.h"
cristy3ed852e2009-09-05 21:47:34 +000026
27typedef enum
28{
29 UndefinedVirtualPixelMethod,
30 BackgroundVirtualPixelMethod,
cristy3ed852e2009-09-05 21:47:34 +000031 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
48typedef struct _CacheView
49 CacheView;
50
cristy0d267172011-04-25 20:13:48 +000051extern MagickExport CacheView
52 *AcquireCacheView(const Image *),
53 *CloneCacheView(const CacheView *),
54 *DestroyCacheView(CacheView *);
55
cristy3ed852e2009-09-05 21:47:34 +000056extern MagickExport ClassType
57 GetCacheViewStorageClass(const CacheView *);
58
59extern MagickExport ColorspaceType
60 GetCacheViewColorspace(const CacheView *);
61
cristy4c08aed2011-07-01 19:47:50 +000062extern MagickExport const Quantum
cristybb503372010-05-27 20:51:26 +000063 *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
64 const size_t,const size_t,ExceptionInfo *),
cristy3ed852e2009-09-05 21:47:34 +000065 *GetCacheViewVirtualPixelQueue(const CacheView *);
66
cristy4c08aed2011-07-01 19:47:50 +000067extern MagickExport const void
68 *GetCacheViewVirtualMetacontent(const CacheView *);
69
cristy3ed852e2009-09-05 21:47:34 +000070extern MagickExport MagickBooleanType
cristybb503372010-05-27 20:51:26 +000071 GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t,
cristy2ed42f62011-10-02 19:49:57 +000072 Quantum *,ExceptionInfo *),
73 GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod,
74 const ssize_t,const ssize_t,Quantum *,ExceptionInfo *),
cristybb503372010-05-27 20:51:26 +000075 GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
cristy2ed42f62011-10-02 19:49:57 +000076 Quantum *,ExceptionInfo *),
cristyc82a27b2011-10-21 01:07:16 +000077 SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *),
cristy3ed852e2009-09-05 21:47:34 +000078 SetCacheViewVirtualPixelMethod(CacheView *,const VirtualPixelMethod),
79 SyncCacheViewAuthenticPixels(CacheView *,ExceptionInfo *);
80
81extern MagickExport MagickSizeType
82 GetCacheViewExtent(const CacheView *);
83
cristy4c08aed2011-07-01 19:47:50 +000084extern MagickExport Quantum
cristy3ed852e2009-09-05 21:47:34 +000085 *GetCacheViewAuthenticPixelQueue(CacheView *),
cristybb503372010-05-27 20:51:26 +000086 *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 *);
cristy3ed852e2009-09-05 21:47:34 +000090
cristy4c08aed2011-07-01 19:47:50 +000091extern MagickExport void
92 *GetCacheViewAuthenticMetacontent(CacheView *);
93
cristy3ed852e2009-09-05 21:47:34 +000094#if defined(__cplusplus) || defined(c_plusplus)
95}
96#endif
97
98#endif