MagickCore  7.0.3
blob.c File Reference
Include dependency graph for blob.c:

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
 

Functions

static int SyncBlob (Image *)
 
MagickExport CustomStreamInfoAcquireCustomStreamInfo (ExceptionInfo *magick_unused(exception))
 
MagickExport void AttachBlob (BlobInfo *blob_info, const void *blob, const size_t length)
 
MagickExport void AttachCustomStream (BlobInfo *blob_info, CustomStreamInfo *custom_stream)
 
MagickExport MagickBooleanType BlobToFile (char *filename, const void *blob, const size_t length, ExceptionInfo *exception)
 
MagickExport ImageBlobToImage (const ImageInfo *image_info, const void *blob, const size_t length, ExceptionInfo *exception)
 
MagickExport BlobInfoCloneBlobInfo (const BlobInfo *blob_info)
 
MagickExport MagickBooleanType CloseBlob (Image *image)
 
MagickExport ImageCustomStreamToImage (const ImageInfo *image_info, ExceptionInfo *exception)
 
MagickExport void DestroyBlob (Image *image)
 
MagickExport CustomStreamInfoDestroyCustomStreamInfo (CustomStreamInfo *custom_stream)
 
MagickExport void * DetachBlob (BlobInfo *blob_info)
 
MagickExport void DisassociateBlob (Image *image)
 
MagickExport MagickBooleanType DiscardBlobBytes (Image *image, const MagickSizeType length)
 
MagickExport void DuplicateBlob (Image *image, const Image *duplicate)
 
MagickExport int EOFBlob (const Image *image)
 
MagickExport int ErrorBlob (const Image *image)
 
MagickExport void * FileToBlob (const char *filename, const size_t extent, size_t *length, ExceptionInfo *exception)
 
static ssize_t WriteBlobStream (Image *image, const size_t length, const void *data)
 
MagickExport MagickBooleanType FileToImage (Image *image, const char *filename, ExceptionInfo *exception)
 
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 void * GetBlobStreamData (const Image *image)
 
MagickExport StreamHandler GetBlobStreamHandler (const Image *image)
 
MagickExport void * ImageToBlob (const ImageInfo *image_info, Image *image, size_t *length, ExceptionInfo *exception)
 
MagickExport void ImageToCustomStream (const ImageInfo *image_info, Image *image, ExceptionInfo *exception)
 
MagickExport MagickBooleanType ImageToFile (Image *image, char *filename, ExceptionInfo *exception)
 
MagickExport void * ImagesToBlob (const ImageInfo *image_info, Image *images, size_t *length, ExceptionInfo *exception)
 
MagickExport void ImagesToCustomStream (const ImageInfo *image_info, Image *images, 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 void * 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)
 
static MagickBooleanType SetStreamBuffering (const ImageInfo *image_info, Image *image)
 
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 ImagePingBlob (const ImageInfo *image_info, const void *blob, const size_t length, ExceptionInfo *exception)
 
