continue;
}
offset=cache_info->channel_map[channel].offset;
- if ((clone_info->type != DiskCache) &&
- (clone_info->type != DistributedCache))
+ if ((clone_info->type == MemoryCache) ||
+ (clone_info->type == MapCache))
(void) memcpy((unsigned char *) clone_info->pixels+clone_offset,p+
offset*sizeof(Quantum),sizeof(Quantum));
else
(void) ResetMagickMemory(blob,0,length*sizeof(*blob));
for ( ; x < (ssize_t) clone_info->columns; x++)
{
- if ((clone_info->type != DiskCache) &&
- (clone_info->type != DistributedCache))
+ if ((clone_info->type == MemoryCache) ||
+ (clone_info->type == MapCache))
(void) memcpy((unsigned char *) clone_info->pixels+clone_offset,
blob,length);
else
Write a set of metacontent.
*/
length=clone_info->metacontent_extent;
- if ((clone_info->type != DiskCache) &&
- (clone_info->type != DistributedCache))
+ if ((clone_info->type == MemoryCache) ||
+ (clone_info->type == MapCache))
(void) memcpy((unsigned char *) clone_info->pixels+clone_offset,
p,length);
else
/*
Set remaining columns as undefined.
*/
- if ((clone_info->type != DiskCache) &&
- (clone_info->type != DistributedCache))
+ if ((clone_info->type == MemoryCache) ||
+ (clone_info->type == MapCache))
(void) memcpy((unsigned char *) clone_info->pixels+clone_offset,
blob,length);
else
{
for (x=0; x < (ssize_t) clone_info->columns; x++)
{
- if ((clone_info->type != DiskCache) &&
- (clone_info->type != DistributedCache))
+ if ((clone_info->type == MemoryCache) ||
+ (clone_info->type == MapCache))
(void) memcpy((unsigned char *) clone_info->pixels+clone_offset,
blob,length);
else
}
RelinquishPixelCachePixels(cache_info);
if (cache_info->distribute_cache_info != (DistributeCacheInfo *) NULL)
- cache_info->distribute_cache_info=
- DestroyDistributeCacheInfo(cache_info->distribute_cache_info);
+ cache_info->distribute_cache_info=DestroyDistributeCacheInfo(
+ cache_info->distribute_cache_info);
if (cache_info->nexus_info != (NexusInfo **) NULL)
cache_info->nexus_info=DestroyPixelCacheNexus(cache_info->nexus_info,
cache_info->number_threads);
if (cache_info->type == UndefinedCache)
return((Quantum *) NULL);
nexus_info->region=(*region);
- if ((cache_info->type != DiskCache) &&
- (cache_info->type != DistributedCache) && (cache_info->type != PingCache))
+ if ((cache_info->type == MemoryCache) || (cache_info->type == MapCache))
{
ssize_t
x,