gegl r2488 - in trunk: . gegl/buffer operations/affine



Author: ok
Date: Thu Jun 19 23:54:51 2008
New Revision: 2488
URL: http://svn.gnome.org/viewvc/gegl?rev=2488&view=rev

Log:
* gegl/buffer/gegl-sampler.c: (gegl_sampler_prepare): reset the
valid rectangle when prepare is called.
* operations/affine/affine.c: (process): reset the valid rectangle
before starting processing.


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

Modified: trunk/gegl/buffer/gegl-sampler.c
==============================================================================
--- trunk/gegl/buffer/gegl-sampler.c	(original)
+++ trunk/gegl/buffer/gegl-sampler.c	Thu Jun 19 23:54:51 2008
@@ -131,6 +131,11 @@
   if (klass->prepare)
     klass->prepare (self);
 
+  /* this makes the cache rect invalid, in case the data in the buffer has
+   * changed
+  */
+  self->sampler_rectangle.width=0;
+  self->sampler_rectangle.height=0;
 #if 0
   if (self->cache_buffer) /* to force a regetting of the region, even
                              if the cached getter might be valid

Modified: trunk/operations/affine/affine.c
==============================================================================
--- trunk/operations/affine/affine.c	(original)
+++ trunk/operations/affine/affine.c	Thu Jun 19 23:54:51 2008
@@ -740,6 +740,7 @@
     {
       /* XXX: add back more samplers */
       g_object_set(affine->sampler, "buffer", input, NULL);
+      gegl_sampler_prepare (affine->sampler);
       affine_generic (output, input, affine->matrix, affine->sampler);
       g_object_unref(affine->sampler->buffer);
       affine->sampler->buffer = NULL;



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