Changeset 11607 for ImageMagick/trunk
- Timestamp:
- 07/10/08 07:12:33 (6 weeks ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/magick/cache.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/cache.c
r11604 r11607 1209 1209 % The format of the CloneCacheNexus() method is: 1210 1210 % 1211 % MagickBooleanType CloneCacheNexus( CacheInfo *destination,1211 % MagickBooleanType CloneCacheNexus(Image *image,CacheInfo *destination, 1212 1212 % CacheInfo *source) 1213 1213 % 1214 1214 % A description of each parameter follows: 1215 % 1216 % o image: the image. 1215 1217 % 1216 1218 % o destination: the destination cache nexus. … … 1240 1242 } 1241 1243 1242 static MagickBooleanType CloneCacheNexus( CacheInfo *destination,1244 static MagickBooleanType CloneCacheNexus(Image *image,CacheInfo *destination, 1243 1245 CacheInfo *source) 1244 1246 { 1247 MagickBooleanType 1248 status; 1249 1245 1250 MagickSizeType 1246 1251 number_pixels; 1252 1253 RectangleInfo 1254 region; 1247 1255 1248 1256 register const NexusInfo … … 1286 1294 q->indexes=(IndexPacket *) (q->pixels+number_pixels); 1287 1295 } 1288 } 1289 return(MagickTrue); 1296 } 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); 1290 1304 } 1291 1305 … … 3374 3388 (void) SetCacheVirtualPixelMethod(image,clone_info->virtual_pixel_method); 3375 3389 cache_info=(CacheInfo *) image->cache; 3376 status=CloneCacheNexus( cache_info,clone_info);3390 status=CloneCacheNexus(image,cache_info,clone_info); 3377 3391 if (status != MagickFalse) 3378 3392 { … … 3782 3796 cache_info->offset=(*offset); 3783 3797 cache_info=(CacheInfo *) image->cache; 3784 status=CloneCacheNexus( cache_info,clone_info);3798 status=CloneCacheNexus(image,cache_info,clone_info); 3785 3799 if (status != MagickFalse) 3786 3800 { … … 4624 4638 *cache_info; 4625 4639 4626 MagickBooleanType4627 status;4628 4629 4640 assert(image != (Image *) NULL); 4630 4641 assert(image->signature == MagickSignature); … … 4636 4647 if (IsCacheSynchronized(image) != MagickFalse) 4637 4648 return(MagickTrue); 4638 status=OpenCache(image,IOMode,&image->exception); 4639 if (status != MagickFalse) 4640 { 4641 RectangleInfo 4642 region; 4643 4644 region.x=0; 4645 region.y=0; 4646 region.width=image->columns; 4647 region.height=1; 4648 status=SetNexus(image,®ion,0) != (PixelPacket *) NULL ? 4649 MagickTrue : MagickFalse; 4650 } 4651 return(status); 4649 return(OpenCache(image,IOMode,&image->exception)); 4652 4650 } 4653 4651
