gimp r25405 - in trunk: . plug-ins/common



Author: mitch
Date: Mon Apr  7 22:04:15 2008
New Revision: 25405
URL: http://svn.gnome.org/viewvc/gimp?rev=25405&view=rev

Log:
2008-04-07  Michael Natterer  <mitch gimp org>

	* plug-ins/common/neon.c: renamed to...

	* plug-ins/common/edge-neon.c: ...this. Some formatting cleanup.

	* plug-ins/common/plugin-defs.pl: changed accordingly.

	* plug-ins/common/Makefile.am: regenerated.



Added:
   trunk/plug-ins/common/edge-neon.c
      - copied, changed from r25403, /trunk/plug-ins/common/neon.c
Removed:
   trunk/plug-ins/common/neon.c
Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/   (props changed)
   trunk/plug-ins/common/Makefile.am
   trunk/plug-ins/common/plugin-defs.pl

Modified: trunk/plug-ins/common/Makefile.am
==============================================================================
--- trunk/plug-ins/common/Makefile.am	(original)
+++ trunk/plug-ins/common/Makefile.am	Mon Apr  7 22:04:15 2008
@@ -85,6 +85,7 @@
 	edge \
 	edge-dog \
 	edge-laplace \
+	edge-neon \
 	edge-sobel \
 	emboss \
 	engrave \
@@ -115,7 +116,6 @@
 	max-rgb \
 	$(MNG) \
 	mosaic \
-	neon \
 	newsprint \
 	nl-filter \
 	noise-hsv \
@@ -963,6 +963,22 @@
 	$(RT_LIBS)		\
 	$(INTLLIBS)
 
+edge_neon_SOURCES = \
+	edge-neon.c
+
+edge_neon_LDADD = \
+	$(libgimpui)		\
+	$(libgimpwidgets)	\
+	$(libgimpmodule)	\
+	$(libgimp)		\
+	$(libgimpmath)		\
+	$(libgimpconfig)	\
+	$(libgimpcolor)		\
+	$(libgimpbase)		\
+	$(GTK_LIBS)		\
+	$(RT_LIBS)		\
+	$(INTLLIBS)
+
 edge_sobel_SOURCES = \
 	edge-sobel.c
 
@@ -1434,22 +1450,6 @@
 	$(RT_LIBS)		\
 	$(INTLLIBS)
 
-neon_SOURCES = \
-	neon.c
-
-neon_LDADD = \
-	$(libgimpui)		\
-	$(libgimpwidgets)	\
-	$(libgimpmodule)	\
-	$(libgimp)		\
-	$(libgimpmath)		\
-	$(libgimpconfig)	\
-	$(libgimpcolor)		\
-	$(libgimpbase)		\
-	$(GTK_LIBS)		\
-	$(RT_LIBS)		\
-	$(INTLLIBS)
-
 newsprint_SOURCES = \
 	newsprint.c
 

Copied: trunk/plug-ins/common/edge-neon.c (from r25403, /trunk/plug-ins/common/neon.c)
==============================================================================
--- /trunk/plug-ins/common/neon.c	(original)
+++ trunk/plug-ins/common/edge-neon.c	Mon Apr  7 22:04:15 2008
@@ -38,7 +38,7 @@
 
 
 #define PLUG_IN_PROC   "plug-in-neon"
-#define PLUG_IN_BINARY "neon"
+#define PLUG_IN_BINARY "edge-neon"
 
 
 typedef struct
@@ -52,41 +52,41 @@
  * Function prototypes.
  */
 
-static void      query  (void);
-static void      run    (const gchar      *name,
-                         gint              nparams,
-                         const GimpParam  *param,
-                         gint             *nreturn_vals,
-                         GimpParam       **return_vals);
-
-static void      neon                (GimpDrawable *drawable,
-                                      gdouble       radius,
-                                      gdouble       amount,
-                                      GimpPreview  *preview);
+static void      query               (void);
+static void      run                 (const gchar      *name,
+                                      gint              nparams,
+                                      const GimpParam  *param,
+                                      gint             *nreturn_vals,
+                                      GimpParam       **return_vals);
+
+static void      neon                (GimpDrawable     *drawable,
+                                      gdouble           radius,
+                                      gdouble           amount,
+                                      GimpPreview      *preview);
 
-static gboolean  neon_dialog         (GimpDrawable *drawable);
-static void      neon_preview_update (GimpPreview  *preview);
+static gboolean  neon_dialog         (GimpDrawable     *drawable);
+static void      neon_preview_update (GimpPreview      *preview);
 
 /*
  * Gaussian operator helper functions
  */
-static void      find_constants      (gdouble  n_p[],
-                                      gdouble  n_m[],
-                                      gdouble  d_p[],
-                                      gdouble  d_m[],
-                                      gdouble  bd_p[],
-                                      gdouble  bd_m[],
-                                      gdouble  std_dev);
-static void      transfer_pixels     (gdouble *src1,
-                                      gdouble *src2,
-                                      guchar  *dest,
-                                      gint     bytes,
-                                      gint     width);
-static void      combine_to_gradient (guchar  *dest,
-                                      guchar  *src2,
-                                      gint     bytes,
-                                      gint     width,
-                                      gdouble  amount);
+static void      find_constants      (gdouble           n_p[],
+                                      gdouble           n_m[],
+                                      gdouble           d_p[],
+                                      gdouble           d_m[],
+                                      gdouble           bd_p[],
+                                      gdouble           bd_m[],
+                                      gdouble           std_dev);
+static void      transfer_pixels     (gdouble          *src1,
+                                      gdouble          *src2,
+                                      guchar           *dest,
+                                      gint              bytes,
+                                      gint              width);
+static void      combine_to_gradient (guchar           *dest,
+                                      guchar           *src2,
+                                      gint              bytes,
+                                      gint              width,
+                                      gdouble           amount);
 
 
 /***** Local vars *****/
@@ -123,11 +123,11 @@
   };
 
   gchar *help_string =
-    "This filter works in a manner similar to the edge"
-    "plug-in, but uses the first derivative of the gaussian"
-    "operator to achieve resolution independence. The IIR"
-    "method of calculating the effect is utilized to keep"
-    "the processing time constant between large and small"
+    "This filter works in a manner similar to the edge "
+    "plug-in, but uses the first derivative of the gaussian "
+    "operator to achieve resolution independence. The IIR "
+    "method of calculating the effect is utilized to keep "
+    "the processing time constant between large and small "
     "standard deviations.";
 
   gimp_install_procedure (PLUG_IN_PROC,

Modified: trunk/plug-ins/common/plugin-defs.pl
==============================================================================
--- trunk/plug-ins/common/plugin-defs.pl	(original)
+++ trunk/plug-ins/common/plugin-defs.pl	Mon Apr  7 22:04:15 2008
@@ -47,6 +47,7 @@
     'displace' => { ui => 1 },
     'edge' => { ui => 1 },
     'edge-dog' => { ui => 1 },
+    'edge-neon' => { ui => 1 },
     'edge-laplace' => {},
     'edge-sobel' => { ui => 1 },
     'emboss' => { ui => 1 },
@@ -78,7 +79,6 @@
     'max-rgb' => { ui => 1 },
     'mng' => { ui => 1, optional => 1 },
     'mosaic' => { ui => 1 },
-    'neon' => { ui => 1 },
     'newsprint' => { ui => 1 },
     'nl-filter' => { ui => 1 },
     'noise-hsv' => { ui => 1 },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]