[gegl] Add tests for transform op



commit c0a8de050ffd3e5417a8be587924017935946323
Author: �yvind Kolås <pippin gimp org>
Date:   Sat Mar 20 18:16:23 2010 +0000

    Add tests for transform op

 tests/compositions/composite-transform.xml         |   37 ++++++++++++++++++++
 .../compositions/reference/composite-transform.png |  Bin 0 -> 16378 bytes
 tests/compositions/reference/transform.png         |  Bin 0 -> 16330 bytes
 tests/compositions/transform.xml                   |   30 ++++++++++++++++
 4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/composite-transform.xml b/tests/compositions/composite-transform.xml
new file mode 100644
index 0000000..087ebd9
--- /dev/null
+++ b/tests/compositions/composite-transform.xml
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:over'>
+      <node operation='gegl:translate'>
+          <params>
+            <param name='x'>100.000000</param>
+            <param name='y'>100.000000</param>
+          </params>
+      </node>
+      <!-- Used to break the composition, to render initial reference -->
+      <node operation='gegl:nop'/> 
+      <node operation='gegl:scale'>
+          <params>
+            <param name='origin-x'>0.000000</param>
+            <param name='origin-y'>0.000000</param>
+            <param name='filter'>linear</param>
+            <param name='hard-edges'>false</param>
+            <param name='lanczos-width'>3</param>
+            <param name='x'>0.500000</param>
+            <param name='y'>0.500000</param>
+        </params>
+     </node>
+        <node operation='gegl:load'>
+           <params>
+              <param name='path'>data/gegl.png</param>
+           </params>
+       </node>
+   </node>
+  <node operation='gegl:crop'>
+     <params>
+         <param name='width'>400</param>
+         <param name='height'>400</param>
+    </params>
+  </node>
+  <node operation='gegl:checkerboard'>
+  </node>
+</gegl>
diff --git a/tests/compositions/reference/composite-transform.png b/tests/compositions/reference/composite-transform.png
new file mode 100644
index 0000000..b9b5d10
Binary files /dev/null and b/tests/compositions/reference/composite-transform.png differ
diff --git a/tests/compositions/reference/transform.png b/tests/compositions/reference/transform.png
new file mode 100644
index 0000000..d291b85
Binary files /dev/null and b/tests/compositions/reference/transform.png differ
diff --git a/tests/compositions/transform.xml b/tests/compositions/transform.xml
new file mode 100644
index 0000000..84b590c
--- /dev/null
+++ b/tests/compositions/transform.xml
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:over'>
+      <node operation='gegl:scale'>
+          <params>
+            <param name='origin-x'>0.000000</param>
+            <param name='origin-y'>0.000000</param>
+            <param name='filter'>linear</param>
+            <param name='hard-edges'>false</param>
+            <param name='lanczos-width'>3</param>
+            <param name='x'>0.500000</param>
+            <param name='y'>0.500000</param>
+        </params>
+     </node>
+        <node operation='gegl:load'>
+           <params>
+              <param name='path'>data/gegl.png</param>
+           </params>
+       </node>
+   </node>
+   
+  <node operation='gegl:crop'>
+     <params>
+         <param name='width'>400</param>
+         <param name='height'>400</param>
+    </params>
+  </node>
+  <node operation='gegl:checkerboard'>
+  </node>
+</gegl>



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