GNOME Bugzilla – Bug 331344
tile cache size in unsharp mask plugin
Last modified: 2006-02-16 07:54:31 UTC
In the unsharp mask plugin, the size of the tile cache is defined as 2 * (drawable->width / gimp_tile_width () + 1 ) This is good for accessing the image horizontally but unsharp mask also applies a vertical blur for which that cache size is not always appropriate. For example, if unsharp mask is applied to a big image with a height larger than 2*width (eg. 1000x3000), then the second third of the progress bar shows that the vertical blur is extremely slow.
Created attachment 59441 [details] [review] Patch to adapt the size of the cache to the max of both dimensions.
Applied to both branches (with a minor adaption to the GIMP coding style). Thanks a lot. 2006-02-16 Sven Neumann <sven@gimp.org> * plug-ins/common/unsharp.c: applied patch from Stephane Chauveau that corrects the calculation of the tile cache size (bug #331344).