[gegl] tests: add a test case for gegl:tile



commit cb4dd75334d7f4c7716a129f443c9a419d620f58
Author: Téo Mazars <teomazars gmail com>
Date:   Sun Dec 1 15:46:05 2013 +0100

    tests: add a test case for gegl:tile

 tests/compositions/Makefile.am        |    3 ++-
 tests/compositions/reference/tile.png |  Bin 0 -> 100407 bytes
 tests/compositions/tile.xml           |   29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 5704e05..7fdf5cb 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -55,7 +55,8 @@ NO_OPENCL_TESTS = \
   shift.xml                     \
   stretch-contrast-hsv.xml      \
   pnm-raw-load.xml              \
-  pnm-ascii-load.xml
+  pnm-ascii-load.xml            \
+  tile.xml
 
 # Conditional tests
 if HAVE_JASPER
diff --git a/tests/compositions/reference/tile.png b/tests/compositions/reference/tile.png
new file mode 100644
index 0000000..1c29ea4
Binary files /dev/null and b/tests/compositions/reference/tile.png differ
diff --git a/tests/compositions/tile.xml b/tests/compositions/tile.xml
new file mode 100644
index 0000000..bba7a01
--- /dev/null
+++ b/tests/compositions/tile.xml
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:crop'>
+    <params>
+      <param name='width'>136</param>
+      <param name='height'>213</param>
+    </params>
+  </node>
+  <node operation='gegl:tile'>
+    <params>
+      <param name='offset-x'>2</param>
+      <param name='offset-y'>13</param>
+    </params>
+  </node>
+  <node operation='gegl:scale-ratio'>
+    <params>
+      <param name='origin-x'>0.000000</param>
+      <param name='origin-y'>0.000000</param>
+      <param name='sampler'>linear</param>
+      <param name='x'>0.200000</param>
+      <param name='y'>0.200000</param>
+    </params>
+  </node>
+  <node operation='gegl:load'>
+    <params>
+      <param name='path'>data/car-stack.png</param>
+    </params>
+  </node>
+</gegl>


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