MagickCore: cache-view.h Source File

# cache-view.h

Go to the documentation of this file.

    00001 /*
    00002   Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
    00003   dedicated to making software imaging solutions freely available.
    00004
    00005   You may not use this file except in compliance with the License.
    00006   obtain a copy of the License at
    00007
    00008     http://www.imagemagick.org/script/license.php
    00009
    00010   Unless required by applicable law or agreed to in writing, software
    00011   distributed under the License is distributed on an "AS IS" BASIS,
    00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013   See the License for the specific language governing permissions and
    00014   limitations under the License.
    00015
    00016   MagickCore cache view methods.
    00017 */
    00018 #ifndef _MAGICKCORE_CACHE_VIEW_H
    00019 #define _MAGICKCORE_CACHE_VIEW_H
    00020
    00021 #if defined(__cplusplus) || defined(c_plusplus)
    00022 extern "C" {
    00023 #endif
    00024
    00025 #include "magick/pixel.h"
    00026
    00027 typedef enum
    00028 {
    00029   UndefinedVirtualPixelMethod,
    00030   BackgroundVirtualPixelMethod,
    00031   ConstantVirtualPixelMethod,  /* deprecated */
    00032   DitherVirtualPixelMethod,
    00033   EdgeVirtualPixelMethod,
    00034   MirrorVirtualPixelMethod,
    00035   RandomVirtualPixelMethod,
    00036   TileVirtualPixelMethod,
    00037   TransparentVirtualPixelMethod,
    00038   MaskVirtualPixelMethod,
    00039   BlackVirtualPixelMethod,
    00040   GrayVirtualPixelMethod,
    00041   WhiteVirtualPixelMethod
    00042 } VirtualPixelMethod;
    00043
    00044 typedef struct _CacheView
    00045   CacheView;
    00046
    00047 extern MagickExport const PixelPacket
    00048   *AcquireCacheViewPixels(const CacheView *,const long,const long,
    00049     const unsigned long,const unsigned long,ExceptionInfo *);
    00050
    00051 extern MagickExport ClassType
    00052   GetCacheViewStorageClass(const CacheView *);
    00053
    00054 extern MagickExport ColorspaceType
    00055   GetCacheViewColorspace(const CacheView *);
    00056
    00057 extern MagickExport const IndexPacket
    00058   *AcquireCacheViewIndexes(const CacheView *);
    00059
    00060 extern MagickExport ExceptionInfo
    00061   *GetCacheViewException(const CacheView *);
    00062
    00063 extern MagickExport IndexPacket
    00064   *GetCacheViewIndexes(const CacheView *);
    00065
    00066 extern MagickExport MagickBooleanType
    00067   SetCacheViewStorageClass(CacheView *,const ClassType),
    00068   SetCacheViewVirtualPixelMethod(CacheView *,const VirtualPixelMethod),
    00069   SyncCacheView(CacheView *);
    00070
    00071 extern MagickExport PixelPacket
    00072   AcquireOneCacheViewPixel(const CacheView *,const long,const long,
    00073     ExceptionInfo *),
    00074   *GetCacheViewPixels(CacheView *,const long,const long,const unsigned long,
    00075     const unsigned long),
    00076   GetOneCacheViewPixel(const CacheView *,const long,const long),
    00077   *SetCacheView(CacheView *,const long,const long,const unsigned long,
    00078     const unsigned long);
    00079
    00080 extern MagickExport CacheView
    00081   *CloseCacheView(CacheView *),
    00082   *CloneCacheView(const CacheView *),
    00083   *OpenCacheView(const Image *);
    00084
    00085 #if defined(__cplusplus) || defined(c_plusplus)
    00086 }
    00087 #endif
    00088
    00089 #endif