gegl r1621 - in trunk: . gegl/buffer



Author: ok
Date: 2007-09-11 18:16:14 +0100 (Tue, 11 Sep 2007)
New Revision: 1621
ViewCVS link: http://svn.gnome.org/viewcvs/gegl?rev=1621&view=rev

Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-interpolator-linear.c
   trunk/gegl/buffer/gegl-interpolator-nearest.c
   trunk/gegl/buffer/gegl-interpolator.c
   trunk/gegl/buffer/gegl-interpolator.h
Log:
Reworked GeglInterpolator framework to use a small context cache
buffer. Only properly implemented for nearest neighbour and bi-linear
for now.
* gegl/buffer/gegl-interpolator.c: use a cache-buffer of 16x16 pixels
as the source buffer for doing interpolations.
* gegl/buffer/gegl-interpolator.h: s/->input/->buffer/, added
context_pixels which indicates the neighbourhood needed by an
interpolator.
* gegl/buffer/gegl-interpolator-linear.c: changed the factors used
around to achieve correct interpolation. Modified to work with the new
smaller linear cache-buffer. Override the default from
GeglInterpolator of 0 context to be 1px radius of context.
* gegl/buffer/gegl-interpolator-nearest.c: modified to work with
the new smaller linear cache-buffer.





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