|
MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"#include "MagickCore/cache.h"#include "MagickCore/cache-private.h"#include "MagickCore/distribute-cache.h"#include "MagickCore/distribute-cache-private.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/geometry.h"#include "MagickCore/image.h"#include "MagickCore/image-private.h"#include "MagickCore/list.h"#include "MagickCore/locale_.h"#include "MagickCore/memory_.h"#include "MagickCore/nt-base-private.h"#include "MagickCore/pixel.h"#include "MagickCore/policy.h"#include "MagickCore/random_.h"#include "MagickCore/registry.h"#include "MagickCore/splay-tree.h"#include "MagickCore/string_.h"#include "MagickCore/string-private.h"#include "MagickCore/version.h"#include "MagickCore/version-private.h"Go to the source code of this file.
Macros | |
| #define | CLOSE_SOCKET(socket) |
| #define | HANDLER_RETURN_TYPE void * |
| #define | HANDLER_RETURN_VALUE (void *) NULL |
| #define | SOCKET_TYPE int |
| #define | send(file, buffer, length, flags) 0 |
| #define | recv(file, buffer, length, flags) 0 |
| #define | DPCHostname "127.0.0.1" |
| #define | DPCPendingConnections 10 |
| #define | DPCPort 6668 |
| #define | DPCSessionKeyLength 8 |
| #define | MSG_NOSIGNAL 0 |
| #define CLOSE_SOCKET | ( | socket | ) |
Definition at line 102 of file distribute-cache.c.
| #define DPCHostname "127.0.0.1" |
Definition at line 116 of file distribute-cache.c.
| #define DPCPendingConnections 10 |
Definition at line 117 of file distribute-cache.c.
| #define DPCPort 6668 |
Definition at line 118 of file distribute-cache.c.
| #define DPCSessionKeyLength 8 |
Definition at line 119 of file distribute-cache.c.
| #define HANDLER_RETURN_TYPE void * |
Definition at line 104 of file distribute-cache.c.
| #define HANDLER_RETURN_VALUE (void *) NULL |
Definition at line 105 of file distribute-cache.c.
| #define MSG_NOSIGNAL 0 |
Definition at line 121 of file distribute-cache.c.
| #define recv | ( | file, | |
| buffer, | |||
| length, | |||
| flags | |||
| ) | 0 |
Definition at line 110 of file distribute-cache.c.
| #define send | ( | file, | |
| buffer, | |||
| length, | |||
| flags | |||
| ) | 0 |
Definition at line 109 of file distribute-cache.c.
| #define SOCKET_TYPE int |
Definition at line 106 of file distribute-cache.c.
| MagickPrivate DistributeCacheInfo * AcquireDistributeCacheInfo | ( | ExceptionInfo * | exception | ) |
Definition at line 324 of file distribute-cache.c.
References AcquireCriticalMemory(), CacheEvent, ConnectPixelCacheServer(), CopyMagickString(), _DistributeCacheInfo::debug, DestroyDistributeCacheInfo(), DestroyString(), _DistributeCacheInfo::file, GetHostname(), GetLogEventMask(), _DistributeCacheInfo::hostname, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, _DistributeCacheInfo::port, _DistributeCacheInfo::session_key, and _DistributeCacheInfo::signature.
|
static |
Definition at line 175 of file distribute-cache.c.
References AcquireStringInfo(), CacheError, CLOSE_SOCKET, DestroyString(), DestroyStringInfo(), FormatLocaleString(), GetMagickModule, GetMagickSignature(), GetPolicyValue(), GetStringInfoDatum(), MagickFalse, MagickPathExtent, MagickTrue, MissingDelegateError, recv, SOCKET_TYPE, and ThrowMagickException().
Referenced by AcquireDistributeCacheInfo().
| MagickPrivate DistributeCacheInfo * DestroyDistributeCacheInfo | ( | DistributeCacheInfo * | server_info | ) |
Definition at line 385 of file distribute-cache.c.
References CLOSE_SOCKET, _DistributeCacheInfo::file, MagickCoreSignature, RelinquishMagickMemory(), and _DistributeCacheInfo::signature.
Referenced by AcquireDistributeCacheInfo(), DestroyPixelCache(), and OpenPixelCache().
| MagickExport void DistributePixelCacheServer | ( | const int | port, |
| ExceptionInfo * | Exception | ||
| ) |
Definition at line 454 of file distribute-cache.c.
References magick_unreferenced, MissingDelegateError, and ThrowFatalException.
|
inlinestatic |
Definition at line 147 of file distribute-cache.c.
References MAGICK_SSIZE_MAX, magick_unreferenced, MagickMin, and recv.
Referenced by OpenDistributePixelCache(), ReadDistributePixelCacheMetacontent(), ReadDistributePixelCachePixels(), and RelinquishDistributePixelCache().
|
inlinestatic |
Definition at line 423 of file distribute-cache.c.
References MAGICK_SSIZE_MAX, magick_unreferenced, MagickMin, MSG_NOSIGNAL, and send.
Referenced by OpenDistributePixelCache(), ReadDistributePixelCacheMetacontent(), ReadDistributePixelCachePixels(), RelinquishDistributePixelCache(), WriteDistributePixelCacheMetacontent(), and WriteDistributePixelCachePixels().
| MagickPrivate int GetDistributeCacheFile | ( | const DistributeCacheInfo * | server_info | ) |
Definition at line 1013 of file distribute-cache.c.
References _DistributeCacheInfo::file, MagickCoreSignature, and _DistributeCacheInfo::signature.
| MagickPrivate const char * GetDistributeCacheHostname | ( | const DistributeCacheInfo * | server_info | ) |
Definition at line 1044 of file distribute-cache.c.
References _DistributeCacheInfo::hostname, MagickCoreSignature, and _DistributeCacheInfo::signature.
Referenced by OpenPixelCache().
| MagickPrivate int GetDistributeCachePort | ( | const DistributeCacheInfo * | server_info | ) |
Definition at line 1075 of file distribute-cache.c.
References MagickCoreSignature, _DistributeCacheInfo::port, and _DistributeCacheInfo::signature.
Referenced by OpenPixelCache().
|
static |
Definition at line 269 of file distribute-cache.c.
References AcquireString(), DestroyString(), DPCHostname, DPCPort, GetImageRegistry(), RelinquishMagickMemory(), StringRegistryType, StringToArgv(), StringToLong(), and SubstituteString().
Referenced by AcquireDistributeCacheInfo().
| MagickPrivate MagickBooleanType OpenDistributePixelCache | ( | DistributeCacheInfo * | server_info, |
| Image * | image | ||
| ) |
Definition at line 1107 of file distribute-cache.c.
References _Image::alpha_trait, _Image::channel_map, _Image::channels, _Image::colorspace, _Image::columns, dpc_read(), dpc_send(), _DistributeCacheInfo::file, MagickCoreSignature, MagickFalse, MagickPathExtent, MaxPixelChannels, _Image::metacontent_extent, _Image::number_channels, _Image::rows, _DistributeCacheInfo::session_key, _DistributeCacheInfo::signature, _Image::signature, and _Image::storage_class.
| MagickPrivate MagickOffsetType ReadDistributePixelCacheMetacontent | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| unsigned char * | metacontent | ||
| ) |
Definition at line 1196 of file distribute-cache.c.
References dpc_read(), dpc_send(), _DistributeCacheInfo::file, _RectangleInfo::height, MAGICK_SSIZE_MAX, MagickCoreSignature, MagickPathExtent, _DistributeCacheInfo::session_key, _DistributeCacheInfo::signature, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
| MagickPrivate MagickOffsetType ReadDistributePixelCachePixels | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| unsigned char *magick_restrict | pixels | ||
| ) |
Definition at line 1269 of file distribute-cache.c.
References dpc_read(), dpc_send(), _DistributeCacheInfo::file, _RectangleInfo::height, MAGICK_SSIZE_MAX, MagickCoreSignature, MagickPathExtent, _DistributeCacheInfo::session_key, _DistributeCacheInfo::signature, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
| MagickPrivate MagickBooleanType RelinquishDistributePixelCache | ( | DistributeCacheInfo * | server_info | ) |
Definition at line 1333 of file distribute-cache.c.
References dpc_read(), dpc_send(), _DistributeCacheInfo::file, MagickCoreSignature, MagickFalse, MagickPathExtent, _DistributeCacheInfo::session_key, and _DistributeCacheInfo::signature.
Referenced by RelinquishPixelCachePixels().
| MagickPrivate MagickOffsetType WriteDistributePixelCacheMetacontent | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| const unsigned char * | metacontent | ||
| ) |
Definition at line 1398 of file distribute-cache.c.
References dpc_send(), _DistributeCacheInfo::file, _RectangleInfo::height, MAGICK_SSIZE_MAX, MagickCoreSignature, MagickPathExtent, _DistributeCacheInfo::session_key, _DistributeCacheInfo::signature, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
| MagickPrivate MagickOffsetType WriteDistributePixelCachePixels | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| const unsigned char *magick_restrict | pixels | ||
| ) |
Definition at line 1472 of file distribute-cache.c.
References dpc_send(), _DistributeCacheInfo::file, _RectangleInfo::height, MAGICK_SSIZE_MAX, MagickCoreSignature, MagickPathExtent, _DistributeCacheInfo::session_key, _DistributeCacheInfo::signature, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.