gegl r1834 - in trunk: . operations/workshop



Author: ok
Date: Wed Jan  9 02:35:10 2008
New Revision: 1834
URL: http://svn.gnome.org/viewvc/gegl?rev=1834&view=rev

Log:
* operations/workshop/mandelbrot.c: do not compute all of mandelbrot
in first processing go, as well as reduce the defined reigon.


Modified:
   trunk/ChangeLog
   trunk/operations/workshop/mandelbrot.c

Modified: trunk/operations/workshop/mandelbrot.c
==============================================================================
--- trunk/operations/workshop/mandelbrot.c	(original)
+++ trunk/operations/workshop/mandelbrot.c	Wed Jan  9 02:35:10 2008
@@ -28,9 +28,10 @@
 #define GEGL_CHANT_SELF           "mandelbrot.c"
 #define GEGL_CHANT_DESCRIPTION    "Mandelbrot renderer."
 #define GEGL_CHANT_CATEGORIES     "render"
+#define GEGL_CHANT_PREPARE
+#define GEGL_CHANT_CLASS_INIT
 
 #define GEGL_CHANT_SOURCE
-#define GEGL_CHANT_PREPARE
 
 #include "gegl-chant.h"
 
@@ -83,6 +84,7 @@
 
     buf = g_malloc (result->width * result->height * pxsize);
 
+
       {
         gfloat *dst=buf;
         gint y;
@@ -113,16 +115,19 @@
     g_free (buf);
   }
 
-  gegl_node_context_set_object (context, "output", G_OBJECT (output));
-
   return  TRUE;
 }
 
 static GeglRectangle
 get_defined_region (GeglOperation *operation)
 {
-  GeglRectangle result = {-10000000,-10000000, 20000000, 20000000};
+  GeglRectangle result = {-256,-256, 1024, 1024};
   return result;
 }
 
+static void class_init (GeglOperationClass *klass)
+{
+  klass->adjust_result_region = NULL;
+}
+
 #endif



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