[gimp/goat-invasion] app: kill more clamping in a levels utility function
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion] app: kill more clamping in a levels utility function
- Date: Tue, 1 May 2012 11:25:47 +0000 (UTC)
commit 9a354ec5f853f5a0c2d97296e27a9c038eb0af2f
Author: Michael Natterer <mitch gimp org>
Date: Tue May 1 13:24:46 2012 +0200
app: kill more clamping in a levels utility function
app/gegl/gimpoperationlevels.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/gegl/gimpoperationlevels.c b/app/gegl/gimpoperationlevels.c
index c6e28dc..2c62670 100644
--- a/app/gegl/gimpoperationlevels.c
+++ b/app/gegl/gimpoperationlevels.c
@@ -179,12 +179,8 @@ gimp_operation_levels_map_input (GimpLevelsConfig *config,
else
value = (value - config->low_input[channel]);
- value = CLAMP (value, 0.0, 1.0);
-
if (config->gamma[channel] != 0.0)
- {
- value = pow (value, 1.0 / config->gamma[channel]);
- }
+ value = pow (value, 1.0 / config->gamma[channel]);
return value;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]