|
MagickCore 6.9.11-60
Convert, Edit, Or Compose Bitmap Images
|
#include "magick/studio.h"#include "magick/cache.h"#include "magick/cache-private.h"#include "magick/distribute-cache.h"#include "magick/distribute-cache-private.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/image.h"#include "magick/image-private.h"#include "magick/list.h"#include "magick/locale_.h"#include "magick/memory_.h"#include "magick/nt-base-private.h"#include "magick/policy.h"#include "magick/random_.h"#include "magick/registry.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/string-private.h"#include "magick/version.h"#include "magick/version-private.h"Macros | |
| #define | CLOSE_SOCKET(socket) |
| #define | HANDLER_RETURN_TYPE void * |
| #define | HANDLER_RETURN_VALUE (void *) NULL |
| #define | SOCKET_TYPE int |
| #define | LENGTH_TYPE size_t |
| #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 | magick_fallthrough /* nothing */ |
| #define CLOSE_SOCKET | ( | socket | ) |
| #define DPCHostname "127.0.0.1" |
| #define DPCPendingConnections 10 |
| #define DPCPort 6668 |
| #define DPCSessionKeyLength 8 |
| #define HANDLER_RETURN_TYPE void * |
| #define HANDLER_RETURN_VALUE (void *) NULL |
| #define LENGTH_TYPE size_t |
| #define magick_fallthrough /* nothing */ |
| #define MSG_NOSIGNAL 0 |
| #define recv | ( | file, | |
| buffer, | |||
| length, | |||
| flags | |||
| ) | 0 |
| #define send | ( | file, | |
| buffer, | |||
| length, | |||
| flags | |||
| ) | 0 |
| #define SOCKET_TYPE int |
| MagickPrivate DistributeCacheInfo * AcquireDistributeCacheInfo | ( | ExceptionInfo * | exception | ) |
References AcquireCriticalMemory(), ConnectPixelCacheServer(), CopyMagickString(), _DistributeCacheInfo::debug, DestroyDistributeCacheInfo(), DestroyString(), _DistributeCacheInfo::file, GetHostname(), _DistributeCacheInfo::hostname, IsEventLogging(), MagickCoreSignature, MagickPathExtent, _DistributeCacheInfo::port, _DistributeCacheInfo::session_key, and _DistributeCacheInfo::signature.
|
static |
References CacheError, CLOSE_SOCKET, DestroyString(), DPCSessionKeyLength, FormatLocaleString(), GenerateSessionKey(), GetExceptionMessage(), GetMagickModule, GetPolicyValue(), MagickPathExtent, MagickTrue, MissingDelegateError, MSG_NOSIGNAL, recv, send, SOCKET_TYPE, and ThrowMagickException().
Referenced by AcquireDistributeCacheInfo().
|
inlinestatic |
Referenced by GenerateSessionKey().
|
static |
References DeleteNodeFromSplayTree(), and registry.
Referenced by DistributePixelCacheClient().
| MagickPrivate DistributeCacheInfo * DestroyDistributeCacheInfo | ( | DistributeCacheInfo * | server_info | ) |
References CLOSE_SOCKET, _DistributeCacheInfo::file, MagickCoreSignature, RelinquishMagickMemory(), and _DistributeCacheInfo::signature.
Referenced by AcquireDistributeCacheInfo(), DestroyPixelCache(), and OpenPixelCache().
|
static |
References AcquireExceptionInfo(), AcquireRandomInfo(), CacheFatalError, CLOSE_SOCKET, DestroyDistributeCache(), DestroyExceptionInfo(), DestroyRandomInfo(), DestroySplayTree(), DestroyString(), DestroyStringInfo(), dpc_read(), dpc_send(), DPCSessionKeyLength, GenerateSessionKey(), GetPolicyValue(), GetRandomKey(), GetStringInfoDatum(), HANDLER_RETURN_VALUE, MagickFalse, NewSplayTree(), OpenDistributeCache(), random_info, ReadDistributeCacheIndexes(), ReadDistributeCachePixels(), registry, RelinquishImageRegistry(), RelinquishMagickMemory(), SOCKET_TYPE, ThrowFatalException, WriteDistributeCacheIndexes(), and WriteDistributeCachePixels().
Referenced by DistributePixelCacheServer().
| MagickExport void DistributePixelCacheServer | ( | const int | port, |
| ExceptionInfo * | exception | ||
| ) |
References AcquireMagickMemory(), CacheFatalError, CLOSE_SOCKET, DistributePixelCacheClient(), DPCPendingConnections, FormatLocaleString(), magick_unreferenced, MagickCoreSignature, MagickFalse, MagickPathExtent, pthread_attr_init, pthread_attr_setdetachstate, pthread_create, RelinquishMagickMemory(), _ExceptionInfo::signature, SOCKET_TYPE, and ThrowFatalException.
|
inlinestatic |
References LENGTH_TYPE, magick_unreferenced, MagickMaxBufferExtent, MagickMin, and recv.
Referenced by DistributePixelCacheClient(), OpenDistributeCache(), OpenDistributePixelCache(), ReadDistributeCacheIndexes(), ReadDistributeCachePixels(), ReadDistributePixelCacheIndexes(), ReadDistributePixelCachePixels(), RelinquishDistributePixelCache(), WriteDistributeCacheIndexes(), and WriteDistributeCachePixels().
|
inlinestatic |
References LENGTH_TYPE, magick_unreferenced, MagickMaxBufferExtent, MagickMin, MSG_NOSIGNAL, and send.
Referenced by DistributePixelCacheClient(), OpenDistributePixelCache(), ReadDistributeCacheIndexes(), ReadDistributeCachePixels(), ReadDistributePixelCacheIndexes(), ReadDistributePixelCachePixels(), RelinquishDistributePixelCache(), WriteDistributePixelCacheIndexes(), and WriteDistributePixelCachePixels().
|
inlinestatic |
References DeriveSipKeyFromSecret(), and SIPHash24().
Referenced by ConnectPixelCacheServer(), and DistributePixelCacheClient().
| MagickPrivate int GetDistributeCacheFile | ( | const DistributeCacheInfo * | server_info | ) |
References _DistributeCacheInfo::file, MagickCoreSignature, and _DistributeCacheInfo::signature.
| MagickPrivate const char * GetDistributeCacheHostname | ( | const DistributeCacheInfo * | server_info | ) |
References _DistributeCacheInfo::hostname, MagickCoreSignature, and _DistributeCacheInfo::signature.
Referenced by OpenPixelCache().
| MagickPrivate int GetDistributeCachePort | ( | const DistributeCacheInfo * | server_info | ) |
References MagickCoreSignature, _DistributeCacheInfo::port, and _DistributeCacheInfo::signature.
Referenced by OpenPixelCache().
|
static |
References AcquireString(), DestroyString(), DPCHostname, DPCPort, GetImageRegistry(), RelinquishMagickMemory(), StringRegistryType, StringToArgv(), StringToLong(), and SubstituteString().
Referenced by AcquireDistributeCacheInfo().
|
static |
| MagickPrivate MagickBooleanType OpenDistributePixelCache | ( | DistributeCacheInfo * | server_info, |
| Image * | image | ||
| ) |
|
static |
References dpc_read(), dpc_send(), GetValueFromSplayTree(), GetVirtualIndexQueue(), GetVirtualPixels(), _RectangleInfo::height, MagickFalse, MagickPathExtent, MagickTrue, registry, ValidateDistributedPixelCache(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DistributePixelCacheClient().
|
static |
| MagickPrivate MagickOffsetType ReadDistributePixelCacheIndexes | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| unsigned char * | indexes | ||
| ) |
| MagickPrivate MagickOffsetType ReadDistributePixelCachePixels | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| unsigned char *magick_restrict | pixels | ||
| ) |
| MagickPrivate MagickBooleanType RelinquishDistributePixelCache | ( | DistributeCacheInfo * | server_info | ) |
References dpc_read(), dpc_send(), _DistributeCacheInfo::file, MagickCoreSignature, MagickFalse, MagickPathExtent, _DistributeCacheInfo::session_key, and _DistributeCacheInfo::signature.
Referenced by RelinquishPixelCachePixels().
|
static |
References DestroyImageList().
Referenced by DistributePixelCacheClient().
|
inlinestatic |
Referenced by SIPHash24().
|
inlinestatic |
References magick_fallthrough, ROTL(), and U8TO64_LE().
Referenced by GenerateSessionKey().
|
inlinestatic |
Referenced by SIPHash24().
|
inlinestatic |
|
static |
References dpc_read(), GetAuthenticIndexQueue(), GetAuthenticPixels(), GetValueFromSplayTree(), _RectangleInfo::height, MagickFalse, MagickPathExtent, registry, SyncAuthenticPixels(), ValidateDistributedPixelCache(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DistributePixelCacheClient().
|
static |
| MagickPrivate MagickOffsetType WriteDistributePixelCacheIndexes | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| const unsigned char * | indexes | ||
| ) |
| MagickPrivate MagickOffsetType WriteDistributePixelCachePixels | ( | DistributeCacheInfo * | server_info, |
| const RectangleInfo * | region, | ||
| const MagickSizeType | length, | ||
| const unsigned char *magick_restrict | pixels | ||
| ) |