MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#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/memory-private.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/policy.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 |
Variables | |
static ssize_t | cache_anonymous_memory = (-1) |
MagickExport StreamInfo * AcquireStreamInfo | ( | const ImageInfo * | image_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 159 of file stream.c.
References AcquireAlignedMemory(), AcquireCriticalMemory(), AcquireImage(), CharPixel, ConstantString(), MagickAssumeAligned, MagickCoreSignature, _StreamInfo::map, _StreamInfo::pixels, ResourceLimitFatalError, _StreamInfo::signature, _StreamInfo::storage_type, _StreamInfo::stream, and ThrowFatalException.
|
inlinestatic |
Definition at line 686 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(), _CacheInfo::file_semaphore, _Image::filename, GetMagickModule, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::reference_count, RelinquishAlignedMemory(), RelinquishSemaphoreInfo(), 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 320 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::metacontent, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
Definition at line 404 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 366 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 449 of file stream.c.
References _PixelInfo::alpha, AlphaPixelChannel, _Image::background_color, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), GetAuthenticPixelsStream(), GetPixelChannelChannel(), GetPixelChannels(), _PixelInfo::green, GreenPixelChannel, MagickCoreSignature, MagickFalse, MagickTrue, MaxPixelChannels, _PixelInfo::red, RedPixelChannel, and _Image::signature.
Referenced by ReadStream().
|
static |
Definition at line 512 of file stream.c.
References _PixelInfo::alpha, AlphaPixelChannel, _Image::background_color, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), GetPixelChannelChannel(), GetPixelChannels(), GetVirtualPixelStream(), _PixelInfo::green, GreenPixelChannel, MagickCoreSignature, MagickFalse, MagickTrue, MaxPixelChannels, _PixelInfo::red, RedPixelChannel, and _Image::signature.
Referenced by ReadStream().
MagickPrivate const void * GetStreamInfoClientData | ( | StreamInfo * | stream_info | ) |
Definition at line 565 of file stream.c.
References _StreamInfo::client_data, MagickCoreSignature, and _StreamInfo::signature.
|
static |
Definition at line 636 of file stream.c.
References _Image::cache, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheInfo::metacontent, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ReadStream().
Definition at line 598 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 740 of file stream.c.
References AcquireStreamPixels(), _Image::cache, _Image::columns, _Image::filename, GetMagickModule, IsEventLogging(), _CacheInfo::length, LogMagickEvent(), magick_unreferenced, MagickCoreSignature, MagickFalse, _CacheInfo::metacontent, _CacheInfo::metacontent_extent, _CacheInfo::number_channels, _CacheInfo::pixels, RelinquishStreamPixels(), _Image::rows, _CacheInfo::signature, _Image::signature, StreamError, ThrowMagickException(), and TraceEvent.
MagickExport MagickBooleanType OpenStream | ( | const ImageInfo * | image_info, |
StreamInfo * | stream_info, | ||
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 844 of file stream.c.
References CopyMagickString(), _Image::filename, MagickPathExtent, OpenBlob(), _StreamInfo::stream, and WriteBinaryBlobMode.
|
static |
Definition at line 918 of file stream.c.
References AcquireStreamPixels(), _CacheInfo::alpha_trait, _Image::alpha_trait, _Image::cache, _CacheInfo::channels, _Image::channels, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, _Image::filename, GetBlobStreamHandler(), GetMagickModule, InitializePixelChannelMap(), _CacheInfo::length, MagickCoreSignature, MagickFalse, _CacheInfo::metacontent, _CacheInfo::metacontent_extent, _CacheInfo::number_channels, _Image::number_channels, _CacheInfo::pixels, RelinquishStreamPixels(), ResetPixelCacheChannels(), _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 1043 of file stream.c.
References AcquirePixelCache(), _ImageInfo::cache, CloneImageInfo(), _CacheMethods::destroy_pixel_handler, DestroyImageInfo(), DestroyPixelStream(), _ImageInfo::filename, _CacheMethods::get_authentic_metacontent_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_metacontent_from_handler, _CacheMethods::get_virtual_pixel_handler, _CacheMethods::get_virtual_pixels_handler, GetAuthenticMetacontentFromStream(), GetAuthenticPixelsFromStream(), GetAuthenticPixelsStream(), GetMagickModule, GetOneAuthenticPixelFromStream(), GetOneVirtualPixelFromStream(), GetPixelCacheMethods(), GetVirtualMetacontentFromStream(), GetVirtualPixelsStream(), GetVirtualPixelStream(), InitializePixelChannelMap(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsStream(), ReadImage(), ResetPixelCacheChannels(), 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::length, MagickFalse, _CacheInfo::mapped, _CacheInfo::metacontent, _CacheInfo::pixels, RelinquishAlignedMemory(), and UnmapBlob().
Referenced by DestroyPixelStream(), GetVirtualPixelStream(), and QueueAuthenticPixelsStream().
MagickPrivate void ResetStreamAnonymousMemory | ( | void | ) |
Definition at line 1112 of file stream.c.
References cache_anonymous_memory.
MagickPrivate void SetStreamInfoClientData | ( | StreamInfo * | stream_info, |
const void * | client_data | ||
) |
Definition at line 1142 of file stream.c.
References _StreamInfo::client_data, MagickCoreSignature, and _StreamInfo::signature.
MagickExport void SetStreamInfoMap | ( | StreamInfo * | stream_info, |
const char * | map | ||
) |
Definition at line 1174 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 1206 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 1337 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 1402 of file stream.c.
References AcquireQuantumMemory(), AlphaQuantum, BlackQuantum, BlueQuantum, CharPixel, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, DoublePixel, _Image::filename, FloatPixel, GetAuthenticPixelQueue(), GetImageExtent(), GetMagickModule, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelOpacity(), GetPixelRed(), GreenQuantum, ImageError, IndexQuantum, IsEventLogging(), LocaleCompare(), LogMagickEvent(), LongLongPixel, 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 2784 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 888 of file stream.c.
References magick_restrict, MagickFalse, and MagickTrue.
Referenced by QueueAuthenticPixelsStream().
MagickExport MagickBooleanType WriteStream | ( | const ImageInfo * | image_info, |
Image * | image, | ||
StreamHandler | stream, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2841 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 1247 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, LongLongPixel, LongPixel, 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 132 of file stream.c.
Referenced by AcquireStreamPixels(), and ResetStreamAnonymousMemory().