[f-spot] Remove old unused redeye code.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Remove old unused redeye code.
- Date: Mon, 29 Jun 2009 14:31:00 +0000 (UTC)
commit 30daba21ace5669d9582d7b6c2ae0bfc8715b007
Author: Ruben Vermeersch <ruben savanne be>
Date: Mon Jun 29 16:30:33 2009 +0200
Remove old unused redeye code.
src/PixbufUtils.cs | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/PixbufUtils.cs b/src/PixbufUtils.cs
index b376855..d2e34cf 100644
--- a/src/PixbufUtils.cs
+++ b/src/PixbufUtils.cs
@@ -521,12 +521,6 @@ public class PixbufUtils {
return ret;
}
-#if OLDREDEYE
- [DllImport ("libfspot")]
- static extern void f_pixbuf_remove_redeye (IntPtr src);
-
- public static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area)
-#else
public unsafe static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area)
{
return RemoveRedeye (src, area, -15);
@@ -534,14 +528,9 @@ public class PixbufUtils {
public unsafe static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area, int threshold)
//threshold, factors and comparisons borrowed from the gimp plugin 'redeye.c' by Robert Merkel
-#endif
{
Gdk.Pixbuf copy = src.Copy ();
Gdk.Pixbuf selection = new Gdk.Pixbuf (copy, area.X, area.Y, area.Width, area.Height);
-#if OLREDEYE
- f_pixbuf_remove_redeye (selection.Handle);
- selection.Dispose ();
-#else
byte *spix = (byte *)selection.Pixels;
int h = selection.Height;
int w = selection.Width;
@@ -566,7 +555,6 @@ public class PixbufUtils {
spix += selection.Rowstride;
}
-#endif
return copy;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]