RSS/Atom feed Twitter
Site is read-only, email is disabled

A GEGL Tile Interface

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

A GEGL Tile Interface Martin Nordholts 18 Nov 18:46
A GEGL Tile Interface Øyvind Kolås 21 Nov 02:28
Martin Nordholts
2006-11-18 18:46:13 UTC (about 18 years ago)

A GEGL Tile Interface

Hello!

I've been thinking about how an Undo/Redo implementation in an image manipulating program that uses GEGL would look. From what I can tell, most IMPs uses tiles for Undo/Redo implementations; after an operation, they store the changed tiles. On an undo, the changed tiles are reverted back.

However, the current gegl.h seems to offer no interface for tile access. Has there been any discussion about this, i.e. is a tile interface supposed to be available in GEGL?

Sincerely, Martin

Øyvind Kolås
2006-11-21 02:28:14 UTC (about 18 years ago)

A GEGL Tile Interface

On 11/18/06, Martin Nordholts wrote:

I've been thinking about how an Undo/Redo implementation in an image manipulating program that uses GEGL would look. From what I can tell, most IMPs uses tiles for Undo/Redo implementations; after an operation, they store the changed tiles. On an undo, the changed tiles are reverted back.

If such an interface were to be provided it would be internal to the GeglBuffer implementation. And it is indeed possible to implement such a state information on a per GeglBuffer level. For many applications it will probably be more beneficial to store the history of actions as a sequence of operations, and rely on efficient caching to avoid re computation of the entire stroke/filter history.

However, the current gegl.h seems to offer no interface for tile access. Has there been any discussion about this, i.e. is a tile interface supposed to be available in GEGL?

A tile interface will most probably not be provided, as even the fact that sparse buffers are implemented by the means of tiles is an implementation detail of the current GeglBuffer implementation that should not be exposed to users of the interface.

/Øyvind K.