| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #ifndef _MAGICKCORE_BLOB_H |
|---|
| 19 | #define _MAGICKCORE_BLOB_H |
|---|
| 20 | |
|---|
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
|---|
| 22 | extern "C" { |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | #include "magick/image.h" |
|---|
| 26 | #include "magick/stream.h" |
|---|
| 27 | |
|---|
| 28 | #define MagickMaxBufferExtent 0x3c005L |
|---|
| 29 | |
|---|
| 30 | typedef enum |
|---|
| 31 | { |
|---|
| 32 | ReadMode, |
|---|
| 33 | WriteMode, |
|---|
| 34 | IOMode |
|---|
| 35 | } MapMode; |
|---|
| 36 | |
|---|
| 37 | extern MagickExport FILE |
|---|
| 38 | *GetBlobFileHandle(const Image *); |
|---|
| 39 | |
|---|
| 40 | extern MagickExport Image |
|---|
| 41 | *BlobToImage(const ImageInfo *,const void *,const size_t,ExceptionInfo *), |
|---|
| 42 | *PingBlob(const ImageInfo *,const void *,const size_t,ExceptionInfo *); |
|---|
| 43 | |
|---|
| 44 | extern MagickExport MagickBooleanType |
|---|
| 45 | BlobToFile(char *,const void *,const size_t,ExceptionInfo *), |
|---|
| 46 | FileToImage(Image *,const char *), |
|---|
| 47 | GetBlobError(const Image *), |
|---|
| 48 | ImageToFile(Image *,char *,ExceptionInfo *), |
|---|
| 49 | InjectImageBlob(const ImageInfo *,Image *,Image *,const char *, |
|---|
| 50 | ExceptionInfo *), |
|---|
| 51 | IsBlobExempt(const Image *), |
|---|
| 52 | IsBlobSeekable(const Image *), |
|---|
| 53 | IsBlobTemporary(const Image *); |
|---|
| 54 | |
|---|
| 55 | extern MagickExport MagickSizeType |
|---|
| 56 | GetBlobSize(const Image *); |
|---|
| 57 | |
|---|
| 58 | extern MagickExport StreamHandler |
|---|
| 59 | GetBlobStreamHandler(const Image *); |
|---|
| 60 | |
|---|
| 61 | extern MagickExport unsigned char |
|---|
| 62 | *FileToBlob(const char *,const size_t,size_t *,ExceptionInfo *), |
|---|
| 63 | *GetBlobStreamData(const Image *), |
|---|
| 64 | *ImageToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *), |
|---|
| 65 | *ImagesToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *); |
|---|
| 66 | |
|---|
| 67 | extern MagickExport void |
|---|
| 68 | DestroyBlob(Image *), |
|---|
| 69 | DuplicateBlob(Image *,const Image *), |
|---|
| 70 | SetBlobExempt(Image *,const MagickBooleanType); |
|---|
| 71 | |
|---|
| 72 | #if defined(__cplusplus) || defined(c_plusplus) |
|---|
| 73 | } |
|---|
| 74 | #endif |
|---|
| 75 | |
|---|
| 76 | #endif |
|---|