MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/client.h"
#include "MagickCore/constitute.h"
#include "MagickCore/delegate.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/locale_.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/policy.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/timer-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
Go to the source code of this file.
Data Structures | |
union | FileInfo |
struct | _BlobInfo |
struct | _CustomStreamInfo |
Macros | |
#define | MagickMaxBlobExtent (8*8192) |
#define | MAP_FAILED ((void *) -1) |
Typedefs | |
typedef union FileInfo | FileInfo |
MagickExport CustomStreamInfo * AcquireCustomStreamInfo | ( | ExceptionInfo * | magick_unusedexception | ) |
Definition at line 223 of file blob.c.
References AcquireCriticalMemory(), magick_unreferenced, MagickCoreSignature, and _CustomStreamInfo::signature.
MagickExport void AttachBlob | ( | BlobInfo * | blob_info, |
const void * | blob, | ||
const size_t | length | ||
) |
Definition at line 264 of file blob.c.
References BlobStream, _BlobInfo::data, _BlobInfo::extent, FileInfo::file, _BlobInfo::file_info, GetMagickModule, IsEventLogging(), _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickMaxBlobExtent, _BlobInfo::mapped, _BlobInfo::offset, _BlobInfo::quantum, TraceEvent, and _BlobInfo::type.
Referenced by OpenBlob().
MagickExport void AttachCustomStream | ( | BlobInfo * | blob_info, |
CustomStreamInfo * | custom_stream | ||
) |
Definition at line 305 of file blob.c.
References _BlobInfo::custom_stream, CustomStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CustomStreamInfo::signature, TraceEvent, and _BlobInfo::type.
MagickExport MagickBooleanType BlobToFile | ( | char * | filename, |
const void * | blob, | ||
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 347 of file blob.c.
References AcquireUniqueFileResource(), BlobError, GetMagickModule, IsEventLogging(), LogMagickEvent(), MAGICK_SSIZE_MAX, MagickFalse, MagickMin, MagickTrue, O_BINARY, open_utf8(), S_MODE, ThrowFileException, and TraceEvent.
Referenced by BlobToImage(), and PingBlob().
MagickExport Image * BlobToImage | ( | const ImageInfo * | image_info, |
const void * | blob, | ||
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 423 of file blob.c.
References _Image::blob, _ImageInfo::blob, BlobError, BlobToFile(), CloneImageInfo(), CopyMagickString(), DestroyImageInfo(), DetachBlob(), _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetFirstImageInList(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), IsEventLogging(), _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickPathExtent, MissingDelegateError, _MagickInfo::name, ReadImage(), RelinquishUniqueFileResource(), SetImageInfo(), _ImageInfo::signature, ThrowMagickException(), and TraceEvent.
Referenced by ClipImagePath(), and ReadInlineImage().
MagickExport BlobInfo * CloneBlobInfo | ( | const BlobInfo * | blob_info | ) |
Definition at line 547 of file blob.c.
References AcquireCriticalMemory(), AcquireMagickResource(), GetBlobInfo(), _BlobInfo::length, LockSemaphoreInfo(), MagickFalse, _BlobInfo::mapped, MapResource, _BlobInfo::reference_count, _BlobInfo::semaphore, and UnlockSemaphoreInfo().
Referenced by DisassociateBlob(), and InjectImageBlob().
MagickExport MagickBooleanType CloseBlob | ( | Image * | image | ) |
Definition at line 600 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, DetachBlob(), _Image::extent, FifoStream, _Image::filename, FileStream, GetBlobSize(), GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, PipeStream, _Image::signature, StandardStream, SyncBlob(), ThrowBlobException(), TraceEvent, UndefinedBlobMode, UndefinedStream, and ZipStream.
Referenced by CustomStreamToImage(), DestroyBlob(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), and ImageToCustomStream().
MagickExport Image * CustomStreamToImage | ( | const ImageInfo * | image_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 778 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), BlobError, CloneImageInfo(), CloseBlob(), CopyMagickString(), _ImageInfo::custom_stream, _CustomStreamInfo::data, DestroyImageInfo(), _ImageInfo::file, _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetFirstImageInList(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), IsEventLogging(), LogMagickEvent(), _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickPathExtent, MissingDelegateError, _MagickInfo::name, _CustomStreamInfo::reader, ReadImage(), RelinquishMagickMemory(), RelinquishUniqueFileResource(), SetImageInfo(), _CustomStreamInfo::signature, _ImageInfo::signature, ThrowFileException, ThrowMagickException(), and TraceEvent.
MagickExport void DestroyBlob | ( | Image * | image | ) |
Definition at line 934 of file blob.c.
References _Image::blob, CloseBlob(), _Image::filename, GetMagickModule, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MapResource, RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishSemaphoreInfo(), _BlobInfo::signature, _Image::signature, TraceEvent, UnlockSemaphoreInfo(), and UnmapBlob().
Referenced by AcquireNextImage(), DestroyImage(), DisassociateBlob(), DuplicateBlob(), InjectImageBlob(), and SyncNextImageInList().
MagickExport CustomStreamInfo * DestroyCustomStreamInfo | ( | CustomStreamInfo * | custom_stream | ) |
Definition at line 996 of file blob.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, RelinquishMagickMemory(), _CustomStreamInfo::signature, and TraceEvent.
MagickExport void * DetachBlob | ( | BlobInfo * | blob_info | ) |
Definition at line 1030 of file blob.c.
References _BlobInfo::custom_stream, _BlobInfo::data, _BlobInfo::eof, _BlobInfo::error, _BlobInfo::exempt, FileInfo::file, _BlobInfo::file_info, GetMagickModule, IsEventLogging(), _BlobInfo::length, LogMagickEvent(), MagickFalse, _BlobInfo::mapped, MapResource, _BlobInfo::offset, RelinquishMagickResource(), _BlobInfo::stream, TraceEvent, _BlobInfo::type, UndefinedStream, and UnmapBlob().
Referenced by BlobToImage(), CloseBlob(), ImagesToBlob(), ImageToBlob(), OpenBlob(), PingBlob(), SetBlobExtent(), and WriteBlob().
MagickExport void DisassociateBlob | ( | Image * | image | ) |
Definition at line 1083 of file blob.c.
References _Image::blob, CloneBlobInfo(), DestroyBlob(), _Image::filename, GetMagickModule, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _BlobInfo::signature, _Image::signature, TraceEvent, and UnlockSemaphoreInfo().
MagickExport MagickBooleanType DiscardBlobBytes | ( | Image * | image, |
const MagickSizeType | length | ||
) |
Definition at line 1137 of file blob.c.
References MagickCoreSignature, MagickFalse, MagickMin, MagickMinBufferExtent, MagickTrue, ReadBlobStream(), and _Image::signature.
MagickExport void DuplicateBlob | ( | Image * | image, |
const Image * | duplicate | ||
) |
Definition at line 1195 of file blob.c.
References _Image::blob, DestroyBlob(), _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, ReferenceBlob(), _Image::signature, and TraceEvent.
MagickExport int EOFBlob | ( | const Image * | image | ) |
Definition at line 1230 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
MagickExport int ErrorBlob | ( | const Image * | image | ) |
Definition at line 1310 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
MagickExport void * FileToBlob | ( | const char * | filename, |
const size_t | extent, | ||
size_t * | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1395 of file blob.c.
References AcquireQuantumMemory(), BlobError, GetMagickModule, GetPathAttributes(), IsEventLogging(), IsRightsAuthorized(), LocaleCompare(), LogMagickEvent(), MAGICK_SSIZE_MAX, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickPathExtent, MapBlob(), O_BINARY, open_utf8(), PathPolicyDomain, PolicyError, ReadMode, ReadPolicyRights, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, S_ISDIR, ThrowFileException, ThrowMagickException(), TraceEvent, and UnmapBlob().
Referenced by FileToString(), FileToStringInfo(), ImagesToBlob(), and ImageToBlob().
MagickExport MagickBooleanType FileToImage | ( | Image * | image, |
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1617 of file blob.c.
References AcquireQuantumMemory(), BlobError, GetMagickModule, IsEventLogging(), IsRightsAuthorized(), LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, O_BINARY, open_utf8(), PathPolicyDomain, PolicyError, RelinquishMagickMemory(), ResourceLimitError, _Image::signature, ThrowFileException, ThrowMagickException(), TraceEvent, WriteBlobStream(), and WritePolicyRights.
MagickExport MagickBooleanType GetBlobError | ( | const Image * | image | ) |
Definition at line 1718 of file blob.c.
References _Image::blob, _BlobInfo::error_number, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, _BlobInfo::status, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
MagickExport FILE * GetBlobFileHandle | ( | const Image * | image | ) |
Definition at line 1751 of file blob.c.
References _Image::blob, FileInfo::file, _BlobInfo::file_info, MagickCoreSignature, and _Image::signature.
MagickExport void GetBlobInfo | ( | BlobInfo * | blob_info | ) |
Definition at line 1780 of file blob.c.
References AcquireSemaphoreInfo(), BlobEvent, _BlobInfo::debug, GetLogEventMask(), GetMagickTime(), MagickCoreSignature, MagickFalse, MagickMaxBlobExtent, MagickTrue, _BlobInfo::properties, _BlobInfo::quantum, _BlobInfo::reference_count, _BlobInfo::semaphore, _BlobInfo::signature, _BlobInfo::type, and UndefinedStream.
Referenced by CloneBlobInfo().
MagickExport const struct stat * GetBlobProperties | ( | const Image * | image | ) |
Definition at line 1816 of file blob.c.
References _Image::blob, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _BlobInfo::properties, _Image::signature, and TraceEvent.
Referenced by ReadImage().
MagickExport MagickSizeType GetBlobSize | ( | const Image * | image | ) |
Definition at line 1848 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, _Image::filename, FileStream, GetMagickModule, GetPathAttributes(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, UndefinedStream, and ZipStream.
Referenced by CloseBlob(), GetMagickProperty(), GetMagickPropertyLetter(), ImageStat(), OpenBlob(), PreviewImage(), RenderHoughLines(), and ThumbnailImage().
MagickExport void * GetBlobStreamData | ( | const Image * | image | ) |
Definition at line 1952 of file blob.c.
References _Image::blob, _BlobInfo::data, MagickCoreSignature, and _Image::signature.
Referenced by RenderHoughLines().
MagickExport StreamHandler GetBlobStreamHandler | ( | const Image * | image | ) |
Definition at line 1981 of file blob.c.
References _Image::blob, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, _BlobInfo::stream, and TraceEvent.
Referenced by QueueAuthenticPixelsStream(), and SyncAuthenticPixelsStream().
MagickExport void * ImagesToBlob | ( | const ImageInfo * | image_info, |
Image * | images, | ||
size_t * | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2425 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, _ImageInfo::blob, CloneImageInfo(), CloseBlob(), CopyMagickString(), DestroyImageInfo(), DetachBlob(), _BlobInfo::exempt, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileOpenError, FileToBlob(), FormatLocaleString(), GetImageListLength(), GetMagickAdjoin(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, ImageToBlob(), IsEventLogging(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBlobExtent, MagickPathExtent, MagickTrue, MissingDelegateError, RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResizeQuantumMemory(), ResourceLimitError, SetImageInfo(), _Image::signature, _ImageInfo::signature, ThrowFileException, ThrowMagickException(), TraceEvent, and WriteImages().
MagickExport void ImagesToCustomStream | ( | const ImageInfo * | image_info, |
Image * | images, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2563 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), BlobError, CloneImageInfo(), CloseBlob(), CopyMagickString(), _ImageInfo::custom_stream, _CustomStreamInfo::data, DestroyImageInfo(), _ImageInfo::file, _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetImageListLength(), GetMagickBlobSupport(), GetMagickEncoderSeekableStream(), GetMagickInfo(), GetMagickModule, IsEventLogging(), LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickPathExtent, MissingDelegateError, RelinquishMagickMemory(), RelinquishUniqueFileResource(), _CustomStreamInfo::seeker, SetImageInfo(), _CustomStreamInfo::signature, _Image::signature, _ImageInfo::signature, _CustomStreamInfo::teller, ThrowFileException, ThrowMagickException(), TraceEvent, WriteImages(), and _CustomStreamInfo::writer.
MagickExport void * ImageToBlob | ( | const ImageInfo * | image_info, |
Image * | image, | ||
size_t * | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2023 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _ImageInfo::adjoin, _Image::blob, _ImageInfo::blob, BlobError, CloneImageInfo(), CloseBlob(), CopyMagickString(), DestroyImageInfo(), DetachBlob(), _BlobInfo::exempt, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileToBlob(), FormatLocaleString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, IsEventLogging(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBlobExtent, MagickPathExtent, MagickTrue, MissingDelegateError, RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResizeQuantumMemory(), ResourceLimitError, SetImageInfo(), _Image::signature, _ImageInfo::signature, ThrowFileException, ThrowMagickException(), TraceEvent, and WriteImage().
Referenced by ImagesToBlob().
MagickExport void ImageToCustomStream | ( | const ImageInfo * | image_info, |
Image * | image, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2155 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _ImageInfo::adjoin, BlobError, CloneImageInfo(), CloseBlob(), CopyMagickString(), _ImageInfo::custom_stream, _CustomStreamInfo::data, DestroyImageInfo(), _ImageInfo::file, _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetMagickBlobSupport(), GetMagickEncoderSeekableStream(), GetMagickInfo(), GetMagickModule, IsEventLogging(), LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickPathExtent, MissingDelegateError, RelinquishMagickMemory(), RelinquishUniqueFileResource(), _CustomStreamInfo::seeker, SetImageInfo(), _CustomStreamInfo::signature, _Image::signature, _ImageInfo::signature, _CustomStreamInfo::teller, ThrowFileException, ThrowMagickException(), TraceEvent, WriteImage(), and _CustomStreamInfo::writer.
MagickExport MagickBooleanType ImageToFile | ( | Image * | image, |
char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2303 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, BlobError, GetMagickModule, IsEventLogging(), LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, O_BINARY, open_utf8(), ReadBlobStream(), RelinquishMagickMemory(), ResourceLimitError, S_MODE, _Image::signature, ThrowFileException, ThrowMagickException(), TraceEvent, _BlobInfo::type, and UndefinedStream.
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 2717 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, CloneBlobInfo(), CloneImage(), CloneImageInfo(), CopyMagickString(), DestroyBlob(), DestroyImage(), DestroyImageInfo(), _Image::filename, _ImageInfo::filename, FileOpenError, FormatLocaleString(), GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickPathExtent, MagickTrue, O_BINARY, open_utf8(), RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResourceLimitError, SetImageInfoFile(), _Image::signature, _ImageInfo::signature, ThrowBinaryException, ThrowFileException, TraceEvent, WriteBlobStream(), and WriteImage().
MagickExport MagickBooleanType IsBlobExempt | ( | const Image * | image | ) |
Definition at line 2856 of file blob.c.
References _Image::blob, _BlobInfo::exempt, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by SetImageInfo().
MagickExport MagickBooleanType IsBlobSeekable | ( | const Image * | image | ) |
Definition at line 2887 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, _Image::filename, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, PipeStream, _Image::signature, StandardStream, TraceEvent, UndefinedStream, and ZipStream.
Referenced by ReadImage(), SetImageInfo(), and WriteImage().
MagickExport MagickBooleanType IsBlobTemporary | ( | const Image * | image | ) |
Definition at line 2966 of file blob.c.
References _Image::blob, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, _BlobInfo::temporary, and TraceEvent.
Referenced by ReadImage().
MagickExport void * MapBlob | ( | int | file, |
const MapMode | mode, | ||
const MagickOffsetType | offset, | ||
const size_t | length | ||
) |
Definition at line 3004 of file blob.c.
References IOMode, MAP_FAILED, ReadMode, and WriteMode.
Referenced by FileToBlob(), OpenBlob(), 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 3213 of file blob.c.
References AcquireExceptionInfo(), AcquireMagickResource(), _ImageInfo::adjoin, AppendBinaryBlobMode, AppendBlobMode, AttachBlob(), _Image::blob, _ImageInfo::blob, BlobError, BlobEvent, BZipStream, CopyMagickString(), _ImageInfo::custom_stream, CustomStream, DestroyExceptionInfo(), DestroyString(), DetachBlob(), ExtensionPath, FifoStream, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileStream, fopen_utf8(), FormatLocaleString(), GetBlobSize(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), GetPathAttributes(), GetPathComponent(), GetPreviousImageInList(), InterpretImageFilename(), IsEventLogging(), IsGeometry(), IsRightsAuthorized(), _ImageInfo::length, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), _ImageInfo::magick, magick_restrict, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickPathExtent, MagickTrue, MapBlob(), MapResource, PathPolicyDomain, PipeStream, PolicyError, popen_utf8(), ReadBinaryBlobMode, ReadBlobMode, ReadMode, ReadPolicyRights, RelinquishMagickResource(), RootPath, SanitizeString(), _Image::scene, SetStreamBuffering(), _Image::signature, _ImageInfo::signature, StandardStream, _BlobInfo::stream, _ImageInfo::stream, StringToLong(), _ImageInfo::synchronize, ThrowFileException, ThrowMagickException(), TraceEvent, UndefinedStream, WriteBinaryBlobMode, WriteBlobMode, WritePolicyRights, and ZipStream.
MagickExport Image * PingBlob | ( | const ImageInfo * | image_info, |
const void * | blob, | ||
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3589 of file blob.c.
References _Image::blob, _ImageInfo::blob, BlobError, BlobToFile(), CloneImageInfo(), CopyMagickString(), DestroyImageInfo(), DetachBlob(), _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetFirstImageInList(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), IsEventLogging(), _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MissingDelegateError, _MagickInfo::name, _ImageInfo::ping, PingStream(), ReadStream(), RelinquishUniqueFileResource(), SetImageInfo(), _ImageInfo::signature, ThrowMagickException(), and TraceEvent.
|
static |
MagickExport ssize_t ReadBlob | ( | Image * | image, |
const size_t | length, | ||
void * | data | ||
) |
Definition at line 3722 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, FileStream, magick_restrict, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, PipeStream, _Image::signature, StandardStream, ThrowBlobException(), _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by ReadBlobStream().
MagickExport int ReadBlobByte | ( | Image * | image | ) |
Definition at line 3955 of file blob.c.
References _Image::blob, FileStream, magick_restrict, MagickCoreSignature, PipeStream, ReadBlobStream(), _Image::signature, StandardStream, _BlobInfo::type, and UndefinedStream.
Referenced by ReadBlobString().
MagickExport double ReadBlobDouble | ( | Image * | image | ) |
Definition at line 4024 of file blob.c.
References ReadBlobLongLong().
MagickExport float ReadBlobFloat | ( | Image * | image | ) |
Definition at line 4063 of file blob.c.
References ReadBlobLong().
MagickExport unsigned int ReadBlobLong | ( | Image * | image | ) |
Definition at line 4102 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobFloat(), and ReadBlobSignedLong().
MagickExport MagickSizeType ReadBlobLongLong | ( | Image * | image | ) |
Definition at line 4160 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, MagickULLConstant, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobDouble().
MagickExport unsigned int ReadBlobLSBLong | ( | Image * | image | ) |
Definition at line 4280 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobLSBSignedLong().
MagickExport unsigned short ReadBlobLSBShort | ( | Image * | image | ) |
Definition at line 4368 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobLSBSignedShort().
MagickExport signed int ReadBlobLSBSignedLong | ( | Image * | image | ) |
Definition at line 4330 of file blob.c.
References ReadBlobLSBLong().
MagickExport signed short ReadBlobLSBSignedShort | ( | Image * | image | ) |
Definition at line 4416 of file blob.c.
References ReadBlobLSBShort().
MagickExport unsigned int ReadBlobMSBLong | ( | Image * | image | ) |
Definition at line 4454 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobMSBSignedLong().
MagickExport MagickSizeType ReadBlobMSBLongLong | ( | Image * | image | ) |
Definition at line 4504 of file blob.c.
References MagickCoreSignature, MagickULLConstant, ReadBlobStream(), and _Image::signature.
MagickExport unsigned short ReadBlobMSBShort | ( | Image * | image | ) |
Definition at line 4558 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobMSBSignedShort().
MagickExport signed int ReadBlobMSBSignedLong | ( | Image * | image | ) |
Definition at line 4606 of file blob.c.
References ReadBlobMSBLong().
MagickExport signed short ReadBlobMSBSignedShort | ( | Image * | image | ) |
Definition at line 4644 of file blob.c.
References ReadBlobMSBShort().
MagickExport unsigned short ReadBlobShort | ( | Image * | image | ) |
Definition at line 4226 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobSignedShort().
MagickExport signed int ReadBlobSignedLong | ( | Image * | image | ) |
Definition at line 4682 of file blob.c.
References ReadBlobLong().
MagickExport signed short ReadBlobSignedShort | ( | Image * | image | ) |
Definition at line 4720 of file blob.c.
References ReadBlobShort().
MagickExport magick_hot_spot const void * ReadBlobStream | ( | Image * | image, |
const size_t | length, | ||
void *magick_restrict | data, | ||
ssize_t * | count | ||
) |
Definition at line 4770 of file blob.c.
References _Image::blob, BlobStream, magick_restrict, MagickCoreSignature, MagickMin, MagickTrue, ReadBlob(), _Image::signature, _BlobInfo::type, and UndefinedStream.
Referenced by DiscardBlobBytes(), ImageToFile(), ReadBlobByte(), ReadBlobLong(), ReadBlobLongLong(), ReadBlobLSBLong(), ReadBlobLSBShort(), ReadBlobMSBLong(), ReadBlobMSBLongLong(), ReadBlobMSBShort(), and ReadBlobShort().
MagickExport char * ReadBlobString | ( | Image * | image, |
char * | string | ||
) |
Definition at line 4828 of file blob.c.
References MagickCoreSignature, MagickPathExtent, ReadBlobByte(), and _Image::signature.
MagickExport BlobInfo * ReferenceBlob | ( | BlobInfo * | blob | ) |
Definition at line 4882 of file blob.c.
References GetMagickModule, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _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 4927 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, _Image::filename, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MAGICK_SSIZE_MAX, MAGICK_SSIZE_MIN, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TellBlob(), TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by SetBlobExtent().
MagickExport void SetBlobExempt | ( | Image * | image, |
const MagickBooleanType | exempt | ||
) |
Definition at line 5048 of file blob.c.
References _Image::blob, _BlobInfo::exempt, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by AcquireImage().
MagickExport MagickBooleanType SetBlobExtent | ( | Image * | image, |
const MagickSizeType | extent | ||
) |
Definition at line 5083 of file blob.c.
References AcquireMagickResource(), _Image::blob, BlobStream, BZipStream, CustomStream, DetachBlob(), FifoStream, _Image::filename, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MapBlob(), MapResource, PipeStream, RelinquishMagickResource(), ResizeQuantumMemory(), SeekBlob(), _Image::signature, StandardStream, SyncBlob(), TraceEvent, _BlobInfo::type, UndefinedStream, UnmapBlob(), WriteMode, and ZipStream.
Referenced by WriteBlobStream().
MagickExport void SetCustomStreamData | ( | CustomStreamInfo * | custom_stream, |
void * | data | ||
) |
Definition at line 5234 of file blob.c.
References _CustomStreamInfo::data, MagickCoreSignature, and _CustomStreamInfo::signature.
MagickExport void SetCustomStreamReader | ( | CustomStreamInfo * | custom_stream, |
CustomStreamHandler | reader | ||
) |
Definition at line 5267 of file blob.c.
References MagickCoreSignature, _CustomStreamInfo::reader, and _CustomStreamInfo::signature.
MagickExport void SetCustomStreamSeeker | ( | CustomStreamInfo * | custom_stream, |
CustomStreamSeeker | seeker | ||
) |
Definition at line 5300 of file blob.c.
References MagickCoreSignature, _CustomStreamInfo::seeker, and _CustomStreamInfo::signature.
MagickExport void SetCustomStreamTeller | ( | CustomStreamInfo * | custom_stream, |
CustomStreamTeller | teller | ||
) |
Definition at line 5333 of file blob.c.
References MagickCoreSignature, _CustomStreamInfo::signature, and _CustomStreamInfo::teller.
MagickExport void SetCustomStreamWriter | ( | CustomStreamInfo * | custom_stream, |
CustomStreamHandler | writer | ||
) |
Definition at line 5366 of file blob.c.
References MagickCoreSignature, _CustomStreamInfo::signature, and _CustomStreamInfo::writer.
|
inlinestatic |
Definition at line 3192 of file blob.c.
References FileInfo::file, _BlobInfo::file_info, GetImageOption(), MagickFalse, MagickMinBufferExtent, MagickTrue, and StringToUnsignedLong().
Referenced by OpenBlob().
|
static |
Definition at line 5397 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, _Image::filename, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by CloseBlob(), SetBlobExtent(), and WriteBlob().
MagickExport MagickOffsetType TellBlob | ( | const Image * | image | ) |
Definition at line 5470 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, FifoStream, _Image::filename, FileStream, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by SeekBlob().
|
inlinestatic |
Definition at line 593 of file blob.c.
References _BlobInfo::error_number, MagickFalse, MagickTrue, and _BlobInfo::status.
Referenced by CloseBlob(), ReadBlob(), WriteBlob(), and WriteBlobByte().
MagickExport MagickBooleanType UnmapBlob | ( | void * | map, |
const size_t | length | ||
) |
Definition at line 5549 of file blob.c.
References MagickFalse, and MagickTrue.
Referenced by ConfigureFileToStringInfo(), DestroyBlob(), DestroyMagickMemory(), DestroyMatrixInfo(), DetachBlob(), FileToBlob(), FileToXML(), RelinquishCacheNexusPixels(), RelinquishPixelCachePixels(), RelinquishStreamPixels(), RelinquishVirtualMemory(), and SetBlobExtent().
MagickExport ssize_t WriteBlob | ( | Image * | image, |
const size_t | length, | ||
const void * | data | ||
) |
Definition at line 5592 of file blob.c.
References _Image::blob, BlobStream, BZipStream, CustomStream, DetachBlob(), FifoStream, FileStream, magick_restrict, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, PipeStream, ResizeQuantumMemory(), _Image::signature, StandardStream, SyncBlob(), ThrowBlobException(), _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by WriteBlobStream().
MagickExport ssize_t WriteBlobByte | ( | Image * | image, |
const unsigned char | value | ||
) |
Definition at line 5833 of file blob.c.
References _Image::blob, FileStream, magick_restrict, MagickCoreSignature, PipeStream, _Image::signature, StandardStream, ThrowBlobException(), _BlobInfo::type, UndefinedStream, and WriteBlobStream().
MagickExport ssize_t WriteBlobFloat | ( | Image * | image, |
const float | value | ||
) |
Definition at line 5900 of file blob.c.
References WriteBlobLong().
MagickExport ssize_t WriteBlobLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 5941 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
Referenced by WriteBlobFloat().
MagickExport ssize_t WriteBlobLongLong | ( | Image * | image, |
const MagickSizeType | value | ||
) |
Definition at line 5988 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 6143 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 6182 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBSignedLong | ( | Image * | image, |
const signed int | value | ||
) |
Definition at line 6219 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBSignedShort | ( | Image * | image, |
const signed short | value | ||
) |
Definition at line 6268 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 6316 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 6403 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBSignedShort | ( | Image * | image, |
const signed short | value | ||
) |
Definition at line 6355 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 6043 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobSignedLong | ( | Image * | image, |
const signed int | value | ||
) |
Definition at line 6086 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
|
inlinestatic |
Definition at line 1583 of file blob.c.
References _Image::blob, BlobStream, _BlobInfo::extent, magick_restrict, MagickFalse, SetBlobExtent(), _BlobInfo::type, UndefinedStream, and WriteBlob().
Referenced by FileToImage(), InjectImageBlob(), WriteBlobByte(), WriteBlobLong(), WriteBlobLongLong(), WriteBlobLSBLong(), WriteBlobLSBShort(), WriteBlobLSBSignedLong(), WriteBlobLSBSignedShort(), WriteBlobMSBLong(), WriteBlobMSBShort(), WriteBlobMSBSignedShort(), WriteBlobShort(), WriteBlobSignedLong(), and WriteBlobString().
MagickExport ssize_t WriteBlobString | ( | Image * | image, |
const char * | string | ||
) |
Definition at line 6440 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().