[gegl/wip/rishi/my-patches: 2/7] tests: Test gegl:shadows-highlights in all natively supported formats
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/rishi/my-patches: 2/7] tests: Test gegl:shadows-highlights in all natively supported formats
- Date: Tue, 21 Nov 2017 17:18:34 +0000 (UTC)
commit 4e1d847923278f2870231b126b6c57b9a433a7b8
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Nov 16 09:48:35 2017 +0100
tests: Test gegl:shadows-highlights in all natively supported formats
https://bugzilla.gnome.org/show_bug.cgi?id=790438
tests/compositions/Makefile.am | 1 +
.../compositions/reference/shadows-highlights.png | Bin 0 -> 1156979 bytes
tests/compositions/shadows-highlights.xml | 49 ++++++++++++++++++++
3 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index bf36e82..9555271 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -52,6 +52,7 @@ TESTS = \
rotate-on-center.xml \
simple-scale.xml \
scale-size-keepaspect.xml \
+ shadows-highlights.xml \
sinus.xml \
stretch-contrast.xml \
supernova.xml \
diff --git a/tests/compositions/reference/shadows-highlights.png
b/tests/compositions/reference/shadows-highlights.png
new file mode 100644
index 0000000..6ec49a0
Binary files /dev/null and b/tests/compositions/reference/shadows-highlights.png differ
diff --git a/tests/compositions/shadows-highlights.xml b/tests/compositions/shadows-highlights.xml
new file mode 100644
index 0000000..6f3b059
--- /dev/null
+++ b/tests/compositions/shadows-highlights.xml
@@ -0,0 +1,49 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>256.0</param>
+ <param name='y'>0.0</param>
+ <param name='width'>256.0</param>
+ <param name='height'>384.0</param>
+ </params>
+ </node>
+ <node operation='gegl:shadows-highlights'>
+ <params>
+ <param name='highlights'>-60.0</param>
+ <param name='shadows'>60.0</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>RGBA float</param>
+ </params>
+ </node>
+ <clone ref='clone0'/>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0.0</param>
+ <param name='y'>0.0</param>
+ <param name='width'>256.0</param>
+ <param name='height'>384.0</param>
+ </params>
+ </node>
+ <node operation='gegl:shadows-highlights'>
+ <params>
+ <param name='highlights'>-60.0</param>
+ <param name='shadows'>60.0</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>RGB float</param>
+ </params>
+ </node>
+ <node operation='gegl:load' id='clone0'>
+ <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]