cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
cristy | fe676ee | 2013-11-18 13:03:38 +0000 | [diff] [blame] | 2 | Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | 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) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 25 | typedef struct _StreamInfo |
| 26 | StreamInfo; |
| 27 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28 | typedef size_t |
| 29 | (*StreamHandler)(const Image *,const void *,const size_t); |
| 30 | |
| 31 | extern MagickExport Image |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 32 | *ReadStream(const ImageInfo *,StreamHandler,ExceptionInfo *), |
| 33 | *StreamImage(const ImageInfo *,StreamInfo *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | |
| 35 | extern MagickExport MagickBooleanType |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 36 | OpenStream(const ImageInfo *,StreamInfo *,const char *,ExceptionInfo *), |
cristy | c82a27b | 2011-10-21 01:07:16 +0000 | [diff] [blame] | 37 | WriteStream(const ImageInfo *,Image *,StreamHandler,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 39 | extern MagickExport StreamInfo |
cristy | 9950d57 | 2011-10-01 18:22:35 +0000 | [diff] [blame] | 40 | *AcquireStreamInfo(const ImageInfo *,ExceptionInfo *), |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 41 | *DestroyStreamInfo(StreamInfo *); |
| 42 | |
| 43 | extern MagickExport void |
| 44 | SetStreamInfoMap(StreamInfo *,const char *), |
| 45 | SetStreamInfoStorageType(StreamInfo *,const StorageType); |
| 46 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 47 | #if defined(__cplusplus) || defined(c_plusplus) |
| 48 | } |
| 49 | #endif |
| 50 | |
| 51 | #endif |