[gimp/goat-invasion] app: remove clamping from GimpOperationLevels, it was at a fishy place anyway
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion] app: remove clamping from GimpOperationLevels, it was at a fishy place anyway
- Date: Mon, 30 Apr 2012 18:36:04 +0000 (UTC)
commit c36ac75af9fb5c02f2164d711f8e3deef9dd27a1
Author: Michael Natterer <mitch gimp org>
Date: Mon Apr 30 20:35:27 2012 +0200
app: remove clamping from GimpOperationLevels, it was at a fishy place anyway
app/gegl/gimpoperationlevels.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/app/gegl/gimpoperationlevels.c b/app/gegl/gimpoperationlevels.c
index 07602c7..c6e28dc 100644
--- a/app/gegl/gimpoperationlevels.c
+++ b/app/gegl/gimpoperationlevels.c
@@ -93,13 +93,8 @@ gimp_operation_levels_map (gdouble value,
else
value = (value - low_input);
- /* clamp to new black and white points */
- value = CLAMP (value, 0.0, 1.0);
-
if (inv_gamma != 1.0)
- {
- value = pow ( value, inv_gamma);
- }
+ value = pow (value, inv_gamma);
/* determine the output intensity */
if (high_output >= low_output)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]