[gegl] newsprint: adjust dotgain/gamma of cross pattern
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] newsprint: adjust dotgain/gamma of cross pattern
- Date: Fri, 24 Mar 2017 00:50:51 +0000 (UTC)
commit d41d2ca0439e00a9b9e4c2b9127e3a50813aa92e
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Mar 24 01:50:23 2017 +0100
newsprint: adjust dotgain/gamma of cross pattern
operations/common/newsprint.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/newsprint.c b/operations/common/newsprint.c
index d8c0490..cefc14f 100644
--- a/operations/common/newsprint.c
+++ b/operations/common/newsprint.c
@@ -157,7 +157,7 @@ float spachrotyze (
}
else if (pattern == 2) /* diamond */
{
- if (fabsf(wphase) + fabsf(qphase) < (part_white * 2) )
+ if ((fabsf(wphase) + fabsf(qphase))/2.0 < part_white )
acc += 1.0 / aa_sq;
}
else if (pattern == 3) /* dot-to-diamond-to-dot */
@@ -180,6 +180,7 @@ float spachrotyze (
}
else if (pattern == 4) /* cross */
{
+ part_white = powf (part_white, 2.0);
if (fabsf (wphase) < part_white)
acc += 1.0 / aa_sq;
else if (fabsf (qphase) < part_white)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]