aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-16 15:05:18 +0200
committerMattias Andrée <maandree@kth.se>2016-07-16 15:05:18 +0200
commita8241fff9f445cdcd86e206a039f95d5639a3ba0 (patch)
tree48136573efa752abd39026ea8989211d68d90265 /src/test.c
parentdoc (diff)
downloadlibclut-a8241fff9f445cdcd86e206a039f95d5639a3ba0.tar.gz
libclut-a8241fff9f445cdcd86e206a039f95d5639a3ba0.tar.bz2
libclut-a8241fff9f445cdcd86e206a039f95d5639a3ba0.tar.xz
Improve libclut_sigmoid
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c
index 6b24f70..f6dc9d1 100644
--- a/src/test.c
+++ b/src/test.c
@@ -252,6 +252,8 @@ int main(int argc, char *argv[])
t2.blue[i] = t2.green[i] = t2.red[i] = (uint16_t)(x * UINT16_MAX);
}
libclut_sigmoid(&t1, UINT16_MAX, uint16_t, &param, &param, &param);
+ t1.blue[0] = t1.green[0] = t1.red[0] = t2.red[0];
+ t1.blue[255] = t1.green[255] = t1.red[255] = t2.red[255];
if (clutcmp(&t1, &t2, 0))
printf("libclut_sigmoid failed\n"), rc = 1;