#include "magick/studio.h"#include "magick/blob.h"#include "magick/blob-private.h"#include "magick/cache.h"#include "magick/client.h"#include "magick/constitute.h"#include "magick/delegate.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/image-private.h"#include "magick/list.h"#include "magick/log.h"#include "magick/magick.h"#include "magick/memory_.h"#include "magick/policy.h"#include "magick/resource_.h"#include "magick/semaphore.h"#include "magick/string_.h"#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _BlobInfo |
Defines | |
| #define | MagickMaxBlobExtent 65541 |
| #define | MAP_FAILED ((void *) -1) |
| #define | MS_SYNC 0x04 |
Functions | |
| static int | SyncBlob (Image *) |
| MagickExport void | AttachBlob (BlobInfo *blob_info, const void *blob, const size_t length) |
| static size_t | MagickMin (const size_t x, const size_t y) |
| MagickExport MagickBooleanType | BlobToFile (char *filename, const void *blob, const size_t length, ExceptionInfo *exception) |
| MagickExport Image * | BlobToImage (const ImageInfo *image_info, const void *blob, const size_t length, ExceptionInfo *exception) |
| MagickExport BlobInfo * | CloneBlobInfo (const BlobInfo *blob_info) |
| MagickExport MagickBooleanType | CloseBlob (Image *image) |
| MagickExport void | DestroyBlob (Image *image) |
| MagickExport unsigned char * | DetachBlob (BlobInfo *blob_info) |
| MagickExport void | DuplicateBlob (Image *image, const Image *duplicate) |
| MagickExport int | EOFBlob (const Image *image) |
| MagickExport unsigned char * | FileToBlob (const char *filename, const size_t extent, size_t *length, ExceptionInfo *exception) |
| static ssize_t | WriteBlobStream (Image *image, const size_t length, const unsigned char *data) |
| MagickExport MagickBooleanType | FileToImage (Image *image, const char *filename) |
| MagickExport MagickBooleanType | GetBlobError (const Image *image) |
| MagickExport FILE * | GetBlobFileHandle (const Image *image) |
| MagickExport void | GetBlobInfo (BlobInfo *blob_info) |
| MagickExport struct stat * | GetBlobProperties (const Image *image) |
| MagickExport MagickSizeType | GetBlobSize (const Image *image) |
| MagickExport unsigned char * | GetBlobStreamData (const Image *image) |
| MagickExport StreamHandler | GetBlobStreamHandler (const Image *image) |
| MagickExport unsigned char * | ImageToBlob (const ImageInfo *image_info, Image *image, size_t *length, ExceptionInfo *exception) |
| static const unsigned char * | ReadBlobStream (Image *image, const size_t length, unsigned char *data, ssize_t *count) |
| MagickExport MagickBooleanType | ImageToFile (Image *image, char *filename, ExceptionInfo *exception) |
| MagickExport unsigned char * | ImagesToBlob (const ImageInfo *image_info, Image *images, size_t *length, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | InjectImageBlob (const ImageInfo *image_info, Image *image, Image *inject_image, const char *format, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | IsBlobExempt (const Image *image) |
| MagickExport MagickBooleanType | IsBlobSeekable (const Image *image) |
| MagickExport MagickBooleanType | IsBlobTemporary (const Image *image) |
| MagickExport unsigned char * | MapBlob (int file, const MapMode mode, const MagickOffsetType offset, const size_t length) |
| MagickExport void | MSBOrderLong (unsigned char *buffer, const size_t length) |
| MagickExport void | MSBOrderShort (unsigned char *p, const size_t length) |
| MagickExport MagickBooleanType | OpenBlob (const ImageInfo *image_info, Image *image, const BlobMode mode, ExceptionInfo *exception) |
| static size_t | PingStream (const Image *magick_unused(image), const void *magick_unused(pixels), const size_t columns) |
| MagickExport Image * | PingBlob (const ImageInfo *image_info, const void *blob, const size_t length, ExceptionInfo *exception) |
| MagickExport ssize_t | ReadBlob (Image *image, const size_t length, unsigned char *data) |
| MagickExport int | ReadBlobByte (Image *image) |
| MagickExport double | ReadBlobDouble (Image *image) |
| MagickExport float | ReadBlobFloat (Image *image) |
| MagickExport unsigned int | ReadBlobLong (Image *image) |
| MagickExport MagickSizeType | ReadBlobLongLong (Image *image) |
| MagickExport unsigned short | ReadBlobShort (Image *image) |
| MagickExport unsigned int | ReadBlobLSBLong (Image *image) |
| MagickExport unsigned short | ReadBlobLSBShort (Image *image) |
| MagickExport unsigned int | ReadBlobMSBLong (Image *image) |
| MagickExport unsigned short | ReadBlobMSBShort (Image *image) |
| MagickExport char * | ReadBlobString (Image *image, char *string) |
| MagickExport BlobInfo * | ReferenceBlob (BlobInfo *blob) |
| MagickExport MagickOffsetType | SeekBlob (Image *image, const MagickOffsetType offset, const int whence) |
| MagickExport void | SetBlobExempt (Image *image, const MagickBooleanType exempt) |
| MagickExport MagickBooleanType | SetBlobExtent (Image *image, const MagickSizeType extent) |
| MagickExport MagickOffsetType | TellBlob (const Image *image) |
| MagickExport MagickBooleanType | UnmapBlob (void *map, const size_t length) |
| MagickExport ssize_t | WriteBlob (Image *image, const size_t length, const unsigned char *data) |
| MagickExport ssize_t | WriteBlobByte (Image *image, const unsigned char value) |
| MagickExport ssize_t | WriteBlobFloat (Image *image, const float value) |
| MagickExport ssize_t | WriteBlobLong (Image *image, const unsigned int value) |
| MagickExport ssize_t | WriteBlobShort (Image *image, const unsigned short value) |
| MagickExport ssize_t | WriteBlobLSBLong (Image *image, const unsigned int value) |
| MagickExport ssize_t | WriteBlobLSBShort (Image *image, const unsigned short value) |
| MagickExport ssize_t | WriteBlobMSBLong (Image *image, const unsigned int value) |
| MagickExport ssize_t | WriteBlobMSBShort (Image *image, const unsigned short value) |
| MagickExport ssize_t | WriteBlobString (Image *image, const char *string) |
| #define MagickMaxBlobExtent 65541 |
Definition at line 75 of file blob.c.
Referenced by AttachBlob(), GetBlobInfo(), ImagesToBlob(), and ImageToBlob().
| #define MS_SYNC 0x04 |
Definition at line 87 of file blob.c.
Referenced by SyncBlob().
| MagickExport void AttachBlob | ( | BlobInfo * | blob_info, | |
| const void * | blob, | |||
| const size_t | length | |||
| ) |
Definition at line 181 of file blob.c.
References BlobStream, _BlobInfo::data, _BlobInfo::debug, _BlobInfo::extent, _BlobInfo::file, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickMaxBlobExtent, _BlobInfo::mapped, _BlobInfo::offset, _BlobInfo::quantum, TraceEvent, and _BlobInfo::type.
| MagickExport MagickBooleanType BlobToFile | ( | char * | filename, | |
| const void * | blob, | |||
| const size_t | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 235 of file blob.c.
References AcquireUniqueFileResource(), BlobError, close, GetMagickModule, LogMagickEvent(), MagickFalse, MagickMin(), MagickTrue, O_BINARY, open, S_MODE, SSIZE_MAX, ThrowFileException, TraceEvent, and write.
Referenced by BlobToImage().
| MagickExport Image* BlobToImage | ( | const ImageInfo * | image_info, | |
| const void * | blob, | |||
| const size_t | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 310 of file blob.c.
References _Image::blob, _ImageInfo::blob, BlobError, BlobToFile(), CloneImageInfo(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _ImageInfo::filename, FormatMagickString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, _ImageInfo::length, LogMagickEvent(), _ImageInfo::magick, MagickFalse, MagickSignature, MaxTextExtent, MissingDelegateError, ReadImage(), RelinquishUniqueFileResource(), SetImageInfo(), _ImageInfo::signature, ThrowMagickException(), and TraceEvent.
Referenced by ClipImagePath(), and ReadInlineImage().
Definition at line 413 of file blob.c.
References AcquireMagickMemory(), _BlobInfo::data, _BlobInfo::debug, _BlobInfo::eof, _BlobInfo::exempt, _BlobInfo::extent, _BlobInfo::file, GetBlobInfo(), IsEventLogging(), _BlobInfo::length, _BlobInfo::mapped, _BlobInfo::offset, _BlobInfo::properties, _BlobInfo::quantum, _BlobInfo::reference_count, ResourceLimitFatalError, _BlobInfo::size, _BlobInfo::status, _BlobInfo::stream, _BlobInfo::synchronize, _BlobInfo::temporary, ThrowFatalException, and _BlobInfo::type.
| MagickExport MagickBooleanType CloseBlob | ( | Image * | image | ) |
Definition at line 467 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, DetachBlob(), _BlobInfo::eof, _BlobInfo::exempt, FifoStream, _BlobInfo::file, _Image::filename, fileno, FileStream, fsync, GetBlobSize(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, pclose, PipeStream, _Image::signature, _BlobInfo::size, StandardStream, _BlobInfo::status, SyncBlob(), _BlobInfo::synchronize, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
| MagickExport void DestroyBlob | ( | Image * | image | ) |
Definition at line 586 of file blob.c.
References _Image::blob, CloseBlob(), _BlobInfo::data, _Image::debug, DestroySemaphoreInfo(), _Image::filename, GetMagickModule, _BlobInfo::length, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _BlobInfo::mapped, _BlobInfo::reference_count, RelinquishMagickMemory(), _BlobInfo::semaphore, _BlobInfo::signature, _Image::signature, TraceEvent, UnlockSemaphoreInfo(), and UnmapBlob().
Referenced by AcquireNextImage(), DestroyImage(), DuplicateBlob(), InjectImageBlob(), SyncNextImageInList(), and WriteImages().
| MagickExport unsigned char* DetachBlob | ( | BlobInfo * | blob_info | ) |
Definition at line 637 of file blob.c.
References _BlobInfo::data, _BlobInfo::debug, _BlobInfo::eof, _BlobInfo::exempt, _BlobInfo::file, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, _BlobInfo::mapped, _BlobInfo::offset, _BlobInfo::stream, TraceEvent, _BlobInfo::type, UndefinedStream, and UnmapBlob().
Definition at line 684 of file blob.c.
References _Image::blob, _Image::debug, DestroyBlob(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, ReferenceBlob(), _Image::signature, and TraceEvent.
| MagickExport int EOFBlob | ( | const Image * | image | ) |
Definition at line 719 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, _BlobInfo::eof, FifoStream, _BlobInfo::file, FileStream, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
| MagickExport unsigned char* FileToBlob | ( | const char * | filename, | |
| const size_t | extent, | |||
| size_t * | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 799 of file blob.c.
References AcquireQuantumMemory(), BlobError, close, CopyMagickMemory(), fileno, fstat, GetMagickModule, LocaleCompare(), LogMagickEvent(), MagickMaxBufferExtent, MagickMin(), MagickSeek, MapBlob(), MaxTextExtent, O_BINARY, open, read, ReadMode, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, SSIZE_MAX, stat, ThrowFileException, ThrowMagickException(), TraceEvent, and UnmapBlob().
Referenced by FileToString(), FileToStringInfo(), GetConfigureBlob(), ImagesToBlob(), and ImageToBlob().
| MagickExport MagickBooleanType FileToImage | ( | Image * | image, | |
| const char * | filename | |||
| ) |
Definition at line 979 of file blob.c.
References AcquireQuantumMemory(), BlobError, close, _Image::exception, fstat, GetMagickModule, LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickMin(), MagickSignature, MagickTrue, O_BINARY, open, read, RelinquishMagickMemory(), ResourceLimitError, _Image::signature, stat, ThrowFileException, TraceEvent, and WriteBlobStream().
| MagickExport MagickBooleanType GetBlobError | ( | const Image * | image | ) |
Definition at line 1064 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, _BlobInfo::status, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
| MagickExport FILE* GetBlobFileHandle | ( | const Image * | image | ) |
Definition at line 1095 of file blob.c.
References _Image::blob, _BlobInfo::file, MagickSignature, and _Image::signature.
| MagickExport void GetBlobInfo | ( | BlobInfo * | blob_info | ) |
Definition at line 1124 of file blob.c.
References AllocateSemaphoreInfo(), _BlobInfo::debug, IsEventLogging(), MagickMaxBlobExtent, MagickSignature, _BlobInfo::properties, _BlobInfo::quantum, _BlobInfo::reference_count, ResetMagickMemory(), _BlobInfo::semaphore, _BlobInfo::signature, _BlobInfo::type, and UndefinedStream.
| MagickExport struct stat* GetBlobProperties | ( | const Image * | image | ) | [read] |
Definition at line 1160 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _BlobInfo::properties, _Image::signature, and TraceEvent.
Referenced by ReadImage().
| MagickExport MagickSizeType GetBlobSize | ( | const Image * | image | ) |
Definition at line 1192 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _BlobInfo::file, _Image::filename, fileno, FileStream, fstat, GetMagickModule, GetPathAttributes(), _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, PipeStream, _BlobInfo::properties, _Image::signature, _BlobInfo::size, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by CloseBlob(), GetMagickProperty(), IdentifyImage(), InterpretImageProperties(), PreviewImage(), SizeBlob(), and ThumbnailImage().
| MagickExport unsigned char* GetBlobStreamData | ( | const Image * | image | ) |
Definition at line 1266 of file blob.c.
References _Image::blob, _BlobInfo::data, MagickSignature, and _Image::signature.
| MagickExport StreamHandler GetBlobStreamHandler | ( | const Image * | image | ) |
Definition at line 1295 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, _BlobInfo::stream, and TraceEvent.
Referenced by QueueAuthenticPixelsStream(), and SyncAuthenticPixelsStream().
| MagickExport unsigned char* ImagesToBlob | ( | const ImageInfo * | image_info, | |
| Image * | images, | |||
| size_t * | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1614 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _ImageInfo::adjoin, _Image::blob, _ImageInfo::blob, CloneImageInfo(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _Image::exception, _BlobInfo::exempt, fdopen, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileOpenError, FileToBlob(), FormatMagickString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, ImageToBlob(), InheritException(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickFalse, MagickMaxBlobExtent, MagickSignature, MagickTrue, MaxTextExtent, MissingDelegateError, RelinquishUniqueFileResource(), ResizeQuantumMemory(), ResourceLimitError, SetImageInfo(), _Image::signature, _ImageInfo::signature, ThrowFileException, ThrowMagickException(), TraceEvent, and WriteImages().
| MagickExport unsigned char* ImageToBlob | ( | const ImageInfo * | image_info, | |
| Image * | image, | |||
| size_t * | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1336 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _ImageInfo::adjoin, _Image::blob, _ImageInfo::blob, BlobError, CloneImageInfo(), CloseBlob(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _Image::exception, _BlobInfo::exempt, fdopen, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileToBlob(), FormatMagickString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, InheritException(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickFalse, MagickMaxBlobExtent, MagickSignature, MagickTrue, MaxTextExtent, MissingDelegateError, RelinquishUniqueFileResource(), ResizeQuantumMemory(), ResourceLimitError, SetImageInfo(), _Image::signature, _ImageInfo::signature, ThrowFileException, ThrowMagickException(), TraceEvent, and WriteImage().
Referenced by ImagesToBlob().
| MagickExport MagickBooleanType ImageToFile | ( | Image * | image, | |
| char * | filename, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1495 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, BlobError, close, _Image::debug, fileno, fstat, GetMagickModule, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickMin(), MagickSignature, MagickTrue, O_BINARY, open, ReadBlobStream(), RelinquishMagickMemory(), ResourceLimitError, S_MODE, _Image::signature, stat, ThrowFileException, ThrowMagickException(), TraceEvent, _BlobInfo::type, UndefinedStream, and write.
Referenced by ReadImage(), SetImageInfo(), and WriteImage().
| MagickExport MagickBooleanType InjectImageBlob | ( | const ImageInfo * | image_info, | |
| Image * | image, | |||
| Image * | inject_image, | |||
| const char * | format, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1755 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, CloneBlobInfo(), CloneImage(), CloneImageInfo(), close, CopyMagickString(), _Image::debug, DestroyBlob(), DestroyImage(), DestroyImageInfo(), fdopen, _ImageInfo::filename, _Image::filename, FileOpenError, FormatMagickString(), fstat, GetMagickModule, LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickMin(), MagickSignature, MagickTrue, MaxTextExtent, O_BINARY, open, read, RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResourceLimitError, SetImageInfoFile(), _Image::signature, _ImageInfo::signature, stat, ThrowBinaryException, ThrowFileException, TraceEvent, WriteBlobStream(), and WriteImage().
| MagickExport MagickBooleanType IsBlobExempt | ( | const Image * | image | ) |
Definition at line 1897 of file blob.c.
References _Image::blob, _Image::debug, _BlobInfo::exempt, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
Referenced by SetImageInfo().
| MagickExport MagickBooleanType IsBlobSeekable | ( | const Image * | image | ) |
Definition at line 1928 of file blob.c.
References _Image::blob, BlobStream, _Image::debug, _Image::filename, FileStream, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::signature, TraceEvent, and _BlobInfo::type.
Referenced by ReadImage(), SetImageInfo(), and WriteImage().
| MagickExport MagickBooleanType IsBlobTemporary | ( | const Image * | image | ) |
Definition at line 1964 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, _BlobInfo::temporary, and TraceEvent.
Referenced by ReadImage().
| static size_t MagickMin | ( | const size_t | x, | |
| const size_t | y | |||
| ) | [inline, static] |
Definition at line 228 of file blob.c.
Referenced by BlobToFile(), FileToBlob(), FileToImage(), ImageToFile(), InjectImageBlob(), ReadBlob(), and ReadBlobStream().
| MagickExport unsigned char* MapBlob | ( | int | file, | |
| const MapMode | mode, | |||
| const MagickOffsetType | offset, | |||
| const size_t | length | |||
| ) |
Definition at line 2002 of file blob.c.
References IOMode, MAP_ANONYMOUS, MAP_FAILED, MAP_PRIVATE, MAP_SHARED, mmap, PROT_READ, PROT_WRITE, ReadMode, and WriteMode.
Referenced by AcquireCacheNexusPixels(), AcquirePixelCachePixels(), AcquireRadonInfo(), AcquireStreamPixels(), ConfigureFileToStringInfo(), FileToBlob(), OpenBlob(), OpenPixelCache(), and SetBlobExtent().
| MagickExport void MSBOrderLong | ( | unsigned char * | buffer, | |
| const size_t | length | |||
| ) |
| MagickExport void MSBOrderShort | ( | unsigned char * | p, | |
| const size_t | length | |||
| ) |
| MagickExport MagickBooleanType OpenBlob | ( | const ImageInfo * | image_info, | |
| Image * | image, | |||
| const BlobMode | mode, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2188 of file blob.c.
References AcquireExceptionInfo(), _ImageInfo::adjoin, AppendBinaryBlobMode, AppendBlobMode, AttachBlob(), _Image::blob, _ImageInfo::blob, BlobError, BlobEvent, BZipStream, CopyMagickString(), _ImageInfo::debug, DestroyExceptionInfo(), DetachBlob(), _BlobInfo::exempt, ExtensionPath, fdopen, FifoStream, _BlobInfo::file, _ImageInfo::file, _Image::filename, _ImageInfo::filename, fileno, FileStream, FormatMagickString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), GetPathAttributes(), GetPathComponent(), InterpretImageFilename(), IsRightsAuthorized(), _ImageInfo::length, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), _ImageInfo::magick, MagickFalse, MagickMaxBufferExtent, MagickSignature, MagickTrue, MapBlob(), _BlobInfo::mapped, MaxTextExtent, OpenMagickStream(), PathPolicyDomain, PipeStream, PolicyError, popen, _Image::previous, _BlobInfo::properties, ReadBinaryBlobMode, ReadBlobMode, ReadMode, ReadPolicyRights, ResetMagickMemory(), RootPath, _Image::scene, SetApplicationType(), setmode, _Image::signature, _ImageInfo::signature, StandardStream, stat, _BlobInfo::stream, _ImageInfo::stream, _ImageInfo::synchronize, _BlobInfo::synchronize, ThrowFileException, ThrowMagickException(), TraceEvent, _BlobInfo::type, WriteBinaryBlobMode, WriteBlobMode, WritePolicyRights, and ZipStream.
| MagickExport Image* PingBlob | ( | const ImageInfo * | image_info, | |
| const void * | blob, | |||
| const size_t | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2534 of file blob.c.
References AcquireQuantumMemory(), _ImageInfo::blob, BlobError, CloneImageInfo(), CopyMagickMemory(), _ImageInfo::debug, DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, _ImageInfo::length, LogMagickEvent(), _ImageInfo::magick, MagickFalse, MagickSignature, MagickTrue, _ImageInfo::ping, PingStream(), ReadStream(), RelinquishMagickMemory(), ResourceLimitFatalError, _ImageInfo::signature, ThrowMagickException(), and TraceEvent.
| static size_t PingStream | ( | const Image * | magick_unusedimage, | |
| const void * | magick_unusedpixels, | |||
| const size_t | columns | |||
| ) | [static] |
Definition at line 2524 of file blob.c.
Referenced by PingBlob().
Definition at line 2601 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CopyMagickMemory(), _BlobInfo::data, _BlobInfo::eof, FifoStream, _BlobInfo::file, FileStream, _BlobInfo::length, MagickMin(), MagickSignature, MagickTrue, _BlobInfo::offset, PipeStream, _Image::signature, StandardStream, _BlobInfo::type, UndefinedStream, and ZipStream.
| MagickExport int ReadBlobByte | ( | Image * | image | ) |
Definition at line 2744 of file blob.c.
References MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport double ReadBlobDouble | ( | Image * | image | ) |
Definition at line 2786 of file blob.c.
References ReadBlobLongLong().
| MagickExport float ReadBlobFloat | ( | Image * | image | ) |
Definition at line 2825 of file blob.c.
References ReadBlobLong().
| MagickExport unsigned int ReadBlobLong | ( | Image * | image | ) |
Definition at line 2864 of file blob.c.
References _Image::endian, LSBEndian, MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport MagickSizeType ReadBlobLongLong | ( | Image * | image | ) |
Definition at line 2922 of file blob.c.
References _Image::endian, LSBEndian, MagickSignature, MagickULLConstant, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobDouble().
| MagickExport unsigned int ReadBlobLSBLong | ( | Image * | image | ) |
Definition at line 3042 of file blob.c.
References MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport unsigned short ReadBlobLSBShort | ( | Image * | image | ) |
Definition at line 3092 of file blob.c.
References MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport unsigned int ReadBlobMSBLong | ( | Image * | image | ) |
Definition at line 3140 of file blob.c.
References MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport unsigned short ReadBlobMSBShort | ( | Image * | image | ) |
Definition at line 3190 of file blob.c.
References MagickSignature, ReadBlobStream(), and _Image::signature.
| MagickExport unsigned short ReadBlobShort | ( | Image * | image | ) |
Definition at line 2988 of file blob.c.
References _Image::endian, LSBEndian, MagickSignature, ReadBlobStream(), and _Image::signature.
| static const unsigned char* ReadBlobStream | ( | Image * | image, | |
| const size_t | length, | |||
| unsigned char * | data, | |||
| ssize_t * | count | |||
| ) | [inline, static] |
Definition at line 1470 of file blob.c.
References _Image::blob, BlobStream, _BlobInfo::data, _BlobInfo::eof, _BlobInfo::length, MagickMin(), MagickTrue, _BlobInfo::offset, ReadBlob(), and _BlobInfo::type.
Referenced by ImageToFile(), ReadBlobByte(), ReadBlobLong(), ReadBlobLongLong(), ReadBlobLSBLong(), ReadBlobLSBShort(), ReadBlobMSBLong(), ReadBlobMSBShort(), ReadBlobShort(), and ReadBlobString().
| MagickExport char* ReadBlobString | ( | Image * | image, | |
| char * | string | |||
| ) |
Definition at line 3240 of file blob.c.
References MagickSignature, MaxTextExtent, ReadBlobStream(), and _Image::signature.
Definition at line 3296 of file blob.c.
References _BlobInfo::debug, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _BlobInfo::reference_count, _BlobInfo::semaphore, _BlobInfo::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by AcquireNextImage(), CloneImage(), DuplicateBlob(), and SyncNextImageInList().
| MagickExport MagickOffsetType SeekBlob | ( | Image * | image, | |
| const MagickOffsetType | offset, | |||
| const int | whence | |||
| ) |
Definition at line 3341 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _BlobInfo::data, _Image::debug, DetachBlob(), _BlobInfo::eof, _BlobInfo::extent, FifoStream, _BlobInfo::file, _Image::filename, FileStream, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, _BlobInfo::mapped, _BlobInfo::offset, PipeStream, _BlobInfo::quantum, ResizeQuantumMemory(), _Image::signature, StandardStream, SyncBlob(), TellBlob(), TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
| MagickExport void SetBlobExempt | ( | Image * | image, | |
| const MagickBooleanType | exempt | |||
| ) |
Definition at line 3454 of file blob.c.
References _Image::blob, _Image::debug, _BlobInfo::exempt, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
Referenced by AcquireImage().
| MagickExport MagickBooleanType SetBlobExtent | ( | Image * | image, | |
| const MagickSizeType | extent | |||
| ) |
Definition at line 3489 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _BlobInfo::data, _Image::debug, DetachBlob(), _BlobInfo::extent, FifoStream, _BlobInfo::file, _Image::filename, fileno, FileStream, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MapBlob(), _BlobInfo::mapped, PipeStream, ResizeQuantumMemory(), _Image::signature, StandardStream, SyncBlob(), TellBlob(), TraceEvent, _BlobInfo::type, UndefinedStream, UnmapBlob(), WriteMode, and ZipStream.
| static int SyncBlob | ( | Image * | image | ) | [static] |
Definition at line 3604 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _BlobInfo::data, _Image::debug, FifoStream, _BlobInfo::file, _Image::filename, FileStream, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, _BlobInfo::mapped, MS_SYNC, msync, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by CloseBlob(), SeekBlob(), SetBlobExtent(), and WriteBlob().
| MagickExport MagickOffsetType TellBlob | ( | const Image * | image | ) |
Definition at line 3677 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _BlobInfo::file, _Image::filename, FileStream, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _BlobInfo::offset, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by SeekBlob(), and SetBlobExtent().
| MagickExport MagickBooleanType UnmapBlob | ( | void * | map, | |
| const size_t | length | |||
| ) |
Definition at line 3746 of file blob.c.
References MagickFalse, MagickTrue, and munmap.
Referenced by ConfigureFileToStringInfo(), DestroyBlob(), DestroyMagickMemory(), DestroyRadonInfo(), DetachBlob(), FileToBlob(), RelinquishCacheNexusPixels(), RelinquishPixelCachePixels(), RelinquishStreamPixels(), and SetBlobExtent().
Definition at line 3790 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CopyMagickMemory(), _BlobInfo::data, DetachBlob(), _BlobInfo::extent, FifoStream, _BlobInfo::file, FileStream, _BlobInfo::length, MagickFalse, MagickSignature, _BlobInfo::mapped, _BlobInfo::offset, PipeStream, _BlobInfo::quantum, ResizeQuantumMemory(), _Image::signature, StandardStream, _BlobInfo::stream, SyncBlob(), _BlobInfo::type, UndefinedStream, and ZipStream.
Definition at line 3947 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 3979 of file blob.c.
References WriteBlobLong().
Definition at line 4020 of file blob.c.
References _Image::endian, LSBEndian, MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 4110 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 4149 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 4186 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 4225 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
Definition at line 4067 of file blob.c.
References _Image::endian, LSBEndian, MagickSignature, _Image::signature, and WriteBlobStream().
| static ssize_t WriteBlobStream | ( | Image * | image, | |
| const size_t | length, | |||
| const unsigned char * | data | |||
| ) | [inline, static] |
Definition at line 949 of file blob.c.
References _Image::blob, BlobStream, CopyMagickMemory(), _BlobInfo::data, _BlobInfo::extent, _BlobInfo::length, MagickFalse, _BlobInfo::offset, _BlobInfo::quantum, SetBlobExtent(), _BlobInfo::type, UndefinedStream, and WriteBlob().
Referenced by FileToImage(), InjectImageBlob(), WriteBlobByte(), WriteBlobLong(), WriteBlobLSBLong(), WriteBlobLSBShort(), WriteBlobMSBLong(), WriteBlobMSBShort(), WriteBlobShort(), and WriteBlobString().
Definition at line 4262 of file blob.c.
References MagickSignature, _Image::signature, and WriteBlobStream().
1.6.1