blob: 2e447d48b30bba006a9d6d66fbdfa974c17b8e34 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristyfe676ee2013-11-18 13:03:38 +00002 Copyright 1999-2014 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 image stream methods.
17*/
18#ifndef _MAGICKCORE_STREAM_H
19#define _MAGICKCORE_STREAM_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
cristy7832dc22011-09-05 01:21:53 +000025typedef struct _StreamInfo
26 StreamInfo;
27
cristy3ed852e2009-09-05 21:47:34 +000028typedef size_t
29 (*StreamHandler)(const Image *,const void *,const size_t);
30
31extern MagickExport Image
cristy7832dc22011-09-05 01:21:53 +000032 *ReadStream(const ImageInfo *,StreamHandler,ExceptionInfo *),
33 *StreamImage(const ImageInfo *,StreamInfo *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000034
35extern MagickExport MagickBooleanType
cristy7832dc22011-09-05 01:21:53 +000036 OpenStream(const ImageInfo *,StreamInfo *,const char *,ExceptionInfo *),
cristyc82a27b2011-10-21 01:07:16 +000037 WriteStream(const ImageInfo *,Image *,StreamHandler,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000038
cristy7832dc22011-09-05 01:21:53 +000039extern MagickExport StreamInfo
cristy9950d572011-10-01 18:22:35 +000040 *AcquireStreamInfo(const ImageInfo *,ExceptionInfo *),
cristy7832dc22011-09-05 01:21:53 +000041 *DestroyStreamInfo(StreamInfo *);
42
43extern MagickExport void
44 SetStreamInfoMap(StreamInfo *,const char *),
45 SetStreamInfoStorageType(StreamInfo *,const StorageType);
46
cristy3ed852e2009-09-05 21:47:34 +000047#if defined(__cplusplus) || defined(c_plusplus)
48}
49#endif
50
51#endif