[gimp] app: remove the legacy threshold lut code
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove the legacy threshold lut code
- Date: Wed, 2 May 2012 16:00:20 +0000 (UTC)
commit d0d50ca1ea2812f5c023735dff8ed33685e06010
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 15 11:24:33 2012 +0100
app: remove the legacy threshold lut code
app/base/lut-funcs.c | 40 ----------------------------------------
app/base/lut-funcs.h | 3 ---
2 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/app/base/lut-funcs.c b/app/base/lut-funcs.c
index f1b01cf..f7a2248 100644
--- a/app/base/lut-funcs.c
+++ b/app/base/lut-funcs.c
@@ -89,46 +89,6 @@ brightness_contrast_lut_new (gdouble brightness,
return lut;
}
-/* ---------------- Threshold ------------------ */
-
-static gfloat
-threshold_lut_func (gdouble *min,
- gint n_channels,
- gint channel,
- gfloat value)
-{
- /* don't change the alpha channel */
- if ((n_channels == 2 || n_channels == 4) && channel == n_channels -1)
- return value;
-
- if (value < *min)
- return 0.0;
-
- return 1.0;
-}
-
-static void
-threshold_lut_setup (GimpLut *lut,
- gdouble value,
- gint n_channels)
-{
- g_return_if_fail (lut != NULL);
-
- gimp_lut_setup_exact (lut,
- (GimpLutFunc) threshold_lut_func, &value, n_channels);
-}
-
-GimpLut *
-threshold_lut_new (gdouble value,
- gint n_channels)
-{
- GimpLut *lut = gimp_lut_new ();
-
- threshold_lut_setup (lut, value, n_channels);
-
- return lut;
-}
-
/* --------------- equalize ------------- */
typedef struct
diff --git a/app/base/lut-funcs.h b/app/base/lut-funcs.h
index f9c2ffb..f3bd53d 100644
--- a/app/base/lut-funcs.h
+++ b/app/base/lut-funcs.h
@@ -27,9 +27,6 @@ void brightness_contrast_lut_setup (GimpLut *lut,
gdouble contrast,
gint n_channels);
-GimpLut * threshold_lut_new (gdouble value,
- gint n_channels);
-
GimpLut * equalize_lut_new (GimpHistogram *histogram,
gint n_channels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]