[gegl] buffer: use sampler class' fish
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: use sampler class' fish
- Date: Sun, 22 Apr 2012 21:54:45 +0000 (UTC)
commit 6d41ee2a6a3f163427c958eea5e8e671a8116fad
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sun Apr 22 23:53:46 2012 +0200
buffer: use sampler class' fish
For every nearest neighbour sampled pixel a fish was being looked up from
cache, unneccesarily.
gegl/buffer/gegl-sampler-nearest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 46fd9a1..0951126 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -80,7 +80,7 @@ gegl_sampler_nearest_get (GeglSampler *self,
{
gfloat *sampler_bptr;
sampler_bptr = gegl_sampler_get_from_buffer (self, (gint)x, (gint)y);
- babl_process (babl_fish (self->interpolate_format, self->format), sampler_bptr, output, 1);
+ babl_process (self->fish, sampler_bptr, output, 1);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]