• Home
  • Raw
  • Download

Lines Matching refs:bounds

100 static void ClearBounds(Image *image,RectangleInfo *bounds,  in ClearBounds()  argument
106 if (bounds->x < 0) in ClearBounds()
110 for (y=0; y < (ssize_t) bounds->height; y++) in ClearBounds()
118 q=GetAuthenticPixels(image,bounds->x,bounds->y+y,bounds->width,1,exception); in ClearBounds()
121 for (x=0; x < (ssize_t) bounds->width; x++) in ClearBounds()
166 const Image *image2,RectangleInfo *bounds,ExceptionInfo *exception) in IsBoundsCleared() argument
178 if (bounds->x < 0) in IsBoundsCleared()
180 for (y=0; y < (ssize_t) bounds->height; y++) in IsBoundsCleared()
182 p=GetVirtualPixels(image1,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
183 q=GetVirtualPixels(image2,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
186 for (x=0; x < (ssize_t) bounds->width; x++) in IsBoundsCleared()
194 if (x < (ssize_t) bounds->width) in IsBoundsCleared()
197 return(y < (ssize_t) bounds->height ? MagickTrue : MagickFalse); in IsBoundsCleared()
240 bounds; in CoalesceImages() local
252 bounds=next->page; in CoalesceImages()
253 if (bounds.width == 0) in CoalesceImages()
255 bounds.width=next->columns; in CoalesceImages()
256 if (bounds.x > 0) in CoalesceImages()
257 bounds.width+=bounds.x; in CoalesceImages()
259 if (bounds.height == 0) in CoalesceImages()
261 bounds.height=next->rows; in CoalesceImages()
262 if (bounds.y > 0) in CoalesceImages()
263 bounds.height+=bounds.y; in CoalesceImages()
265 bounds.x=0; in CoalesceImages()
266 bounds.y=0; in CoalesceImages()
267 coalesce_image=CloneImage(next,bounds.width,bounds.height,MagickTrue, in CoalesceImages()
274 coalesce_image->page=bounds; in CoalesceImages()
289 bounds=previous->page; in CoalesceImages()
290 bounds.width=previous->columns; in CoalesceImages()
291 bounds.height=previous->rows; in CoalesceImages()
292 if (bounds.x < 0) in CoalesceImages()
294 bounds.width+=bounds.x; in CoalesceImages()
295 bounds.x=0; in CoalesceImages()
297 if ((ssize_t) (bounds.x+bounds.width) > (ssize_t) coalesce_image->columns) in CoalesceImages()
298 bounds.width=coalesce_image->columns-bounds.x; in CoalesceImages()
299 if (bounds.y < 0) in CoalesceImages()
301 bounds.height+=bounds.y; in CoalesceImages()
302 bounds.y=0; in CoalesceImages()
304 if ((ssize_t) (bounds.y+bounds.height) > (ssize_t) coalesce_image->rows) in CoalesceImages()
305 bounds.height=coalesce_image->rows-bounds.y; in CoalesceImages()
323 ClearBounds(dispose_image,&bounds,exception); in CoalesceImages()
341 if (IsBoundsCleared(previous,coalesce_image,&bounds,exception) != MagickFalse) in CoalesceImages()
384 bounds; in DisposeImages() local
434 bounds=next->page; in DisposeImages()
435 bounds.width=next->columns; in DisposeImages()
436 bounds.height=next->rows; in DisposeImages()
437 if (bounds.x < 0) in DisposeImages()
439 bounds.width+=bounds.x; in DisposeImages()
440 bounds.x=0; in DisposeImages()
442 if ((ssize_t) (bounds.x+bounds.width) > (ssize_t) current_image->columns) in DisposeImages()
443 bounds.width=current_image->columns-bounds.x; in DisposeImages()
444 if (bounds.y < 0) in DisposeImages()
446 bounds.height+=bounds.y; in DisposeImages()
447 bounds.y=0; in DisposeImages()
449 if ((ssize_t) (bounds.y+bounds.height) > (ssize_t) current_image->rows) in DisposeImages()
450 bounds.height=current_image->rows-bounds.y; in DisposeImages()
451 ClearBounds(current_image,&bounds,exception); in DisposeImages()
594 bounds; in CompareImagesBounds() local
639 bounds.x=-1; in CompareImagesBounds()
640 bounds.y=-1; in CompareImagesBounds()
641 bounds.width=1; in CompareImagesBounds()
642 bounds.height=1; in CompareImagesBounds()
643 return(bounds); in CompareImagesBounds()
645 bounds.x=x; in CompareImagesBounds()
665 bounds.width=(size_t) (x-bounds.x+1); in CompareImagesBounds()
685 bounds.y=y; in CompareImagesBounds()
705 bounds.height=(size_t) (y-bounds.y+1); in CompareImagesBounds()
706 return(bounds); in CompareImagesBounds()
756 *bounds; in CompareImagesLayers() local
777 bounds=(RectangleInfo *) AcquireQuantumMemory((size_t) in CompareImagesLayers()
778 GetImageListLength(next),sizeof(*bounds)); in CompareImagesLayers()
779 if (bounds == (RectangleInfo *) NULL) in CompareImagesLayers()
788 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in CompareImagesLayers()
809 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in CompareImagesLayers()
814 bounds[i]=CompareImagesBounds(image_b,image_a,method,exception); in CompareImagesLayers()
826 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in CompareImagesLayers()
836 if ((bounds[i].x == -1) && (bounds[i].y == -1) && in CompareImagesLayers()
837 (bounds[i].width == 1) && (bounds[i].height == 1)) in CompareImagesLayers()
849 image_b=CropImage(image_a,&bounds[i],exception); in CompareImagesLayers()
856 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in CompareImagesLayers()
932 *bounds; in OptimizeLayerFrames() local
978 bounds=(RectangleInfo *) AcquireQuantumMemory((size_t) in OptimizeLayerFrames()
980 sizeof(*bounds)); in OptimizeLayerFrames()
981 if (bounds == (RectangleInfo *) NULL) in OptimizeLayerFrames()
988 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
998 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
1018 bounds[0]=CompareImagesBounds(prev_image,curr,CompareAnyLayer,exception); in OptimizeLayerFrames()
1021 (double) bounds[i].width,(double) bounds[i].height, in OptimizeLayerFrames()
1022 (double) bounds[i].x,(double) bounds[i].y ); in OptimizeLayerFrames()
1043 bounds[i]=CompareImagesBounds(curr->previous,curr,CompareAnyLayer,exception); in OptimizeLayerFrames()
1044 cleared=IsBoundsCleared(curr->previous,curr,&bounds[i],exception); in OptimizeLayerFrames()
1048 (double) bounds[i].width,(double) bounds[i].height, in OptimizeLayerFrames()
1049 (double) bounds[i].x,(double) bounds[i].y, in OptimizeLayerFrames()
1050 bounds[i].x < 0?" (unchanged)":"", in OptimizeLayerFrames()
1053 if ( bounds[i].x < 0 ) { in OptimizeLayerFrames()
1063 bounds[i]=bounds[i-1]; in OptimizeLayerFrames()
1083 < bounds[i].width * bounds[i].height ) in OptimizeLayerFrames()
1086 bounds[i]=try_bounds; in OptimizeLayerFrames()
1107 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
1118 < bounds[i].width * bounds[i].height ) in OptimizeLayerFrames()
1121 bounds[i]=try_bounds; in OptimizeLayerFrames()
1135 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
1142 bgnd_bounds=bounds[i-1]; /* interum bounds of the previous image */ in OptimizeLayerFrames()
1242 < bounds[i-1].width*bounds[i-1].height in OptimizeLayerFrames()
1244 +bounds[i].width*bounds[i].height ) in OptimizeLayerFrames()
1247 bounds[i-1]=bgnd_bounds; in OptimizeLayerFrames()
1248 bounds[i]=try_bounds; in OptimizeLayerFrames()
1269 bounds[i+1]=bounds[i]; in OptimizeLayerFrames()
1270 bounds[i]=dup_bounds; in OptimizeLayerFrames()
1291 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
1304 (double) bounds[i-1].width, (double) bounds[i-1].height, in OptimizeLayerFrames()
1305 (double) bounds[i-1].x, (double) bounds[i-1].y ); in OptimizeLayerFrames()
1311 (double) bounds[i].width, (double) bounds[i].height, in OptimizeLayerFrames()
1312 (double) bounds[i].x, (double) bounds[i].y ); in OptimizeLayerFrames()
1341 bgnd_image=CropImage(prev_image,&bounds[i],sans_exception); in OptimizeLayerFrames()
1356 bounds=(RectangleInfo *) RelinquishMagickMemory(bounds); in OptimizeLayerFrames()
1520 bounds=next->page; in OptimizeImageTransparency() local
1522 bounds.width=next->columns; in OptimizeImageTransparency()
1523 bounds.height=next->rows; in OptimizeImageTransparency()
1524 if (bounds.x < 0) in OptimizeImageTransparency()
1526 bounds.width+=bounds.x; in OptimizeImageTransparency()
1527 bounds.x=0; in OptimizeImageTransparency()
1529 if ((ssize_t) (bounds.x+bounds.width) > (ssize_t) current_image->columns) in OptimizeImageTransparency()
1530 bounds.width=current_image->columns-bounds.x; in OptimizeImageTransparency()
1531 if (bounds.y < 0) in OptimizeImageTransparency()
1533 bounds.height+=bounds.y; in OptimizeImageTransparency()
1534 bounds.y=0; in OptimizeImageTransparency()
1536 if ((ssize_t) (bounds.y+bounds.height) > (ssize_t) current_image->rows) in OptimizeImageTransparency()
1537 bounds.height=current_image->rows-bounds.y; in OptimizeImageTransparency()
1538 ClearBounds(current_image, &bounds,exception); in OptimizeImageTransparency()
1600 bounds; in RemoveDuplicateLayers() local
1615 bounds=CompareImagesBounds(curr,next,CompareAnyLayer,exception); in RemoveDuplicateLayers()
1616 if ( bounds.x < 0 ) { in RemoveDuplicateLayers()