gegl r2487 - in trunk: . gegl/buffer



Author: ok
Date: Thu Jun 19 18:37:16 2008
New Revision: 2487
URL: http://svn.gnome.org/viewvc/gegl?rev=2487&view=rev

Log:
* gegl/buffer/gegl-sampler.c: (gegl_sampler_get_from_buffer): fetch
the 64x64 context buffer based on the specific requested pixel and
not the center of interpolation. We might want to split this down
so that we can ensure that the needed context exist in the 64x64
buffer, thus allowing the samplers to rely on the context being
available within a 64 pixels wide buffer.


Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-sampler.c

Modified: trunk/gegl/buffer/gegl-sampler.c
==============================================================================
--- trunk/gegl/buffer/gegl-sampler.c	(original)
+++ trunk/gegl/buffer/gegl-sampler.c	Thu Jun 19 18:37:16 2008
@@ -204,8 +204,8 @@
      {
        GeglRectangle  fetch_rectangle/* = sampler->context_rect*/;
 
-       fetch_rectangle.x = (gint) sampler->x;
-       fetch_rectangle.y = (gint) sampler->y;
+       fetch_rectangle.x = x;
+       fetch_rectangle.y = y;
 
        /* we override the fetch rectangle needed by the sampler, hoping that
         * the extra pixels we fetch comes in useful in subsequent requests,



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