[gegl] fractal-trace: use a sampler instead of gegl_buffer_sample
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] fractal-trace: use a sampler instead of gegl_buffer_sample
- Date: Tue, 1 Jul 2014 06:06:03 +0000 (UTC)
commit 4ff7e70ef17f5fa4e16ba7ed43f5301b2e2e25ec
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jul 1 07:40:31 2014 +0200
fractal-trace: use a sampler instead of gegl_buffer_sample
operations/common/fractal-trace.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/fractal-trace.c b/operations/common/fractal-trace.c
index 916cf47..51d4452 100644
--- a/operations/common/fractal-trace.c
+++ b/operations/common/fractal-trace.c
@@ -129,6 +129,7 @@ fractaltrace (GeglBuffer *input,
gdouble scale_x, scale_y;
gdouble bailout2;
gfloat dest[4];
+ GeglSampler *sampler = gegl_buffer_sampler_new (input, format, GEGL_SAMPLER_NOHALO);
scale_x = (o->X2 - o->X1) / picture->width;
scale_y = (o->Y2 - o->Y1) / picture->height;
@@ -177,12 +178,12 @@ fractaltrace (GeglBuffer *input,
g_error (_("Unsupported fractal type"));
}
- gegl_buffer_sample (input, px, py, &scale, dest, format,
- GEGL_SAMPLER_NOHALO, o->abyss_policy);
+ gegl_sampler_get (sampler, px, py, &scale, dest, o->abyss_policy);
for (i = 0; i < 4; i++)
dst_buf[offset++] = dest[i];
}
+ g_object_unref (sampler);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]