gegl r2341 - in branches/branch_zhangjb: . operations/frequency operations/frequency/tools



Author: zhangjb
Date: Fri May 23 11:10:38 2008
New Revision: 2341
URL: http://svn.gnome.org/viewvc/gegl?rev=2341&view=rev

Log:
* operations/frequency/preview-frequency-grey.c: add a testing line to output the region of input.
* operations/frequency/tools/display.c: delete the testing codes.


Modified:
   branches/branch_zhangjb/ChangeLog
   branches/branch_zhangjb/operations/frequency/preview-frequency-grey.c
   branches/branch_zhangjb/operations/frequency/tools/display.c

Modified: branches/branch_zhangjb/operations/frequency/preview-frequency-grey.c
==============================================================================
--- branches/branch_zhangjb/operations/frequency/preview-frequency-grey.c	(original)
+++ branches/branch_zhangjb/operations/frequency/preview-frequency-grey.c	Fri May 23 11:10:38 2008
@@ -57,6 +57,10 @@
   gint height = gegl_buffer_get_height(input);
   gdouble *src_buf;
   gdouble *dst_buf;
+  
+#if 1
+  printf("get_width(input)=%d, get_height(input)=%d\n", width, height);
+#endif
 
   src_buf = g_new0(gdouble, 2*height*FFT_HALF(width));
   gegl_buffer_get(input, 1.0, 

Modified: branches/branch_zhangjb/operations/frequency/tools/display.c
==============================================================================
--- branches/branch_zhangjb/operations/frequency/tools/display.c	(original)
+++ branches/branch_zhangjb/operations/frequency/tools/display.c	Fri May 23 11:10:38 2008
@@ -148,18 +148,6 @@
       dst_buf[x] = sqrt(dst_real_buf[x]*dst_real_buf[x]+dst_imag_buf[x]*dst_imag_buf[x]);
     }
   
-#if 1
-  printf("output: width = %d, height = %d\n", FFT_HALF(width), height);
-  for (y=0; y<height; y++)
-    {
-      for (x=0; x<FFT_HALF(width); x++)
-        {
-          printf("%lf\t", src_buf[ELEM_ID_MATRIX(x, y, FFT_HALF(width))][0]);
-        }
-      printf("\n");
-    }
-#endif
-  
   zoomshow(dst_buf, samples);
   // shift_dft(dst_buf, width, height);
 



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