[gegl/wip/rishi/my-patches: 3/8] tests: Test gegl:exposure in all natively supported formats
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/rishi/my-patches: 3/8] tests: Test gegl:exposure in all natively supported formats
- Date: Tue, 21 Nov 2017 17:57:43 +0000 (UTC)
commit 8b4b8590c528ed61ecbbda663498f237c124fe16
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Nov 16 09:30:04 2017 +0100
tests: Test gegl:exposure in all natively supported formats
https://bugzilla.gnome.org/show_bug.cgi?id=790439
tests/compositions/Makefile.am | 1 +
tests/compositions/exposure.xml | 93 +++++++++++++++++++++++++++++
tests/compositions/reference/exposure.png | Bin 0 -> 729929 bytes
3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 9555271..c490b3f 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -30,6 +30,7 @@ TESTS = \
composite-transform.xml \
contrast-curve.xml \
edge.xml \
+ exposure.xml \
fattal02.xml \
gegl.xml \
gamma.xml \
diff --git a/tests/compositions/exposure.xml b/tests/compositions/exposure.xml
new file mode 100644
index 0000000..1191c7f
--- /dev/null
+++ b/tests/compositions/exposure.xml
@@ -0,0 +1,93 @@
+<?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'>192.0</param>
+ <param name='width'>256.0</param>
+ <param name='height'>192.0</param>
+ </params>
+ </node>
+ <node operation='gegl:exposure'>
+ <params>
+ <param name='black-level'>0.03</param>
+ <param name='exposure'>-1.0</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>YA float</param>
+ </params>
+ </node>
+ <clone ref='clone0'/>
+ </node>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0.0</param>
+ <param name='y'>192.0</param>
+ <param name='width'>256.0</param>
+ <param name='height'>192.0</param>
+ </params>
+ </node>
+ <node operation='gegl:exposure'>
+ <params>
+ <param name='black-level'>0.03</param>
+ <param name='exposure'>-1.0</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>Y float</param>
+ </params>
+ </node>
+ <clone ref='clone0'/>
+ </node>
+ <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'>192.0</param>
+ </params>
+ </node>
+ <node operation='gegl:exposure'>
+ <params>
+ <param name='black-level'>0.03</param>
+ <param name='exposure'>-1.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'>192.0</param>
+ </params>
+ </node>
+ <node operation='gegl:exposure'>
+ <params>
+ <param name='black-level'>0.03</param>
+ <param name='exposure'>-1.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>
diff --git a/tests/compositions/reference/exposure.png b/tests/compositions/reference/exposure.png
new file mode 100644
index 0000000..d9dec47
Binary files /dev/null and b/tests/compositions/reference/exposure.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]