Re: gimp_pixel_rgns_register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 2007-03-16 at 10:39 -0700, William Skaggs wrote:

> You probably shouldn't do this at all.  The gimp_pixel_rgns_process
> method handles the data tile by tile, which means that it is impossible,
> or at least quite difficult, to handle interactions that extend across
> multiple tiles.  It is mainly useful -- and very efficient -- for
> plugins that act on individual pixels.  Your plugin, because it needs
> to look at neighborhoods, does not fall into that category.

Correct. It would be worth nothing though that a plug-in that processes
the data row-by-row should make a call to gimp_tile_cache_ntiles() to
make sure that tiles can be cached on the plug-in side. With a tile
cache that is large enough to hold two rows of tiles, using
gimp_pixel_rgn_get_row() and set_row() shouldn't make much a of a
difference performance-wise.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux