Changeset 11608 for ImageMagick/trunk
- Timestamp:
- 07/10/08 07:36:33 (7 weeks ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/magick/cache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/cache.c
r11607 r11608 1209 1209 % The format of the CloneCacheNexus() method is: 1210 1210 % 1211 % MagickBooleanType CloneCacheNexus( Image *image,CacheInfo *destination,1211 % MagickBooleanType CloneCacheNexus(CacheInfo *destination, 1212 1212 % CacheInfo *source) 1213 1213 % 1214 1214 % A description of each parameter follows: 1215 %1216 % o image: the image.1217 1215 % 1218 1216 % o destination: the destination cache nexus. … … 1242 1240 } 1243 1241 1244 static MagickBooleanType CloneCacheNexus( Image *image,CacheInfo *destination,1242 static MagickBooleanType CloneCacheNexus(CacheInfo *destination, 1245 1243 CacheInfo *source) 1246 1244 { 1247 MagickBooleanType1248 status;1249 1250 1245 MagickSizeType 1251 1246 number_pixels; 1252 1253 RectangleInfo1254 region;1255 1247 1256 1248 register const NexusInfo … … 1295 1287 } 1296 1288 } 1297 region.x=0; 1298 region.y=0; 1299 region.width=image->columns; 1300 region.height=1; 1301 status=SetNexus(image,®ion,0) != (PixelPacket *) NULL ? MagickTrue : 1302 MagickFalse; 1303 return(status); 1289 return(MagickTrue); 1304 1290 } 1305 1291 … … 3388 3374 (void) SetCacheVirtualPixelMethod(image,clone_info->virtual_pixel_method); 3389 3375 cache_info=(CacheInfo *) image->cache; 3390 status=CloneCacheNexus( image,cache_info,clone_info);3376 status=CloneCacheNexus(cache_info,clone_info); 3391 3377 if (status != MagickFalse) 3392 3378 { … … 3796 3782 cache_info->offset=(*offset); 3797 3783 cache_info=(CacheInfo *) image->cache; 3798 status=CloneCacheNexus( image,cache_info,clone_info);3784 status=CloneCacheNexus(cache_info,clone_info); 3799 3785 if (status != MagickFalse) 3800 3786 { … … 4374 4360 if (status != MagickFalse) 4375 4361 status=SyncCache(image); 4362 if (status != MagickFalse) 4363 { 4364 RectangleInfo 4365 region; 4366 4367 region.x=0; 4368 region.y=0; 4369 region.width=image->columns; 4370 region.height=1; 4371 if (SetNexus(image,®ion,0) == (PixelPacket *) NULL) 4372 status=MagickFalse; 4373 } 4376 4374 } 4377 4375 RelinquishSemaphoreInfo(cache_info->semaphore);
