[gimp] app: remove clamps from addition, subtract and grain blend modes
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove clamps from addition, subtract and grain blend modes
- Date: Sat, 14 Jan 2017 20:08:19 +0000 (UTC)
commit f01374798ece3cf15f9f68a0b1cd40cab95e92c6
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Jan 14 21:06:03 2017 +0100
app: remove clamps from addition, subtract and grain blend modes
app/operations/layer-modes/gimpoperationaddition.c | 1 -
.../layer-modes/gimpoperationgrainextract.c | 1 -
.../layer-modes/gimpoperationgrainmerge.c | 1 -
app/operations/layer-modes/gimpoperationsubtract.c | 1 -
4 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationaddition.c
b/app/operations/layer-modes/gimpoperationaddition.c
index 27a7c79..df412f9 100644
--- a/app/operations/layer-modes/gimpoperationaddition.c
+++ b/app/operations/layer-modes/gimpoperationaddition.c
@@ -109,7 +109,6 @@ gimp_operation_addition_process_pixels (gfloat *in,
gfloat comp = in[b] + layer[b];
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
- out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else
diff --git a/app/operations/layer-modes/gimpoperationgrainextract.c
b/app/operations/layer-modes/gimpoperationgrainextract.c
index 05c0793..a298f99 100644
--- a/app/operations/layer-modes/gimpoperationgrainextract.c
+++ b/app/operations/layer-modes/gimpoperationgrainextract.c
@@ -110,7 +110,6 @@ gimp_operation_grain_extract_process_pixels (gfloat *in,
gfloat comp = in[b] - layer[b] + 0.5;
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
- out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else
diff --git a/app/operations/layer-modes/gimpoperationgrainmerge.c
b/app/operations/layer-modes/gimpoperationgrainmerge.c
index cd626fb..f822225 100644
--- a/app/operations/layer-modes/gimpoperationgrainmerge.c
+++ b/app/operations/layer-modes/gimpoperationgrainmerge.c
@@ -109,7 +109,6 @@ gimp_operation_grain_merge_process_pixels (gfloat *in,
gfloat comp = in[b] + layer[b] - 0.5;
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
- out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else
diff --git a/app/operations/layer-modes/gimpoperationsubtract.c
b/app/operations/layer-modes/gimpoperationsubtract.c
index 152c615..6fbc5e4 100644
--- a/app/operations/layer-modes/gimpoperationsubtract.c
+++ b/app/operations/layer-modes/gimpoperationsubtract.c
@@ -108,7 +108,6 @@ gimp_operation_subtract_process_pixels (gfloat *in,
{
gfloat comp = in[b] - layer[b];
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
- out[b] = CLAMP(out[b], 0.0, 1.0);
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]