Commit e58c57f1 authored by Barak Itkin's avatar Barak Itkin
Browse files

Rename GEGL_INTERPOLATION_* according to commit 500bef58

parent 066d360e
......@@ -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];
}
......
......@@ -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];
......
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment