MagickCore 6.9.12
|
#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/memory-private.h"
#include "magick/pixel.h"
#include "magick/policy.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 |
Variables | |
static ssize_t | cache_anonymous_memory = (-1) |
MagickExport StreamInfo * AcquireStreamInfo | ( | const ImageInfo * | image_info | ) |
Definition at line 158 of file stream.c.
References AcquireAlignedMemory(), AcquireImage(), AcquireMagickMemory(), CharPixel, ConstantString(), MagickAssumeAligned, MagickCoreSignature, _StreamInfo::map, _StreamInfo::pixels, ResourceLimitFatalError, _StreamInfo::signature, _StreamInfo::storage_type, _StreamInfo::stream, and ThrowFatalException.
|
inlinestatic |
Definition at line 656 of file stream.c.
References AcquireAlignedMemory(), cache_anonymous_memory, DestroyString(), _CacheInfo::filename, GetMagickModule, GetPolicyValue(), IOMode, _CacheInfo::length, LocaleCompare(), MagickAssumeAligned, MagickFalse, MagickTrue, MapBlob(), _CacheInfo::mapped, MissingDelegateError, _CacheInfo::pixels, ResourceLimitError, and ThrowMagickException().
Referenced by GetVirtualPixelStream(), and QueueAuthenticPixelsStream().
|
static |
Definition at line 217 of file stream.c.
References _Image::cache, DestroyPixelCacheNexus(), DestroySemaphoreInfo(), _CacheInfo::file_semaphore, _Image::filename, GetMagickModule, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::reference_count, RelinquishAlignedMemory(), RelinquishStreamPixels(), _CacheInfo::semaphore, _CacheInfo::signature, _Image::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ReadStream().
MagickExport StreamInfo * DestroyStreamInfo | ( | StreamInfo * | stream_info | ) |
Definition at line 273 of file stream.c.
References CloseBlob(), DestroyImage(), DestroyQuantumInfo(), DestroyString(), GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _StreamInfo::map, _StreamInfo::pixels, _StreamInfo::quantum_info, RelinquishAlignedMemory(), RelinquishMagickMemory(), _StreamInfo::signature, _StreamInfo::stream, and TraceEvent.
|
static |
Definition at line 319 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, _CacheInfo::indexes, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
|
static |
Definition at line 403 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
|
static |
Definition at line 365 of file stream.c.
References _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, QueueAuthenticPixelsStream(), _Image::signature, and TraceEvent.
Referenced by GetOneAuthenticPixelFromStream(), and ReadStream().
|
static |
Definition at line 448 of file stream.c.
References _Image::background_color, GetAuthenticPixelsStream(), MagickCoreSignature, MagickFalse, MagickTrue, and _Image::signature.
Referenced by ReadStream().
|
static |
Definition at line 497 of file stream.c.
References _Image::background_color, GetVirtualPixelStream(), MagickCoreSignature, MagickFalse, MagickTrue, and _Image::signature.
Referenced by ReadStream().
MagickExport const void * GetStreamInfoClientData | ( | StreamInfo * | stream_info | ) |
Definition at line 536 of file stream.c.
References _StreamInfo::client_data, MagickCoreSignature, and _StreamInfo::signature.
|
static |
Definition at line 606 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, _CacheInfo::indexes, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
|
static |
Definition at line 569 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
|
static |
Referenced by GetOneVirtualPixelFromStream(), and ReadStream().
|
static |
Definition at line 710 of file stream.c.
References AcquireStreamPixels(), _CacheInfo::active_index_channel, _Image::cache, CMYKColorspace, _Image::colorspace, _Image::columns, _Image::filename, GetMagickModule, _CacheInfo::indexes, IsEventLogging(), _CacheInfo::length, LogMagickEvent(), magick_unreferenced, MagickCoreSignature, MagickFalse, MagickTrue, _CacheInfo::pixels, PseudoClass, RelinquishStreamPixels(), _Image::rows, _CacheInfo::signature, _Image::signature, _Image::storage_class, StreamError, ThrowMagickException(), and TraceEvent.
MagickExport MagickBooleanType OpenStream | ( | const ImageInfo * | image_info, |
StreamInfo * | stream_info, | ||
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 813 of file stream.c.
References CopyMagickString(), _Image::filename, MaxTextExtent, OpenBlob(), _StreamInfo::stream, and WriteBinaryBlobMode.
|
static |
Definition at line 876 of file stream.c.
References AcquireStreamPixels(), _CacheInfo::active_index_channel, _Image::cache, _CacheInfo::channels, _Image::channels, CMYKColorspace, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, _Image::filename, GetBlobStreamHandler(), GetMagickModule, _CacheInfo::indexes, _CacheInfo::length, MagickCoreSignature, MagickFalse, MagickTrue, _CacheInfo::pixels, PseudoClass, RelinquishStreamPixels(), _CacheInfo::rows, _Image::rows, _CacheInfo::signature, _CacheInfo::storage_class, _Image::storage_class, StreamError, ThrowMagickException(), UndefinedClass, and ValidatePixelCacheMorphology().
Referenced by GetAuthenticPixelsStream(), and ReadStream().
MagickExport Image * ReadStream | ( | const ImageInfo * | image_info, |
StreamHandler | stream, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 996 of file stream.c.
References AcquirePixelCache(), _ImageInfo::cache, CloneImageInfo(), _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(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _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().
|
inlinestatic |
Definition at line 201 of file stream.c.
References _CacheInfo::indexes, _CacheInfo::length, MagickFalse, _CacheInfo::mapped, _CacheInfo::pixels, RelinquishAlignedMemory(), and UnmapBlob().
Referenced by DestroyPixelStream(), GetVirtualPixelStream(), and QueueAuthenticPixelsStream().
MagickExport void SetStreamInfoClientData | ( | StreamInfo * | stream_info, |
const void * | client_data | ||
) |
Definition at line 1066 of file stream.c.
References _StreamInfo::client_data, MagickCoreSignature, and _StreamInfo::signature.
MagickExport void SetStreamInfoMap | ( | StreamInfo * | stream_info, |
const char * | map | ||
) |
Definition at line 1098 of file stream.c.
References CloneString(), MagickCoreSignature, _StreamInfo::map, and _StreamInfo::signature.
MagickExport void SetStreamInfoStorageType | ( | StreamInfo * | stream_info, |
const StorageType | storage_type | ||
) |
Definition at line 1130 of file stream.c.
References MagickCoreSignature, _StreamInfo::signature, and _StreamInfo::storage_type.
MagickExport Image * StreamImage | ( | const ImageInfo * | image_info, |
StreamInfo * | stream_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1262 of file stream.c.
References AcquireQuantumInfo(), _ImageInfo::client_data, CloneImageInfo(), DestroyImage(), DestroyImageInfo(), DestroyQuantumInfo(), _StreamInfo::exception, _ImageInfo::filename, GetMagickModule, _StreamInfo::image_info, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _StreamInfo::quantum_info, ReadStream(), _ImageInfo::signature, _StreamInfo::signature, TraceEvent, and WriteStreamImage().
|
static |
Definition at line 1327 of file stream.c.
References AcquireQuantumMemory(), AlphaQuantum, BlackQuantum, BlueQuantum, CharPixel, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, DoublePixel, _Image::filename, FloatPixel, GetAuthenticPixelQueue(), GetImageExtent(), GetMagickModule, GetPixelAlpha, GetPixelBlue, GetPixelGreen, GetPixelIndex, GetPixelIntensity(), GetPixelOpacity, GetPixelRed, GetVirtualIndexQueue(), GreenQuantum, ImageError, IndexQuantum, IntegerPixel, IsEventLogging(), LocaleCompare(), LogMagickEvent(), LongPixel, MagentaQuantum, MagickCoreSignature, MagickFalse, MagickTrue, _StreamInfo::map, _QuantumInfo::minimum, OpacityQuantum, OptionError, _StreamInfo::pixels, _StreamInfo::quantum_info, QuantumPixel, QuantumScale, RedQuantum, RelinquishMagickMemory(), ResourceLimitError, _QuantumInfo::scale, 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 2721 of file stream.c.
References _Image::cache, _CacheInfo::columns, _Image::filename, GetBlobStreamHandler(), GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, StreamError, ThrowMagickException(), and TraceEvent.
Referenced by ReadStream().
|
inlinestatic |
Definition at line 856 of file stream.c.
References magick_restrict, MagickFalse, and MagickTrue.
Referenced by QueueAuthenticPixelsStream().
MagickExport MagickBooleanType WriteStream | ( | const ImageInfo * | image_info, |
Image * | image, | ||
StreamHandler | stream | ||
) |
Definition at line 2776 of file stream.c.
References CloneImageInfo(), DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), _ImageInfo::magick, MagickCoreSignature, MagickFalse, _Image::signature, _ImageInfo::signature, _ImageInfo::stream, TraceEvent, and WriteImage().
|
static |
Definition at line 1171 of file stream.c.
References AcquireAlignedMemory(), _Image::cache, CharPixel, _Image::client_data, CloneImageInfo(), _CacheInfo::columns, DestroyImageInfo(), DoublePixel, _StreamInfo::exception, _ImageInfo::extract, _StreamInfo::extract_info, FloatPixel, _RectangleInfo::height, _StreamInfo::image, _StreamInfo::image_info, IntegerPixel, LongPixel, MagickAssumeAligned, MagickCoreSignature, _StreamInfo::map, ParseAbsoluteGeometry(), _StreamInfo::pixels, QuantumPixel, RelinquishAlignedMemory(), _CacheInfo::rows, SetImageInfo(), ShortPixel, _CacheInfo::signature, _StreamInfo::storage_type, _StreamInfo::stream, StreamImagePixels(), _RectangleInfo::width, WriteBlob(), _RectangleInfo::x, _RectangleInfo::y, and _StreamInfo::y.
Referenced by StreamImage().
|
static |
Definition at line 134 of file stream.c.
Referenced by AcquireStreamPixels().