2017-04-24 7.0.5-5 Cristy <quetzlzacatenango@image...>
- * Release ImageMagick version 7.0.5-5, GIT revision 19908:bc92979:20170424.
+ * Release ImageMagick version 7.0.5-5, GIT revision 19915:12eec43:20170424.
2017-03-26 7.0.5-5 Cristy <quetzlzacatenango@image...>
* Minimize buffer copies to improve OpenCL performance.
*offset+=cache_info->length+page_size-(cache_info->length % page_size);
return(MagickTrue);
}
- if ((cache_info->mode != ReadMode) &&
- ((cache_info->type == DiskCache) || (cache_info->type == MapCache)) &&
- (cache_info->reference_count == 1))
- {
- LockSemaphoreInfo(cache_info->semaphore);
- if ((cache_info->mode != ReadMode) &&
- ((cache_info->type == DiskCache) || (cache_info->type == MapCache)) &&
- (cache_info->reference_count == 1))
- {
- /*
- Usurp existing persistent pixel cache.
- */
- if (rename_utf8(cache_info->cache_filename, filename) == 0)
- {
- (void) CopyMagickString(cache_info->cache_filename,filename,
- MagickPathExtent);
- *offset+=cache_info->length+page_size-(cache_info->length %
- page_size);
- UnlockSemaphoreInfo(cache_info->semaphore);
- cache_info=(CacheInfo *) ReferencePixelCache(cache_info);
- if (image->debug != MagickFalse)
- (void) LogMagickEvent(CacheEvent,GetMagickModule(),
- "Usurp resident persistent cache");
- return(MagickTrue);
- }
- }
- UnlockSemaphoreInfo(cache_info->semaphore);
- }
/*
Clone persistent pixel cache.
*/
/*
Initialize persistent pixel cache.
*/
- {
- Image *clone_image = CloneImage(image,0,0,MagickTrue,exception);
- if (clone_image == (Image *) NULL)
- ThrowWriterException(CacheError,"UnableToPersistPixelCache");
- status=PersistPixelCache(clone_image,cache_filename,MagickFalse,&offset,
- exception);
- clone_image=DestroyImage(clone_image);
- if (status == MagickFalse)
- ThrowWriterException(CacheError,"UnableToPersistPixelCache");
- }
+ status=PersistPixelCache(image,cache_filename,MagickFalse,&offset,
+ exception);
if (GetNextImageInList(image) == (Image *) NULL)
break;
image=SyncNextImageInList(image);