[gegl/soc-2011-seamless-clone: 17/17] Rename GEGL_INTERPOLATION_* according to commit 500bef586



commit 9bcb1c06b366b09bc855f895bd6076c7110aad7e
Author: Barak Itkin <lightningismyname gmail com>
Date:   Sat Mar 17 20:55:03 2012 +0200

    Rename GEGL_INTERPOLATION_* according to commit 500bef586

 operations/common/seamless-clone/find-outline.c    |    2 +-
 .../common/seamless-clone/seamless-clone-render.c  |    6 +++---
 operations/common/seamless-clone/seamless-clone.c  |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/operations/common/seamless-clone/find-outline.c b/operations/common/seamless-clone/find-outline.c
index ddf3d49..26dc93e 100644
--- a/operations/common/seamless-clone/find-outline.c
+++ b/operations/common/seamless-clone/find-outline.c
@@ -102,7 +102,7 @@ static inline gfloat
 sc_sample_alpha (GeglBuffer *buf, gint x, gint y, Babl *format)
 {
   gfloat col[4] = {0, 0, 0, 0};
-  gegl_buffer_sample (buf, x, y, NULL, col, format, GEGL_INTERPOLATION_NEAREST);
+  gegl_buffer_sample (buf, x, y, NULL, col, format, GEGL_SAMPLER_NEAREST);
   return col[3];
 }
 
diff --git a/operations/common/seamless-clone/seamless-clone-render.c b/operations/common/seamless-clone/seamless-clone-render.c
index ce4bf90..defc1de 100644
--- a/operations/common/seamless-clone/seamless-clone-render.c
+++ b/operations/common/seamless-clone/seamless-clone-render.c
@@ -136,9 +136,9 @@ sc_point_to_color_func (P2tRPoint *point,
 
 #undef sc_rect_contains
 
-      gegl_buffer_sample (cci->aux_buf, pt->x, pt->y, NULL, aux_c, format, GEGL_INTERPOLATION_NEAREST);
+      gegl_buffer_sample (cci->aux_buf, pt->x, pt->y, NULL, aux_c, format, GEGL_SAMPLER_NEAREST);
       /* Sample the BG with the offset */
-      gegl_buffer_sample (cci->input_buf, pt->x + cci->x, pt->y + cci->y, NULL, input_c, format, GEGL_INTERPOLATION_NEAREST);
+      gegl_buffer_sample (cci->input_buf, pt->x + cci->x, pt->y + cci->y, NULL, input_c, format, GEGL_SAMPLER_NEAREST);
       
       dest_c[0] += weight * (input_c[0] - aux_c[0]);
       dest_c[1] += weight * (input_c[1] - aux_c[1]);
@@ -226,7 +226,7 @@ process (GeglOperation       *operation,
         gfloat aux_c[4];
         gdouble Px = imcfg.min_x + x * imcfg.step_x;
         gdouble Py = imcfg.min_y + y * imcfg.step_y;
-        gegl_buffer_sample (aux, Px, Py, NULL, aux_c, format, GEGL_INTERPOLATION_NEAREST);
+        gegl_buffer_sample (aux, Px, Py, NULL, aux_c, format, GEGL_SAMPLER_NEAREST);
         *pixel++ += aux_c[0];
         *pixel++ += aux_c[1];
         *pixel++ += aux_c[2];
diff --git a/operations/common/seamless-clone/seamless-clone.c b/operations/common/seamless-clone/seamless-clone.c
index 56c6fe0..903411a 100644
--- a/operations/common/seamless-clone/seamless-clone.c
+++ b/operations/common/seamless-clone/seamless-clone.c
@@ -114,8 +114,8 @@ sc_point_to_color_func (P2tRPoint *point,
       gdouble weight = g_array_index (sl->weights, gdouble, i);
       // g_print ("%f+",weight);
 
-      gegl_buffer_sample (cci->aux_buf, pt->x, pt->y, NULL, aux_c, format, GEGL_INTERPOLATION_NEAREST);
-      gegl_buffer_sample (cci->input_buf, pt->x, pt->y, NULL, input_c, format, GEGL_INTERPOLATION_NEAREST);
+      gegl_buffer_sample (cci->aux_buf, pt->x, pt->y, NULL, aux_c, format, GEGL_SAMPLER_NEAREST);
+      gegl_buffer_sample (cci->input_buf, pt->x, pt->y, NULL, input_c, format, GEGL_SAMPLER_NEAREST);
       
       dest_c[0] += weight * (input_c[0] - aux_c[0]);
       dest_c[1] += weight * (input_c[1] - aux_c[1]);
@@ -219,7 +219,7 @@ process (GeglOperation       *operation,
         gfloat aux_c[4];
         gdouble Px = imcfg.min_x + x * imcfg.step_x;
         gdouble Py = imcfg.min_y + y * imcfg.step_y;
-        gegl_buffer_sample (aux, Px, Py, NULL, aux_c, format, GEGL_INTERPOLATION_NEAREST);
+        gegl_buffer_sample (aux, Px, Py, NULL, aux_c, format, GEGL_SAMPLER_NEAREST);
         *pixel++ += aux_c[0];
         *pixel++ += aux_c[1];
         *pixel++ += aux_c[2];



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