[gegl/wip/rishi/my-patches: 5/8] tests: Test gegl:saturation in all natively supported formats
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/rishi/my-patches: 5/8] tests: Test gegl:saturation in all natively supported formats
- Date: Tue, 21 Nov 2017 17:57:53 +0000 (UTC)
commit 20c3830bb72470b78ea085f32fcb60af534fdea5
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Nov 16 11:03:19 2017 +0100
tests: Test gegl:saturation in all natively supported formats
https://bugzilla.gnome.org/show_bug.cgi?id=790439
tests/compositions/Makefile.am | 1 +
tests/compositions/reference/saturation.png | Bin 0 -> 1171130 bytes
tests/compositions/saturation.xml | 89 +++++++++++++++++++++++++++
3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index c490b3f..cfaf5e7 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -69,6 +69,7 @@ NO_OPENCL_TESTS = \
color-reduction.xml \
rgbe-load.xml \
rgbe-save.xml \
+ saturation.xml \
shift.xml \
stretch-contrast-hsv.xml \
pnm-raw-load.xml \
diff --git a/tests/compositions/reference/saturation.png b/tests/compositions/reference/saturation.png
new file mode 100644
index 0000000..4118b2e
Binary files /dev/null and b/tests/compositions/reference/saturation.png differ
diff --git a/tests/compositions/saturation.xml b/tests/compositions/saturation.xml
new file mode 100644
index 0000000..0f6961c
--- /dev/null
+++ b/tests/compositions/saturation.xml
@@ -0,0 +1,89 @@
+<?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:saturation'>
+ <params>
+ <param name='scale'>1.5</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>CIE LCH(ab) alpha 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:saturation'>
+ <params>
+ <param name='scale'>1.5</param>
+ </params>
+ </node>
+ <node operation='gegl:convert-format'>
+ <params>
+ <param name='format'>CIE LCH(ab) 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:saturation'>
+ <params>
+ <param name='scale'>1.5</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:saturation'>
+ <params>
+ <param name='scale'>1.5</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]