MagickCore  7.0.10
cache.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2020 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. You may
6  obtain a copy of the License at
7 
8  https://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 methods.
17 */
18 #ifndef MAGICKCORE_CACHE_H
19 #define MAGICKCORE_CACHE_H
20 
21 #include "MagickCore/blob.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef enum
28 {
35 } CacheType;
36 
39 
40 extern MagickExport const char
41  *GetPixelCacheFilename(const Image *);
42 
43 extern MagickExport const Quantum
44  *GetVirtualPixels(const Image *,const ssize_t,const ssize_t,const size_t,
45  const size_t,ExceptionInfo *) magick_hot_spot,
47 
48 extern MagickExport const void
49  *GetVirtualMetacontent(const Image *);
50 
52  GetOneAuthenticPixel(Image *,const ssize_t,const ssize_t,Quantum *,
53  ExceptionInfo *),
54  GetOneVirtualPixel(const Image *,const ssize_t,const ssize_t,Quantum *,
55  ExceptionInfo *),
57  const ssize_t,const ssize_t,PixelInfo *,ExceptionInfo *),
58  PersistPixelCache(Image *,const char *,const MagickBooleanType,
61 
63  GetImageExtent(const Image *);
64 
65 extern MagickExport Quantum
66  *GetAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
67  const size_t,ExceptionInfo *) magick_hot_spot,
69  *QueueAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
70  const size_t,ExceptionInfo *) magick_hot_spot;
71 
72 extern MagickExport void
73  *AcquirePixelCachePixels(const Image *,size_t *,ExceptionInfo *),
76 
77 #if defined(__cplusplus) || defined(c_plusplus)
78 }
79 #endif
80 
81 #endif
MagickExport MagickSizeType GetImageExtent(const Image *)
Definition: cache.c:1584
VirtualPixelMethod
Definition: cache-view.h:27
MagickExport MagickBooleanType PersistPixelCache(Image *, const char *, const MagickBooleanType, MagickOffsetType *, ExceptionInfo *)
MagickExport MagickBooleanType GetOneVirtualPixelInfo(const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelInfo *, ExceptionInfo *)
ssize_t MagickOffsetType
Definition: magick-type.h:133
Definition: image.h:151
MagickExport Quantum * GetAuthenticPixelQueue(const Image *) magick_hot_spot
MagickExport MagickBooleanType SyncAuthenticPixels(Image *, ExceptionInfo *) magick_hot_spot
Definition: cache.c:5428
MagickBooleanType
Definition: magick-type.h:169
MagickExport const char * GetPixelCacheFilename(const Image *)
Definition: cache.c:2180
MagickExport const Quantum * GetVirtualPixelQueue(const Image *) magick_hot_spot
Definition: cache.c:3167
MagickExport void * GetPixelCachePixels(Image *, MagickSizeType *, ExceptionInfo *)
Definition: cache.c:2305
#define magick_hot_spot
MagickExport MagickBooleanType GetOneAuthenticPixel(Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *)
size_t MagickSizeType
Definition: magick-type.h:134
MagickExport Quantum * QueueAuthenticPixels(Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
Definition: cache.c:4294
MagickExport void * AcquirePixelCachePixels(const Image *, size_t *, ExceptionInfo *)
MagickExport CacheType GetImagePixelCacheType(const Image *)
Definition: cache.c:1794
MagickExport const Quantum * GetVirtualPixels(const Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
unsigned short Quantum
Definition: magick-type.h:86
CacheType
Definition: cache.h:27
MagickExport MagickBooleanType GetOneVirtualPixel(const Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *)
MagickExport Quantum * GetAuthenticPixels(Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
Definition: cache.h:32
#define MagickExport
MagickExport void * GetAuthenticMetacontent(const Image *)
MagickExport const void * GetVirtualMetacontent(const Image *)
Definition: cache.c:2554