gegl r2527 - in branches/branch2_zhangjb: . operations/frequency/tools



Author: zhangjb
Date: Fri Jul 11 16:41:17 2008
New Revision: 2527
URL: http://svn.gnome.org/viewvc/gegl?rev=2527&view=rev

Log:
* operations/frequency/tools/fourier.c: do not use encode/decode.


Modified:
   branches/branch2_zhangjb/ChangeLog
   branches/branch2_zhangjb/operations/frequency/tools/fourier.c

Modified: branches/branch2_zhangjb/operations/frequency/tools/fourier.c
==============================================================================
--- branches/branch2_zhangjb/operations/frequency/tools/fourier.c	(original)
+++ branches/branch2_zhangjb/operations/frequency/tools/fourier.c	Fri Jul 11 16:41:17 2008
@@ -71,47 +71,6 @@
   return TRUE;
 }
 
-gboolean encode(gdouble *pixelhandle, gint is_even)
-{
-  glong int_pixel = (glong)(*pixelhandle);
-
-  if (is_even != 1 && is_even != 0)
-    return FALSE;
-  if (*pixelhandle<0 && *pixelhandle>-1)
-    is_even = 5;
-  *pixelhandle -= int_pixel;  
-  int_pixel = 10 * int_pixel + is_even;
-  *pixelhandle += int_pixel;
-
-  return TRUE;
-}
-
-  
-gint decode(gdouble *pixelhandle)
-{
-  glong int_pixel = (glong)(*pixelhandle);
-  *pixelhandle -= int_pixel;
-  if (int_pixel == 5)
-    {
-      return 1;
-    }
-  else if (int_pixel%10 == 1)
-    {
-      *pixelhandle += int_pixel/10;
-      return 1;
-    }
-  else if (int_pixel%10 == -9)
-    {
-      *pixelhandle += int_pixel/10 - 1;
-      return 1;
-    }
-  else
-    {
-      *pixelhandle += int_pixel/10;
-      return 0;
-    }
-}
-
 gboolean
 homo_dft(gdouble *src_buf, fftw_complex *dst_buf, gint width, gint height)
 {



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