[Gimp-developer] IWarp as a tool
Sven Neumann
sven at gimp.org
Wed Feb 13 23:48:03 PST 2008
Hi,
On Wed, 2008-02-13 at 02:06 +0200, Tor Lillqvist wrote:
> Currently it allocates a big buffer for the deformation vectors, two
> doubles for each pixel in the image. This should probably be changed
> to either use tile-based storage, or use a scaled (when necessary)
> deformation vector array with some fixed maximum size.
You should be able to use a tile-manager for this. A tile-manager can
hold any number of bytes per pixel. There is one tool already that does
something like this, the IScissors tool. It even does something
particularily elegant in that it uses a validate_proc so that only the
tiles that are actually needed by the tool are calculated.
Sven
More information about the Gimp-developer
mailing list