#include "magick/studio.h"#include "magick/blob.h"#include "magick/blob-private.h"#include "magick/cache.h"#include "magick/cache-private.h"#include "magick/color-private.h"#include "magick/composite-private.h"#include "magick/constitute.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/memory_.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/semaphore.h"#include "magick/stream.h"#include "magick/stream-private.h"#include "magick/string_.h"
Go to the source code of this file.
Data Structures | |
| struct | _StreamInfo |
Functions | |
| static const PixelPacket * | GetVirtualPixelStream (const Image *, const VirtualPixelMethod, const long, const long, const unsigned long, const unsigned long, ExceptionInfo *) |
| static MagickBooleanType | StreamImagePixels (const StreamInfo *, const Image *, ExceptionInfo *) |
| static MagickBooleanType | SyncAuthenticPixelsStream (Image *, ExceptionInfo *) |
| static PixelPacket * | QueueAuthenticPixelsStream (Image *, const long, const long, const unsigned long, const unsigned long, ExceptionInfo *) |
| MagickExport StreamInfo * | AcquireStreamInfo (const ImageInfo *image_info) |
| static void | RelinquishStreamPixels (CacheInfo *cache_info) |
| static void | DestroyPixelStream (Image *image) |
| MagickExport StreamInfo * | DestroyStreamInfo (StreamInfo *stream_info) |
| static IndexPacket * | GetAuthenticIndexesFromStream (const Image *image) |
| static PixelPacket * | GetAuthenticPixelsStream (Image *image, const long x, const long y, const unsigned long columns, const unsigned long rows, ExceptionInfo *exception) |
| static PixelPacket * | GetAuthenticPixelsFromStream (const Image *image) |
| static MagickBooleanType | GetOneAuthenticPixelFromStream (Image *image, const long x, const long y, PixelPacket *pixel, ExceptionInfo *exception) |
| static MagickBooleanType | GetOneVirtualPixelFromStream (const Image *image, const VirtualPixelMethod virtual_pixel_method, const long x, const long y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport const void * | GetStreamInfoClientData (StreamInfo *stream_info) |
| static const PixelPacket * | GetVirtualPixelsStream (const Image *image) |
| static const IndexPacket * | GetVirtualIndexesFromStream (const Image *image) |
| static MagickBooleanType | AcquireStreamPixels (CacheInfo *cache_info, ExceptionInfo *exception) |
| static const PixelPacket * | GetVirtualPixelStream (const Image *image, const VirtualPixelMethod magick_unused(virtual_pixel_method), const long x, const long y, const unsigned long columns, const unsigned long rows, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | OpenStream (const ImageInfo *image_info, StreamInfo *stream_info, const char *filename, ExceptionInfo *exception) |
| MagickExport Image * | ReadStream (const ImageInfo *image_info, StreamHandler stream, ExceptionInfo *exception) |
| MagickExport void | SetStreamInfoClientData (StreamInfo *stream_info, const void *client_data) |
| MagickExport void | SetStreamInfoMap (StreamInfo *stream_info, const char *map) |
| MagickExport void | SetStreamInfoStorageType (StreamInfo *stream_info, const StorageType storage_type) |
| static size_t | WriteStreamImage (const Image *image, const void *pixels, const size_t columns) |
| MagickExport Image * | StreamImage (const ImageInfo *image_info, StreamInfo *stream_info, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | WriteStream (const ImageInfo *image_info, Image *image, StreamHandler stream) |
| MagickExport StreamInfo* AcquireStreamInfo | ( | const ImageInfo * | image_info | ) |
Definition at line 149 of file stream.c.
References AcquireImage(), AcquireMagickMemory(), CharPixel, ConstantString(), MagickSignature, _StreamInfo::map, _StreamInfo::pixels, ResetMagickMemory(), ResourceLimitFatalError, _StreamInfo::signature, _StreamInfo::storage_type, _StreamInfo::stream, and ThrowFatalException.
| static MagickBooleanType AcquireStreamPixels | ( | CacheInfo * | cache_info, | |
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 642 of file stream.c.
References AcquireMagickMemory(), _CacheInfo::filename, GetMagickModule, IOMode, _CacheInfo::length, MagickFalse, MagickTrue, MapBlob(), _CacheInfo::mapped, _CacheInfo::pixels, ResourceLimitError, and ThrowMagickException().
Referenced by GetVirtualPixelStream().
| static void DestroyPixelStream | ( | Image * | image | ) | [static] |
Definition at line 205 of file stream.c.
References _Image::cache, _Image::debug, DestroyPixelCacheNexus(), DestroySemaphoreInfo(), _CacheInfo::disk_semaphore, _Image::filename, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::reference_count, RelinquishMagickMemory(), RelinquishStreamPixels(), _CacheInfo::semaphore, _CacheInfo::signature, _Image::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ReadStream().
| MagickExport StreamInfo* DestroyStreamInfo | ( | StreamInfo * | stream_info | ) |
Definition at line 261 of file stream.c.
References CloseBlob(), DestroyImage(), DestroyQuantumInfo(), DestroyString(), GetMagickModule, LogMagickEvent(), MagickSignature, _StreamInfo::map, _StreamInfo::pixels, _StreamInfo::quantum_info, RelinquishMagickMemory(), _StreamInfo::signature, _StreamInfo::stream, and TraceEvent.
| static IndexPacket* GetAuthenticIndexesFromStream | ( | const Image * | image | ) | [static] |
Definition at line 306 of file stream.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, _CacheInfo::indexes, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
| static PixelPacket* GetAuthenticPixelsFromStream | ( | const Image * | image | ) | [static] |
Definition at line 390 of file stream.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
| static PixelPacket* GetAuthenticPixelsStream | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 352 of file stream.c.
References _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, QueueAuthenticPixelsStream(), _Image::signature, and TraceEvent.
Referenced by GetOneAuthenticPixelFromStream(), and ReadStream().
| static MagickBooleanType GetOneAuthenticPixelFromStream | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 434 of file stream.c.
References _Image::background_color, GetAuthenticPixelsStream(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by ReadStream().
| static MagickBooleanType GetOneVirtualPixelFromStream | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method, | |||
| const long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 483 of file stream.c.
References _Image::background_color, GetVirtualPixelStream(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by ReadStream().
| MagickExport const void* GetStreamInfoClientData | ( | StreamInfo * | stream_info | ) |
Definition at line 522 of file stream.c.
References _StreamInfo::client_data, MagickSignature, and _StreamInfo::signature.
| static const IndexPacket* GetVirtualIndexesFromStream | ( | const Image * | image | ) | [static] |
Definition at line 592 of file stream.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, _CacheInfo::indexes, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
| static const PixelPacket* GetVirtualPixelsStream | ( | const Image * | image | ) | [static] |
Definition at line 555 of file stream.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
| static const PixelPacket* GetVirtualPixelStream | ( | const Image * | image, | |
| const VirtualPixelMethod | magick_unusedvirtual_pixel_method, | |||
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 666 of file stream.c.
References AcquireStreamPixels(), _Image::cache, CMYKColorspace, _Image::colorspace, _Image::columns, _Image::debug, _Image::filename, GetMagickModule, _CacheInfo::indexes, _CacheInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::pixels, PseudoClass, RelinquishStreamPixels(), _Image::rows, _CacheInfo::signature, _Image::signature, _Image::storage_class, StreamError, ThrowMagickException(), and TraceEvent.
| static const PixelPacket* GetVirtualPixelStream | ( | const Image * | , | |
| const | VirtualPixelMethod, | |||
| const | long, | |||
| const | long, | |||
| const unsigned | long, | |||
| const unsigned | long, | |||
| ExceptionInfo * | ||||
| ) | [static] |
Referenced by GetOneVirtualPixelFromStream(), and ReadStream().
| MagickExport MagickBooleanType OpenStream | ( | const ImageInfo * | image_info, | |
| StreamInfo * | stream_info, | |||
| const char * | filename, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 759 of file stream.c.
References CopyMagickString(), _Image::filename, MaxTextExtent, OpenBlob(), _StreamInfo::stream, and WriteBinaryBlobMode.
| static PixelPacket * QueueAuthenticPixelsStream | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 801 of file stream.c.
References AcquireMagickMemory(), _Image::cache, CMYKColorspace, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, _Image::filename, GetBlobStreamHandler(), GetMagickModule, GetPixelCacheColorspace(), GetPixelCacheStorageClass(), _CacheInfo::indexes, _CacheInfo::length, MagickSignature, _CacheInfo::pixels, PseudoClass, ResizeMagickMemory(), _CacheInfo::rows, _Image::rows, _CacheInfo::signature, _CacheInfo::storage_class, _Image::storage_class, StreamError, ThrowMagickException(), and UndefinedClass.
Referenced by GetAuthenticPixelsStream(), and ReadStream().
| MagickExport Image* ReadStream | ( | const ImageInfo * | image_info, | |
| StreamHandler | stream, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 908 of file stream.c.
References AcquirePixelCache(), _ImageInfo::cache, CloneImageInfo(), _ImageInfo::debug, _CacheMethods::destroy_pixel_handler, DestroyImageInfo(), DestroyPixelStream(), _ImageInfo::filename, _CacheMethods::get_authentic_indexes_from_handler, _CacheMethods::get_authentic_pixels_from_handler, _CacheMethods::get_authentic_pixels_handler, _CacheMethods::get_one_authentic_pixel_from_handler, _CacheMethods::get_one_virtual_pixel_from_handler, _CacheMethods::get_virtual_indexes_from_handler, _CacheMethods::get_virtual_pixel_handler, _CacheMethods::get_virtual_pixels_handler, GetAuthenticIndexesFromStream(), GetAuthenticPixelsFromStream(), GetAuthenticPixelsStream(), GetMagickModule, GetOneAuthenticPixelFromStream(), GetOneVirtualPixelFromStream(), GetPixelCacheMethods(), GetVirtualIndexesFromStream(), GetVirtualPixelsStream(), GetVirtualPixelStream(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsStream(), ReadImage(), SetPixelCacheMethods(), _ExceptionInfo::signature, _ImageInfo::signature, _ImageInfo::stream, _CacheMethods::sync_authentic_pixels_handler, SyncAuthenticPixelsStream(), and TraceEvent.
Referenced by PingBlob(), PingImage(), and StreamImage().
| static void RelinquishStreamPixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 192 of file stream.c.
References _CacheInfo::indexes, _CacheInfo::length, MagickFalse, _CacheInfo::mapped, _CacheInfo::pixels, RelinquishMagickMemory(), and UnmapBlob().
Referenced by DestroyPixelStream(), and GetVirtualPixelStream().
| MagickExport void SetStreamInfoClientData | ( | StreamInfo * | stream_info, | |
| const void * | client_data | |||
| ) |
Definition at line 978 of file stream.c.
References _StreamInfo::client_data, MagickSignature, and _StreamInfo::signature.
| MagickExport void SetStreamInfoMap | ( | StreamInfo * | stream_info, | |
| const char * | map | |||
| ) |
Definition at line 1010 of file stream.c.
References CloneString(), MagickSignature, _StreamInfo::map, and _StreamInfo::signature.
| MagickExport void SetStreamInfoStorageType | ( | StreamInfo * | stream_info, | |
| const StorageType | storage_type | |||
| ) |
Definition at line 1042 of file stream.c.
References MagickSignature, _StreamInfo::signature, and _StreamInfo::storage_type.
| MagickExport Image* StreamImage | ( | const ImageInfo * | image_info, | |
| StreamInfo * | stream_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1167 of file stream.c.
References AcquireQuantumInfo(), _ImageInfo::client_data, CloneImageInfo(), _ImageInfo::debug, DestroyImage(), DestroyImageInfo(), _StreamInfo::exception, _ImageInfo::filename, GetMagickModule, _StreamInfo::image_info, LogMagickEvent(), MagickFalse, MagickSignature, _StreamInfo::quantum_info, ReadStream(), _StreamInfo::signature, _ImageInfo::signature, TraceEvent, and WriteStreamImage().
| static MagickBooleanType StreamImagePixels | ( | const StreamInfo * | stream_info, | |
| const Image * | image, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1225 of file stream.c.
References AcquireQuantumMemory(), AlphaQuantum, BlackQuantum, _PixelPacket::blue, BlueQuantum, CharPixel, CMYKColorspace, _Image::colorspace, CyanQuantum, _Image::debug, DoublePixel, _Image::filename, FloatPixel, GetAuthenticIndexQueue(), GetAuthenticPixelQueue(), GetImageExtent(), GetMagickModule, _PixelPacket::green, GreenQuantum, ImageError, IndexQuantum, IntegerPixel, LocaleCompare(), LogMagickEvent(), LongPixel, MagentaQuantum, MagickFalse, MagickSignature, MagickTrue, _StreamInfo::map, _QuantumInfo::minimum, _PixelPacket::opacity, OpacityQuantum, OptionError, PixelIntensityToQuantum(), _StreamInfo::pixels, _StreamInfo::quantum_info, QuantumPixel, QuantumRange, QuantumScale, _PixelPacket::red, RedQuantum, RelinquishMagickMemory(), ResourceLimitError, _QuantumInfo::scale, ScaleQuantumToChar(), ScaleQuantumToLong(), ScaleQuantumToShort(), ShortPixel, _Image::signature, _StreamInfo::signature, _StreamInfo::storage_type, ThrowMagickException(), TraceEvent, UndefinedQuantum, and YellowQuantum.
Referenced by WriteStreamImage().
| static MagickBooleanType SyncAuthenticPixelsStream | ( | Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2617 of file stream.c.
References _Image::cache, _CacheInfo::columns, _Image::debug, _Image::filename, GetBlobStreamHandler(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, StreamError, ThrowMagickException(), and TraceEvent.
Referenced by ReadStream().
| MagickExport MagickBooleanType WriteStream | ( | const ImageInfo * | image_info, | |
| Image * | image, | |||
| StreamHandler | stream | |||
| ) |
Definition at line 2672 of file stream.c.
References CloneImageInfo(), _ImageInfo::debug, DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, _ImageInfo::signature, _ImageInfo::stream, TraceEvent, and WriteImage().
| static size_t WriteStreamImage | ( | const Image * | image, | |
| const void * | pixels, | |||
| const size_t | columns | |||
| ) | [static] |
Definition at line 1083 of file stream.c.
References CharPixel, _Image::client_data, CloneImageInfo(), _Image::columns, DestroyImageInfo(), DoublePixel, _StreamInfo::exception, _ImageInfo::extract, _StreamInfo::extract_info, FloatPixel, _RectangleInfo::height, _StreamInfo::image, _StreamInfo::image_info, IntegerPixel, LongPixel, MagickFalse, _StreamInfo::map, ParseAbsoluteGeometry(), _StreamInfo::pixels, QuantumPixel, ResizeQuantumMemory(), SetImageInfo(), ShortPixel, _StreamInfo::storage_type, _StreamInfo::stream, StreamImagePixels(), _RectangleInfo::width, WriteBlob(), _RectangleInfo::x, _RectangleInfo::y, and _StreamInfo::y.
Referenced by StreamImage().
1.6.1