[gegl] perf: make rotate-nearest really use nearest sampler
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] perf: make rotate-nearest really use nearest sampler
- Date: Sun, 15 Jun 2014 02:16:28 +0000 (UTC)
commit 2677ebe7be7fbb82d57863f8d4c344e17e324d80
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jun 15 04:16:03 2014 +0200
perf: make rotate-nearest really use nearest sampler
perf/Makefile.am | 2 +-
perf/test-rotate.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/perf/Makefile.am b/perf/Makefile.am
index d9d25f0..df85665 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -33,7 +33,7 @@ AM_CFLAGS = \
perf-report: check
check:
- for a in $(noinst_PROGRAMS);do ./$$a;done;true
+ for a in $(noinst_PROGRAMS);do GEGL_PATH=../operations ./$$a;done;true
test_rotate_SOURCES = test-rotate.c
test_blur_SOURCES = test-blur.c
diff --git a/perf/test-rotate.c b/perf/test-rotate.c
index c5ebb7a..e21923b 100644
--- a/perf/test-rotate.c
+++ b/perf/test-rotate.c
@@ -24,10 +24,9 @@ main (gint argc,
g_object_unref (gegl);
-
gegl = gegl_node_new ();
source = gegl_node_new_child (gegl, "operation", "gegl:buffer-source", "buffer", buffer, NULL);
- rotate = gegl_node_new_child (gegl, "operation", "gegl:rotate", "degrees", 4.0, GEGL_SAMPLER_NEAREST,
NULL);
+ rotate = gegl_node_new_child (gegl, "operation", "gegl:rotate", "degrees", 4.0, "sampler",
GEGL_SAMPLER_NEAREST, NULL);
sink = gegl_node_new_child (gegl, "operation", "gegl:buffer-sink", "buffer", &buffer2, NULL);
gegl_node_link_many (source, rotate, sink, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]