MagickExport ssize_t ReadBlob (Image *image, const size_t length, void *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 signed int ReadBlobLSBSignedLong (Image *image)
 
MagickExport unsigned short ReadBlobLSBShort (Image *image)
 
MagickExport signed short ReadBlobLSBSignedShort (Image *image)
 
MagickExport unsigned int ReadBlobMSBLong (Image *image)
 
MagickExport MagickSizeType ReadBlobMSBLongLong (Image *image)
 
MagickExport unsigned short ReadBlobMSBShort (Image *image)
 
MagickExport signed int ReadBlobMSBSignedLong (Image *image)
 
MagickExport signed short ReadBlobMSBSignedShort (Image *image)
 
MagickExport signed int ReadBlobSignedLong (Image *image)
 
MagickExport signed short ReadBlobSignedShort (Image *image)
 
MagickExport const void * ReadBlobStream (Image *image, const size_t length, void *data, ssize_t *count)
 
MagickExport char * ReadBlobString (Image *image, char *string)
 
MagickExport BlobInfoReferenceBlob (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 void SetCustomStreamData (CustomStreamInfo *custom_stream, void *data)
 
MagickExport void SetCustomStreamReader (CustomStreamInfo *custom_stream, CustomStreamHandler reader)
 
MagickExport void SetCustomStreamSeeker (CustomStreamInfo *custom_stream, CustomStreamSeeker seeker)
 
MagickExport void SetCustomStreamTeller (CustomStreamInfo *custom_stream, CustomStreamTeller teller)
 
MagickExport void SetCustomStreamWriter (CustomStreamInfo *custom_stream, CustomStreamHandler writer)
 
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 void *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 WriteBlobLongLong (Image *image, const MagickSizeType value)
 
MagickExport ssize_t WriteBlobShort (Image *image, const unsigned short value)
 
MagickExport ssize_t WriteBlobSignedLong (Image *image, const signed int value)
 
MagickExport ssize_t WriteBlobLSBLong (Image *image, const unsigned int value)
 
MagickExport ssize_t WriteBlobLSBShort (Image *image, const unsigned short value)
 
MagickExport ssize_t WriteBlobLSBSignedLong (Image *image, const signed int value)
 
MagickExport ssize_t WriteBlobLSBSignedShort (Image *image, const signed short value)
 
MagickExport ssize_t WriteBlobMSBLong (Image *image, const unsigned int value)
 
MagickExport ssize_t WriteBlobMSBSignedShort (Image *image, const signed short value)
 
MagickExport ssize_t WriteBlobMSBShort (Image *image, const unsigned short value)
 
MagickExport ssize_t WriteBlobString (Image *image, const char *string)
 

Macro Definition Documentation

#define MagickMaxBlobExtent   (8*8192)

Definition at line 85 of file blob.c.

Referenced by AttachBlob(), GetBlobInfo(), ImagesToBlob(), and ImageToBlob().

#define MAP_FAILED   ((void *) -1)

Definition at line 90 of file blob.c.

Referenced by MapBlob().

Typedef Documentation

typedef union FileInfo FileInfo

Function Documentation

MagickExport CustomStreamInfo* AcquireCustomStreamInfo ( ExceptionInfo magick_unusedexception)
MagickExport MagickBooleanType BlobToFile ( char *  filename,
const void *  blob,
const size_t  length,
ExceptionInfo exception 
)
MagickExport MagickBooleanType DiscardBlobBytes ( Image image,
const MagickSizeType  length 
)
MagickExport void DuplicateBlob ( Image image,
const Image duplicate 
)
MagickExport FILE* GetBlobFileHandle ( const Image image)
MagickExport struct stat* GetBlobProperties ( const Image image)
MagickExport void* GetBlobStreamData ( const Image image)

Definition at line 1907 of file blob.c.

References _Image::blob, _BlobInfo::data, MagickCoreSignature, and _Image::signature.

Referenced by RenderHoughLines().

MagickExport void* MapBlob ( int  file,
const MapMode  mode,
const MagickOffsetType  offset,
const size_t  length 
)

Definition at line 2966 of file blob.c.

References IOMode, MAP_FAILED, ReadMode, and WriteMode.

MagickExport void MSBOrderLong ( unsigned char *  buffer,
const size_t  length 
)

Definition at line 3053 of file blob.c.

MagickExport void MSBOrderShort ( unsigned char *  p,
const size_t  length 
)

Definition at line 3103 of file blob.c.

MagickExport MagickBooleanType OpenBlob ( const ImageInfo image_info,
Image image,
const BlobMode  mode,
ExceptionInfo exception 
)
static size_t PingStream ( const Image magick_unusedimage,
const void *  magick_unusedpixels,
const size_t  columns 
)
static

Definition at line 3541 of file blob.c.

References magick_unreferenced.

Referenced by PingBlob().

MagickExport double ReadBlobDouble ( Image image)

Definition at line 3968 of file blob.c.

References ReadBlobLongLong().

MagickExport float ReadBlobFloat ( Image image)

Definition at line 4007 of file blob.c.

References ReadBlobLong().

MagickExport unsigned int ReadBlobLong ( Image image)
MagickExport MagickSizeType ReadBlobLongLong ( Image image)
MagickExport unsigned int ReadBlobLSBLong ( Image image)

Definition at line 4224 of file blob.c.

References MagickCoreSignature, ReadBlobStream(), and _Image::signature.

MagickExport unsigned short ReadBlobLSBShort ( Image image)

Definition at line 4312 of file blob.c.

References MagickCoreSignature, ReadBlobStream(), and _Image::signature.

MagickExport signed int ReadBlobLSBSignedLong ( Image image)

Definition at line 4274 of file blob.c.

References ReadBlobLSBLong().

MagickExport signed short ReadBlobLSBSignedShort ( Image image)

Definition at line 4360 of file blob.c.

References ReadBlobLSBShort().

MagickExport unsigned int ReadBlobMSBLong ( Image image)

Definition at line 4398 of file blob.c.

References MagickCoreSignature, ReadBlobStream(), and _Image::signature.

Referenced by ReadBlobMSBSignedLong().

MagickExport MagickSizeType ReadBlobMSBLongLong ( Image image)

Definition at line 4448 of file blob.c.

References MagickCoreSignature, MagickULLConstant, ReadBlobStream(), and _Image::signature.

MagickExport unsigned short ReadBlobMSBShort ( Image image)

Definition at line 4502 of file blob.c.

References MagickCoreSignature, ReadBlobStream(), and _Image::signature.

Referenced by ReadBlobMSBSignedShort().

MagickExport signed int ReadBlobMSBSignedLong ( Image image)

Definition at line 4550 of file blob.c.

References ReadBlobMSBLong().

MagickExport signed short ReadBlobMSBSignedShort ( Image image)

Definition at line 4588 of file blob.c.

References ReadBlobMSBShort().

MagickExport unsigned short ReadBlobShort ( Image image)
MagickExport signed int ReadBlobSignedLong ( Image image)

Definition at line 4626 of file blob.c.

References ReadBlobLong().

MagickExport signed short ReadBlobSignedShort ( Image image)

Definition at line 4664 of file blob.c.

References ReadBlobShort().

MagickExport char* ReadBlobString ( Image image,
char *  string 
)

Definition at line 4772 of file blob.c.

References MagickCoreSignature, MagickPathExtent, ReadBlobByte(), and _Image::signature.

MagickExport void SetBlobExempt ( Image image,
const MagickBooleanType  exempt 
)
MagickExport void SetCustomStreamData ( CustomStreamInfo custom_stream,
void *  data 
)
MagickExport void SetCustomStreamReader ( CustomStreamInfo custom_stream,
CustomStreamHandler  reader 
)
MagickExport void SetCustomStreamSeeker ( CustomStreamInfo custom_stream,
CustomStreamSeeker  seeker 
)
MagickExport void SetCustomStreamTeller ( CustomStreamInfo custom_stream,
CustomStreamTeller  teller 
)
MagickExport void SetCustomStreamWriter ( CustomStreamInfo custom_stream,
CustomStreamHandler  writer 
)
static MagickBooleanType SetStreamBuffering ( const ImageInfo image_info,
Image image 
)
inlinestatic
MagickExport ssize_t WriteBlobByte ( Image image,
const unsigned char  value 
)
MagickExport ssize_t WriteBlobFloat ( Image image,
const float  value 
)

Definition at line 5823 of file blob.c.

References WriteBlobLong().

MagickExport ssize_t WriteBlobLong ( Image image,
const unsigned int  value 
)
MagickExport ssize_t WriteBlobLongLong ( Image image,
const MagickSizeType  value 
)
MagickExport ssize_t WriteBlobLSBLong ( Image image,
const unsigned int  value 
)

Definition at line 6066 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobLSBShort ( Image image,
const unsigned short  value 
)

Definition at line 6105 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobLSBSignedLong ( Image image,
const signed int  value 
)

Definition at line 6142 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobLSBSignedShort ( Image image,
const signed short  value 
)

Definition at line 6191 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobMSBLong ( Image image,
const unsigned int  value 
)

Definition at line 6239 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobMSBShort ( Image image,
const unsigned short  value 
)

Definition at line 6326 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobMSBSignedShort ( Image image,
const signed short  value 
)

Definition at line 6278 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().

MagickExport ssize_t WriteBlobShort ( Image image,
const unsigned short  value 
)
MagickExport ssize_t WriteBlobSignedLong ( Image image,
const signed int  value 
)
MagickExport ssize_t WriteBlobString ( Image image,
const char *  string 
)

Definition at line 6363 of file blob.c.

References MagickCoreSignature, _Image::signature, and WriteBlobStream().