|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/blob.h"#include "MagickCore/blob-private.h"#include "MagickCore/cache.h"#include "MagickCore/cache-private.h"#include "MagickCore/color-private.h"#include "MagickCore/composite-private.h"#include "MagickCore/constitute.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/geometry.h"#include "MagickCore/memory_.h"#include "MagickCore/pixel.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/quantum.h"#include "MagickCore/quantum-private.h"#include "MagickCore/semaphore.h"#include "MagickCore/stream.h"#include "MagickCore/stream-private.h"#include "MagickCore/string_.h"
Go to the source code of this file.
Data Structures | |
| struct | _StreamInfo |
Functions | |
| static const Quantum * | GetVirtualPixelStream (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static MagickBooleanType | StreamImagePixels (const StreamInfo *, const Image *, ExceptionInfo *) |
| static MagickBooleanType | SyncAuthenticPixelsStream (Image *, ExceptionInfo *) |
| static Quantum * | QueueAuthenticPixelsStream (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| MagickExport StreamInfo * | AcquireStreamInfo (const ImageInfo *image_info, ExceptionInfo *exception) |
| static void | RelinquishStreamPixels (CacheInfo *cache_info) |
| static void | DestroyPixelStream (Image *image) |
| MagickExport StreamInfo * | DestroyStreamInfo (StreamInfo *stream_info) |
| static void * | GetAuthenticMetacontentFromStream (const Image *image) |
| static Quantum * | GetAuthenticPixelsStream (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| static Quantum * | GetAuthenticPixelsFromStream (const Image *image) |
| static MagickBooleanType | GetOneAuthenticPixelFromStream (Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception) |
| static MagickBooleanType | GetOneVirtualPixelFromStream (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception) |
| MagickPrivate const void * | GetStreamInfoClientData (StreamInfo *stream_info) |
| static const Quantum * | GetVirtualPixelsStream (const Image *image) |
| static const void * | GetVirtualMetacontentFromStream (const Image *image) |
| static MagickBooleanType | AcquireStreamPixels (CacheInfo *cache_info, ExceptionInfo *exception) |
| static const Quantum * | GetVirtualPixelStream (const Image *image, const VirtualPixelMethod magick_unused(virtual_pixel_method), const ssize_t x, const ssize_t y, const size_t columns, const size_t 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) |
| MagickPrivate 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, ExceptionInfo *exception) |
| MagickExport StreamInfo* AcquireStreamInfo | ( | const ImageInfo * | image_info, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 154 of file stream.c.
References AcquireMagickMemory(), ThrowFatalException, ResourceLimitFatalError, ResetMagickMemory(), _StreamInfo::pixels, _StreamInfo::map, ConstantString(), _StreamInfo::storage_type, CharPixel, _StreamInfo::stream, AcquireImage(), _StreamInfo::signature, and MagickSignature.
| static MagickBooleanType AcquireStreamPixels | ( | CacheInfo * | cache_info, |
| ExceptionInfo * | exception | ||
| ) | [inline, static] |
Definition at line 684 of file stream.c.
References _CacheInfo::length, MagickFalse, _CacheInfo::mapped, _CacheInfo::pixels, AcquireMagickMemory(), MagickTrue, MapBlob(), IOMode, ThrowMagickException(), GetMagickModule, ResourceLimitError, and _CacheInfo::filename.
Referenced by GetVirtualPixelStream().
| static void DestroyPixelStream | ( | Image * | image | ) | [static] |
Definition at line 211 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, LockSemaphoreInfo(), _CacheInfo::semaphore, _CacheInfo::reference_count, MagickTrue, UnlockSemaphoreInfo(), RelinquishStreamPixels(), _CacheInfo::nexus_info, DestroyPixelCacheNexus(), _CacheInfo::number_threads, _CacheInfo::disk_semaphore, DestroySemaphoreInfo(), and RelinquishMagickMemory().
Referenced by ReadStream().
| MagickExport StreamInfo* DestroyStreamInfo | ( | StreamInfo * | stream_info | ) |
Definition at line 267 of file stream.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, _StreamInfo::signature, MagickSignature, _StreamInfo::map, DestroyString(), _StreamInfo::pixels, RelinquishMagickMemory(), _StreamInfo::stream, CloseBlob(), DestroyImage(), _StreamInfo::quantum_info, and DestroyQuantumInfo().
| static void* GetAuthenticMetacontentFromStream | ( | const Image * | image | ) | [static] |
Definition at line 313 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, and _CacheInfo::metacontent.
Referenced by ReadStream().
Definition at line 397 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, and _CacheInfo::pixels.
Referenced by ReadStream().
| static Quantum* GetAuthenticPixelsStream | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 359 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, and QueueAuthenticPixelsStream().
Referenced by GetOneAuthenticPixelFromStream(), and ReadStream().
| static MagickBooleanType GetOneAuthenticPixelFromStream | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 442 of file stream.c.
References _Image::signature, MagickSignature, MaxPixelChannels, GetAuthenticPixelsStream(), RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
Referenced by ReadStream().
| static MagickBooleanType GetOneVirtualPixelFromStream | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 507 of file stream.c.
References _Image::signature, MagickSignature, MaxPixelChannels, GetVirtualPixelStream(), RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
Referenced by ReadStream().
| MagickPrivate const void* GetStreamInfoClientData | ( | StreamInfo * | stream_info | ) |
Definition at line 562 of file stream.c.
References _StreamInfo::signature, MagickSignature, and _StreamInfo::client_data.
| static const void* GetVirtualMetacontentFromStream | ( | const Image * | image | ) | [static] |
Definition at line 633 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, and _CacheInfo::metacontent.
Referenced by ReadStream().
Definition at line 595 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, and _CacheInfo::pixels.
Referenced by ReadStream().
| static const Quantum* GetVirtualPixelStream | ( | const Image * | , |
| const VirtualPixelMethod | , | ||
| const ssize_t | , | ||
| const ssize_t | , | ||
| const size_t | , | ||
| const size_t | , | ||
| ExceptionInfo * | |||
| ) | [static] |
Referenced by GetOneVirtualPixelFromStream(), and ReadStream().
| static const Quantum* GetVirtualPixelStream | ( | const Image * | image, |
| const VirtualPixelMethod | magick_unusedvirtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 708 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::columns, _Image::rows, ThrowMagickException(), StreamError, _Image::cache, _CacheInfo::signature, _CacheInfo::number_channels, _CacheInfo::metacontent_extent, _CacheInfo::pixels, _CacheInfo::length, AcquireStreamPixels(), RelinquishStreamPixels(), and _CacheInfo::metacontent.
| MagickExport MagickBooleanType OpenStream | ( | const ImageInfo * | image_info, |
| StreamInfo * | stream_info, | ||
| const char * | filename, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 808 of file stream.c.
References CopyMagickString(), _StreamInfo::stream, _Image::filename, MaxTextExtent, OpenBlob(), and WriteBinaryBlobMode.
| static Quantum * QueueAuthenticPixelsStream | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 850 of file stream.c.
References _Image::columns, _Image::rows, ThrowMagickException(), GetMagickModule, StreamError, _Image::filename, GetBlobStreamHandler(), _Image::cache, _CacheInfo::signature, MagickSignature, _Image::storage_class, GetPixelCacheStorageClass(), _Image::colorspace, GetPixelCacheColorspace(), UndefinedClass, _CacheInfo::columns, _CacheInfo::storage_class, _CacheInfo::colorspace, _CacheInfo::rows, _CacheInfo::number_channels, _CacheInfo::metacontent_extent, _CacheInfo::pixels, AcquireMagickMemory(), _CacheInfo::length, ResizeMagickMemory(), and _CacheInfo::metacontent.
Referenced by GetAuthenticPixelsStream(), and ReadStream().
| MagickExport Image* ReadStream | ( | const ImageInfo * | image_info, |
| StreamHandler | stream, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 958 of file stream.c.
References _ImageInfo::signature, MagickSignature, _ImageInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _ImageInfo::filename, _ExceptionInfo::signature, CloneImageInfo(), _ImageInfo::cache, AcquirePixelCache(), GetPixelCacheMethods(), _CacheMethods::get_virtual_pixel_handler, GetVirtualPixelStream(), _CacheMethods::get_virtual_metacontent_from_handler, GetVirtualMetacontentFromStream(), _CacheMethods::get_virtual_pixels_handler, GetVirtualPixelsStream(), _CacheMethods::get_authentic_pixels_handler, GetAuthenticPixelsStream(), _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsStream(), _CacheMethods::sync_authentic_pixels_handler, SyncAuthenticPixelsStream(), _CacheMethods::get_authentic_pixels_from_handler, GetAuthenticPixelsFromStream(), _CacheMethods::get_authentic_metacontent_from_handler, GetAuthenticMetacontentFromStream(), _CacheMethods::get_one_virtual_pixel_from_handler, GetOneVirtualPixelFromStream(), _CacheMethods::get_one_authentic_pixel_from_handler, GetOneAuthenticPixelFromStream(), _CacheMethods::destroy_pixel_handler, DestroyPixelStream(), SetPixelCacheMethods(), _ImageInfo::stream, ReadImage(), and DestroyImageInfo().
Referenced by PingBlob(), PingImage(), and StreamImage().
| static void RelinquishStreamPixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 198 of file stream.c.
References _CacheInfo::mapped, MagickFalse, RelinquishMagickMemory(), _CacheInfo::pixels, UnmapBlob(), _CacheInfo::length, and _CacheInfo::metacontent.
Referenced by DestroyPixelStream(), and GetVirtualPixelStream().
| MagickPrivate void SetStreamInfoClientData | ( | StreamInfo * | stream_info, |
| const void * | client_data | ||
| ) |
Definition at line 1029 of file stream.c.
References _StreamInfo::signature, MagickSignature, and _StreamInfo::client_data.
| MagickExport void SetStreamInfoMap | ( | StreamInfo * | stream_info, |
| const char * | map | ||
| ) |
Definition at line 1061 of file stream.c.
References _StreamInfo::signature, MagickSignature, CloneString(), and _StreamInfo::map.
| MagickExport void SetStreamInfoStorageType | ( | StreamInfo * | stream_info, |
| const StorageType | storage_type | ||
| ) |
Definition at line 1093 of file stream.c.
References _StreamInfo::signature, MagickSignature, and _StreamInfo::storage_type.
| MagickExport Image* StreamImage | ( | const ImageInfo * | image_info, |
| StreamInfo * | stream_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1223 of file stream.c.
References _ImageInfo::signature, MagickSignature, _ImageInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _ImageInfo::filename, _StreamInfo::signature, CloneImageInfo(), _StreamInfo::image_info, _StreamInfo::exception, _ImageInfo::client_data, ReadStream(), WriteStreamImage(), DestroyImageInfo(), _StreamInfo::quantum_info, AcquireQuantumInfo(), and DestroyImage().
| static MagickBooleanType StreamImagePixels | ( | const StreamInfo * | stream_info, |
| const Image * | image, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1281 of file stream.c.
References _StreamInfo::signature, MagickSignature, _Image::signature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _StreamInfo::map, AcquireQuantumMemory(), ThrowMagickException(), ResourceLimitError, AlphaQuantum, BlueQuantum, CyanQuantum, _Image::colorspace, CMYKColorspace, RelinquishMagickMemory(), ImageError, GreenQuantum, IndexQuantum, BlackQuantum, MagentaQuantum, OpacityQuantum, UndefinedQuantum, RedQuantum, YellowQuantum, OptionError, _StreamInfo::quantum_info, _StreamInfo::storage_type, CharPixel, _StreamInfo::pixels, LocaleCompare(), GetVirtualPixelQueue(), GetImageExtent(), GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelAlpha(), GetPixelIntensity(), GetPixelBlack(), DoublePixel, QuantumScale, _QuantumInfo::scale, _QuantumInfo::minimum, FloatPixel, LongPixel, LongLongPixel, QuantumPixel, ShortPixel, and MagickTrue.
Referenced by WriteStreamImage().
| static MagickBooleanType SyncAuthenticPixelsStream | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2659 of file stream.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, GetBlobStreamHandler(), ThrowMagickException(), StreamError, _CacheInfo::pixels, _CacheInfo::columns, and MagickTrue.
Referenced by ReadStream().
| MagickExport MagickBooleanType WriteStream | ( | const ImageInfo * | image_info, |
| Image * | image, | ||
| StreamHandler | stream, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2716 of file stream.c.
References _ImageInfo::signature, MagickSignature, _ImageInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _ImageInfo::filename, _Image::signature, CloneImageInfo(), _ImageInfo::stream, WriteImage(), and DestroyImageInfo().
| static size_t WriteStreamImage | ( | const Image * | image, |
| const void * | pixels, | ||
| const size_t | columns | ||
| ) | [static] |
Definition at line 1134 of file stream.c.
References _Image::client_data, _StreamInfo::storage_type, CharPixel, DoublePixel, FloatPixel, LongPixel, LongLongPixel, QuantumPixel, ShortPixel, _Image::cache, _CacheInfo::signature, MagickSignature, _StreamInfo::map, _CacheInfo::columns, _CacheInfo::rows, _StreamInfo::image, _StreamInfo::pixels, ResizeQuantumMemory(), CloneImageInfo(), _StreamInfo::image_info, SetImageInfo(), _StreamInfo::exception, _ImageInfo::extract, ParseAbsoluteGeometry(), _StreamInfo::extract_info, _StreamInfo::y, DestroyImageInfo(), _RectangleInfo::width, _RectangleInfo::height, StreamImagePixels(), WriteBlob(), _StreamInfo::stream, _RectangleInfo::y, and _RectangleInfo::x.
Referenced by StreamImage().