[gegl/samplers-api-rework] affine: adjust for api change renaming GeglInterpolation to GeglSamplerType



commit a85e4fe93f1606a8e76af46f6def559e3caf891f
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Sun Jul 3 17:40:50 2011 +0100

    affine: adjust for api change renaming GeglInterpolation to GeglSamplerType

 gegl/buffer/gegl-buffer.h  |    1 -
 operations/affine/affine.c |   12 ++++++------
 2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index e184328..95ec36d 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -390,7 +390,6 @@ void  gegl_sampler_get         (GeglSampler *self,
                                 GeglMatrix2 *scale,
                                 void        *output);
 
-
 /**
  * gegl_buffer_linear_new:
  * @extent: dimensions of buffer.
diff --git a/operations/affine/affine.c b/operations/affine/affine.c
index f5660eb..7516e6d 100644
--- a/operations/affine/affine.c
+++ b/operations/affine/affine.c
@@ -446,7 +446,7 @@ gegl_affine_get_bounding_box (GeglOperation *op)
   GeglSampler   *sampler;
 
   sampler = gegl_buffer_sampler_new (NULL, babl_format("RaGaBaA float"),
-      gegl_interpolation_from_string (affine->filter));
+      gegl_sampler_type_from_string (affine->filter));
   context_rect = sampler->context_rect[0];
   g_object_unref (sampler);
 
@@ -533,7 +533,7 @@ gegl_affine_get_required_for_output (GeglOperation       *op,
 
   requested_rect = *region;
   sampler = gegl_buffer_sampler_new (NULL, babl_format("RaGaBaA float"),
-      gegl_interpolation_from_string (affine->filter));
+      gegl_sampler_type_from_string (affine->filter));
   context_rect = sampler->context_rect[0];
   g_object_unref (sampler);
 
@@ -585,7 +585,7 @@ gegl_affine_get_invalidated_by_change (GeglOperation       *op,
   GeglRectangle      region = *input_region;
 
   sampler = gegl_buffer_sampler_new (NULL, babl_format("RaGaBaA float"),
-      gegl_interpolation_from_string (affine->filter));
+      gegl_sampler_type_from_string (affine->filter));
   context_rect = sampler->context_rect[0];
   g_object_unref (sampler);
 
@@ -889,7 +889,7 @@ gegl_affine_process (GeglOperation        *operation,
       src_rect.y += 1;
 
       sampler = gegl_buffer_sampler_new (input, babl_format("RaGaBaA float"),
-          gegl_interpolation_from_string (affine->filter));
+          gegl_sampler_type_from_string (affine->filter));
 
       src_rect.width -= sampler->context_rect[0].width;
       src_rect.height -= sampler->context_rect[0].height;
@@ -917,7 +917,7 @@ gegl_affine_process (GeglOperation        *operation,
       src_rect.x += 1;
 
       sampler = gegl_buffer_sampler_new (input, babl_format("RaGaBaA float"),
-          gegl_interpolation_from_string (affine->filter));
+          gegl_sampler_type_from_string (affine->filter));
 
       src_rect.width -= sampler->context_rect[0].width;
       src_rect.height -= sampler->context_rect[0].height;
@@ -936,7 +936,7 @@ gegl_affine_process (GeglOperation        *operation,
       output = gegl_operation_context_get_target (context, "output");
 
       sampler = gegl_buffer_sampler_new (input, babl_format("RaGaBaA float"),
-          gegl_interpolation_from_string (affine->filter));
+          gegl_sampler_type_from_string (affine->filter));
       affine_generic (output, input, &matrix, sampler);
       g_object_unref(sampler->buffer);
       sampler->buffer = NULL;



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