MagickCore
6.9.11
|
#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/geometry.h"
#include "magick/image-private.h"
#include "magick/list.h"
#include "magick/locale_.h"
#include "magick/log.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/nt-base-private.h"
#include "magick/option.h"
#include "magick/policy.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/timer-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/utility-private.h"
Go to the source code of this file.
Data Structures | |
union | FileInfo |
struct | _BlobInfo |
Macros | |
#define | MagickMaxBlobExtent 65541 |
#define | MAP_FAILED ((void *) -1) |
Typedefs | |
typedef union FileInfo | FileInfo |
#define MagickMaxBlobExtent 65541 |
Definition at line 84 of file blob.c.
Referenced by AttachBlob(), GetBlobInfo(), ImagesToBlob(), and ImageToBlob().
MagickExport void AttachBlob | ( | BlobInfo * | blob_info, |
const void * | blob, | ||
const size_t | length | ||
) |
Definition at line 206 of file blob.c.
References BlobStream, _BlobInfo::data, _BlobInfo::debug, _BlobInfo::extent, FileInfo::file, _BlobInfo::file_info, GetMagickModule, _BlobInfo::length, LogMagickEvent(), MagickFalse, MagickMaxBlobExtent, _BlobInfo::mapped, _BlobInfo::offset, _BlobInfo::quantum, TraceEvent, and _BlobInfo::type.
Referenced by OpenBlob().
MagickExport MagickBooleanType BlobToFile | ( | char * | filename, |
const void * | blob, | ||
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 252 of file blob.c.
References AcquireUniqueFileResource(), BlobError, GetMagickModule, 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 327 of file blob.c.
References _Image::blob, _ImageInfo::blob, BlobError, BlobToFile(), CloneImageInfo(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetFirstImageInList(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickPathExtent, MaxTextExtent, 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 450 of file blob.c.
References AcquireMagickMemory(), 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 503 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, DetachBlob(), _Image::extent, FifoStream, _Image::filename, FileStream, GetBlobSize(), GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, PipeStream, _Image::signature, StandardStream, SyncBlob(), ThrowBlobException(), TraceEvent, UndefinedStream, and ZipStream.
Referenced by DestroyBlob(), ImagesToBlob(), and ImageToBlob().
MagickExport void DestroyBlob | ( | Image * | image | ) |
Definition at line 672 of file blob.c.
References _Image::blob, CloseBlob(), _Image::debug, DestroySemaphoreInfo(), _Image::filename, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MapResource, RelinquishMagickMemory(), RelinquishMagickResource(), _BlobInfo::signature, _Image::signature, TraceEvent, UnlockSemaphoreInfo(), and UnmapBlob().
Referenced by AcquireNextImage(), DestroyImage(), DisassociateBlob(), DuplicateBlob(), InjectImageBlob(), and SyncNextImageInList().
MagickExport unsigned char* DetachBlob | ( | BlobInfo * | blob_info | ) |
Definition at line 733 of file blob.c.
References _BlobInfo::data, _BlobInfo::debug, _BlobInfo::eof, _BlobInfo::error, _BlobInfo::exempt, FileInfo::file, _BlobInfo::file_info, GetMagickModule, _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().
MagickPrivate void DisassociateBlob | ( | Image * | image | ) |
Definition at line 785 of file blob.c.
References _Image::blob, CloneBlobInfo(), _Image::debug, DestroyBlob(), _Image::filename, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _BlobInfo::signature, _Image::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by DisassociateImageStream().
MagickExport MagickBooleanType DiscardBlobBytes | ( | Image * | image, |
const MagickSizeType | length | ||
) |
Definition at line 839 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 897 of file blob.c.
References _Image::blob, _Image::debug, DestroyBlob(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, ReferenceBlob(), _Image::signature, and TraceEvent.
MagickExport int EOFBlob | ( | const Image * | image | ) |
Definition at line 932 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, FileStream, GetMagickModule, 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 1010 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, FileStream, GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, 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 1093 of file blob.c.
References AcquireQuantumMemory(), BlobError, GetMagickModule, GetPathAttributes(), IsRightsAuthorized(), LocaleCompare(), LogMagickEvent(), MAGICK_SSIZE_MAX, MagickFalse, MagickMaxBufferExtent, MagickMin, MapBlob(), MaxTextExtent, O_BINARY, open_utf8(), PathPolicyDomain, PolicyError, ReadMode, ReadPolicyRights, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, S_ISDIR, ThrowFileException, ThrowMagickException(), TraceEvent, and UnmapBlob().
Referenced by FileToString(), FileToStringInfo(), GetConfigureBlob(), ImagesToBlob(), and ImageToBlob().
MagickExport MagickBooleanType FileToImage | ( | Image * | image, |
const char * | filename | ||
) |
Definition at line 1314 of file blob.c.
References AcquireQuantumMemory(), BlobError, _Image::exception, GetMagickModule, 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 1416 of file blob.c.
References _Image::blob, _Image::debug, _BlobInfo::error_number, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, _BlobInfo::status, and TraceEvent.
Referenced by ReadImage(), and WriteImage().
MagickExport FILE* GetBlobFileHandle | ( | const Image * | image | ) |
Definition at line 1449 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 1478 of file blob.c.
References AllocateSemaphoreInfo(), _BlobInfo::debug, GetMagickTime(), IsEventLogging(), MagickCoreSignature, MagickMaxBlobExtent, _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 1514 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _BlobInfo::properties, _Image::signature, and TraceEvent.
Referenced by ReadImage().
MagickExport MagickSizeType GetBlobSize | ( | const Image * | image | ) |
Definition at line 1546 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _Image::filename, FileStream, GetMagickModule, GetPathAttributes(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, UndefinedStream, and ZipStream.
Referenced by CloseBlob(), FxGetSymbol(), GetMagickProperty(), GetMagickPropertyLetter(), OpenBlob(), PreviewImage(), RenderHoughLines(), SizeBlob(), and ThumbnailImage().
MagickExport unsigned char* GetBlobStreamData | ( | const Image * | image | ) |
Definition at line 1633 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 1662 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _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 1960 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, _ImageInfo::blob, CloneImageInfo(), CloseBlob(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _Image::exception, _BlobInfo::exempt, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileOpenError, FileToBlob(), FormatLocaleString(), GetImageListLength(), GetMagickAdjoin(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, ImageToBlob(), InheritException(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBlobExtent, MagickTrue, MaxTextExtent, MissingDelegateError, RelinquishMagickMemory(), 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 1704 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, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileToBlob(), FormatLocaleString(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, InheritException(), _BlobInfo::length, _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBlobExtent, MagickTrue, MaxTextExtent, MissingDelegateError, RelinquishMagickMemory(), 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 1840 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, BlobError, _Image::debug, GetMagickModule, 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 2105 of file blob.c.
References AcquireQuantumMemory(), AcquireUniqueFileResource(), _Image::blob, CloneBlobInfo(), CloneImage(), CloneImageInfo(), CopyMagickString(), _Image::debug, DestroyBlob(), DestroyImage(), DestroyImageInfo(), _Image::filename, _ImageInfo::filename, FileOpenError, FormatLocaleString(), GetMagickModule, LogMagickEvent(), _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, MaxTextExtent, 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 2251 of file blob.c.
References _Image::blob, _Image::debug, _BlobInfo::exempt, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by SetImageInfo().
MagickExport MagickBooleanType IsBlobSeekable | ( | const Image * | image | ) |
Definition at line 2282 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _Image::filename, FileStream, GetMagickModule, 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 2354 of file blob.c.
References _Image::blob, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, _BlobInfo::temporary, and TraceEvent.
Referenced by ReadImage().
MagickExport unsigned char* MapBlob | ( | int | file, |
const MapMode | mode, | ||
const MagickOffsetType | offset, | ||
const size_t | length | ||
) |
Definition at line 2392 of file blob.c.
References IOMode, MAP_FAILED, ReadMode, and WriteMode.
Referenced by AcquireCacheNexusPixels(), AcquireMatrixInfo(), AcquireStreamPixels(), AcquireVirtualMemory(), ConfigureFileToStringInfo(), FileToBlob(), FileToXML(), 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 2603 of file blob.c.
References AcquireExceptionInfo(), AcquireMagickResource(), _ImageInfo::adjoin, AppendBinaryBlobMode, AppendBlobMode, AttachBlob(), _Image::blob, _ImageInfo::blob, BlobError, BlobEvent, BZipStream, CopyMagickString(), _ImageInfo::debug, DestroyExceptionInfo(), DestroyString(), DetachBlob(), ExtensionPath, FifoStream, _ImageInfo::file, _Image::filename, _ImageInfo::filename, FileStream, fopen_utf8(), FormatLocaleString(), GetBlobSize(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), GetPathAttributes(), GetPathComponent(), GetPreviousImageInList(), InterpretImageFilename(), IsGeometry(), IsRightsAuthorized(), _ImageInfo::length, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), _ImageInfo::magick, magick_restrict, MagickCoreSignature, MagickFalse, MagickMaxBufferExtent, MagickTrue, MapBlob(), MapResource, MaxTextExtent, PathPolicyDomain, PipeStream, PolicyError, popen_utf8(), ReadBinaryBlobMode, ReadBlobMode, ReadMode, ReadPolicyRights, RelinquishMagickResource(), RootPath, SanitizeString(), _Image::scene, SetApplicationType(), 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 2981 of file blob.c.
References _Image::blob, _ImageInfo::blob, BlobError, BlobToFile(), CloneImageInfo(), CopyMagickString(), _ImageInfo::debug, DestroyImageInfo(), DetachBlob(), _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetFirstImageInList(), GetMagickBlobSupport(), GetMagickInfo(), GetMagickModule, GetNextImageInList(), _ImageInfo::length, LogMagickEvent(), _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MaxTextExtent, 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, | ||
unsigned char * | data | ||
) |
Definition at line 3113 of file blob.c.
References _Image::blob, BlobStream, BZipStream, 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 3340 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 3409 of file blob.c.
References ReadBlobLongLong().
MagickExport float ReadBlobFloat | ( | Image * | image | ) |
Definition at line 3448 of file blob.c.
References ReadBlobLong().
MagickExport unsigned int ReadBlobLong | ( | Image * | image | ) |
Definition at line 3487 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 3545 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 3665 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobLSBSignedLong().
MagickExport unsigned short ReadBlobLSBShort | ( | Image * | image | ) |
Definition at line 3753 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobLSBSignedShort().
MagickExport signed int ReadBlobLSBSignedLong | ( | Image * | image | ) |
Definition at line 3715 of file blob.c.
References ReadBlobLSBLong().
MagickExport signed short ReadBlobLSBSignedShort | ( | Image * | image | ) |
Definition at line 3801 of file blob.c.
References ReadBlobLSBShort().
MagickExport unsigned int ReadBlobMSBLong | ( | Image * | image | ) |
Definition at line 3839 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobMSBSignedLong().
MagickExport MagickSizeType ReadBlobMSBLongLong | ( | Image * | image | ) |
Definition at line 3889 of file blob.c.
References MagickCoreSignature, MagickULLConstant, ReadBlobStream(), and _Image::signature.
MagickExport unsigned short ReadBlobMSBShort | ( | Image * | image | ) |
Definition at line 3943 of file blob.c.
References MagickCoreSignature, ReadBlobStream(), and _Image::signature.
Referenced by ReadBlobMSBSignedShort().
MagickExport signed int ReadBlobMSBSignedLong | ( | Image * | image | ) |
Definition at line 3991 of file blob.c.
References ReadBlobMSBLong().
MagickExport signed short ReadBlobMSBSignedShort | ( | Image * | image | ) |
Definition at line 4029 of file blob.c.
References ReadBlobMSBShort().
MagickExport unsigned short ReadBlobShort | ( | Image * | image | ) |
Definition at line 3611 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 4067 of file blob.c.
References ReadBlobLong().
MagickExport signed short ReadBlobSignedShort | ( | Image * | image | ) |
Definition at line 4105 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 4155 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 4213 of file blob.c.
References MagickCoreSignature, MaxTextExtent, ReadBlobByte(), and _Image::signature.
MagickExport BlobInfo* ReferenceBlob | ( | BlobInfo * | blob | ) |
Definition at line 4267 of file blob.c.
References _BlobInfo::debug, GetMagickModule, 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 4312 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _Image::filename, FileStream, GetMagickModule, 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 4425 of file blob.c.
References _Image::blob, _Image::debug, _BlobInfo::exempt, _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by AcquireImage().
MagickExport MagickBooleanType SetBlobExtent | ( | Image * | image, |
const MagickSizeType | extent | ||
) |
Definition at line 4460 of file blob.c.
References AcquireMagickResource(), _Image::blob, BlobStream, BZipStream, _Image::debug, DetachBlob(), FifoStream, _Image::filename, FileStream, GetMagickModule, 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().
|
inlinestatic |
Definition at line 2582 of file blob.c.
References _Image::blob, FileInfo::file, _BlobInfo::file_info, GetImageOption(), MagickFalse, MagickMinBufferExtent, MagickTrue, and StringToUnsignedLong().
Referenced by OpenBlob().
|
static |
Definition at line 4608 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _Image::filename, FileStream, GetMagickModule, 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 4679 of file blob.c.
References _Image::blob, BlobStream, BZipStream, _Image::debug, FifoStream, _Image::filename, FileStream, GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, PipeStream, _Image::signature, StandardStream, TraceEvent, _BlobInfo::type, UndefinedStream, and ZipStream.
Referenced by SeekBlob().
|
inlinestatic |
Definition at line 496 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 4752 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 unsigned char * | data | ||
) |
Definition at line 4796 of file blob.c.
References _Image::blob, BlobStream, BZipStream, 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 5031 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 5098 of file blob.c.
References WriteBlobLong().
MagickExport ssize_t WriteBlobLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 5139 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
Referenced by WriteBlobFloat().
MagickExport ssize_t WriteBlobLSBLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 5229 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 5268 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBSignedLong | ( | Image * | image, |
const signed int | value | ||
) |
Definition at line 5305 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobLSBSignedShort | ( | Image * | image, |
const signed short | value | ||
) |
Definition at line 5354 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBLong | ( | Image * | image, |
const unsigned int | value | ||
) |
Definition at line 5402 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBLongLong | ( | Image * | image, |
const MagickSizeType | value | ||
) |
Definition at line 5441 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 5485 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBSignedLong | ( | Image * | image, |
const signed int | value | ||
) |
Definition at line 5522 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobMSBSignedShort | ( | Image * | image, |
const signed short | value | ||
) |
Definition at line 5571 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().
MagickExport ssize_t WriteBlobShort | ( | Image * | image, |
const unsigned short | value | ||
) |
Definition at line 5186 of file blob.c.
References _Image::endian, LSBEndian, MagickCoreSignature, _Image::signature, and WriteBlobStream().
|
inlinestatic |
Definition at line 1280 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(), WriteBlobLSBLong(), WriteBlobLSBShort(), WriteBlobLSBSignedLong(), WriteBlobLSBSignedShort(), WriteBlobMSBLong(), WriteBlobMSBLongLong(), WriteBlobMSBShort(), WriteBlobMSBSignedLong(), WriteBlobMSBSignedShort(), WriteBlobShort(), and WriteBlobString().
MagickExport ssize_t WriteBlobString | ( | Image * | image, |
const char * | string | ||
) |
Definition at line 5619 of file blob.c.
References MagickCoreSignature, _Image::signature, and WriteBlobStream().