gegl r2371 - in trunk: . gegl/operation



Author: ok
Date: Mon Jun  2 20:35:45 2008
New Revision: 2371
URL: http://svn.gnome.org/viewvc/gegl?rev=2371&view=rev

Log:
Made the process functions contain the full prefix of the class to
make backtraces more readable.
* gegl/operation/gegl-operation-composer.c:
* gegl/operation/gegl-operation-filter.c:
* gegl/operation/gegl-operation-point-composer.c:
* gegl/operation/gegl-operation-point-filter.c:
* gegl/operation/gegl-operation-point-filter.h:
* gegl/operation/gegl-operation-point-render.c:
* gegl/operation/gegl-operation-sink.c:
* gegl/operation/gegl-operation-source.c:


Modified:
   trunk/ChangeLog
   trunk/gegl/operation/gegl-operation-composer.c
   trunk/gegl/operation/gegl-operation-filter.c
   trunk/gegl/operation/gegl-operation-point-composer.c
   trunk/gegl/operation/gegl-operation-point-filter.c
   trunk/gegl/operation/gegl-operation-point-filter.h
   trunk/gegl/operation/gegl-operation-point-render.c
   trunk/gegl/operation/gegl-operation-sink.c
   trunk/gegl/operation/gegl-operation-source.c

Modified: trunk/gegl/operation/gegl-operation-composer.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-composer.c	(original)
+++ trunk/gegl/operation/gegl-operation-composer.c	Mon Jun  2 20:35:45 2008
@@ -47,7 +47,7 @@
                               guint                prop_id,
                               const GValue        *value,
                               GParamSpec          *pspec);
-static gboolean process      (GeglOperation       *operation,
+static gboolean gegl_operation_composer_process (GeglOperation       *operation,
                               GeglNodeContext     *context,
                               const gchar         *output_prop,
                               const GeglRectangle *result);
@@ -74,7 +74,7 @@
   object_class->set_property = set_property;
   object_class->get_property = get_property;
 
-  operation_class->process = process;
+  operation_class->process = gegl_operation_composer_process;
   operation_class->attach = attach;
   operation_class->detect = detect;
   operation_class->get_bounding_box = get_bounding_box;
@@ -144,10 +144,10 @@
 }
 
 static gboolean
-process (GeglOperation       *operation,
-         GeglNodeContext     *context,
-         const gchar         *output_prop,
-         const GeglRectangle *result)
+gegl_operation_composer_process (GeglOperation       *operation,
+                        GeglNodeContext     *context,
+                        const gchar         *output_prop,
+                        const GeglRectangle *result)
 {
   GeglOperationComposerClass *klass   = GEGL_OPERATION_COMPOSER_GET_CLASS (operation);
   GeglBuffer                 *input;

Modified: trunk/gegl/operation/gegl-operation-filter.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-filter.c	(original)
+++ trunk/gegl/operation/gegl-operation-filter.c	Mon Jun  2 20:35:45 2008
@@ -39,24 +39,25 @@
 };
 
 static void     get_property          (GObject       *gobject,
-                                         guint          prop_id,
-                                         GValue        *value,
-                                         GParamSpec    *pspec);
+                                       guint          prop_id,
+                                       GValue        *value,
+                                       GParamSpec    *pspec);
 
 static void     set_property          (GObject       *gobject,
-                                         guint          prop_id,
-                                         const GValue  *value,
-                                         GParamSpec    *pspec);
-
-static gboolean process                 (GeglOperation       *operation,
-                                         GeglNodeContext     *context,
-                                         const gchar         *output_prop,
-                                         const GeglRectangle *result);
+                                       guint          prop_id,
+                                       const GValue  *value,
+                                       GParamSpec    *pspec);
+
+static gboolean gegl_operation_filter_process 
+                                      (GeglOperation       *operation,
+                                       GeglNodeContext     *context,
+                                       const gchar         *output_prop,
+                                       const GeglRectangle *result);
 
 static void     attach                 (GeglOperation *operation);
-static GeglNode *detect                 (GeglOperation *operation,
-                                         gint           x,
-                                         gint           y);
+static GeglNode *detect                (GeglOperation *operation,
+                                        gint           x,
+                                        gint           y);
 
 static GeglRectangle get_bounding_box          (GeglOperation       *self);
 static GeglRectangle get_required_for_output   (GeglOperation       *operation,
@@ -76,7 +77,7 @@
   object_class->set_property = set_property;
   object_class->get_property = get_property;
 
-  operation_class->process                 = process;
+  operation_class->process                 = gegl_operation_filter_process;
   operation_class->attach                  = attach;
   operation_class->detect                  = detect;
   operation_class->get_bounding_box        = get_bounding_box;
@@ -179,10 +180,10 @@
 
 
 static gboolean
-process (GeglOperation   *operation,
-         GeglNodeContext *context,
-         const gchar     *output_prop,
-         const GeglRectangle *result)
+gegl_operation_filter_process (GeglOperation   *operation,
+                               GeglNodeContext *context,
+                               const gchar     *output_prop,
+                               const GeglRectangle *result)
 {
   GeglOperationFilter      *gegl_operation_filter;
   GeglOperationFilterClass *klass;

Modified: trunk/gegl/operation/gegl-operation-point-composer.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-point-composer.c	(original)
+++ trunk/gegl/operation/gegl-operation-point-composer.c	Mon Jun  2 20:35:45 2008
@@ -28,7 +28,8 @@
 #include "graph/gegl-pad.h"
 #include <string.h>
 
-static gboolean process_inner (GeglOperation       *operation,
+static gboolean gegl_operation_point_composer_process 
+                              (GeglOperation       *operation,
                                GeglBuffer          *input,
                                GeglBuffer          *aux,
                                GeglBuffer          *output,
@@ -51,7 +52,7 @@
   GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
   GeglOperationComposerClass *composer_class = GEGL_OPERATION_COMPOSER_CLASS (klass);
 
-  composer_class->process = process_inner;
+  composer_class->process = gegl_operation_point_composer_process;
   operation_class->prepare = prepare;
   operation_class->no_cache =TRUE;
 }
@@ -75,11 +76,11 @@
 #endif
 
 static gboolean
-process_inner (GeglOperation       *operation,
-               GeglBuffer          *input,
-               GeglBuffer          *aux,
-               GeglBuffer          *output,
-               const GeglRectangle *result)
+gegl_operation_point_composer_process (GeglOperation       *operation,
+                                       GeglBuffer          *input,
+                                       GeglBuffer          *aux,
+                                       GeglBuffer          *output,
+                                       const GeglRectangle *result)
 {
   GeglPad    *pad;
   const Babl *in_format;

Modified: trunk/gegl/operation/gegl-operation-point-filter.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-point-filter.c	(original)
+++ trunk/gegl/operation/gegl-operation-point-filter.c	Mon Jun  2 20:35:45 2008
@@ -31,7 +31,8 @@
 #include "gegl-buffer-private.h"
 #include "gegl-tile-storage.h"
 
-static gboolean process_inner (GeglOperation       *operation,
+static gboolean gegl_operation_point_filter_process
+                              (GeglOperation       *operation,
                                GeglBuffer          *input,
                                GeglBuffer          *output,
                                const GeglRectangle *result);
@@ -50,7 +51,7 @@
   GeglOperationFilterClass *filter_class = GEGL_OPERATION_FILTER_CLASS (klass);
   GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
 
-  filter_class->process = process_inner;
+  filter_class->process = gegl_operation_point_filter_process;
   operation_class->prepare = prepare;
 }
 
@@ -61,10 +62,10 @@
 
 
 static gboolean
-process_inner (GeglOperation       *operation,
-               GeglBuffer          *input,
-               GeglBuffer          *output,
-               const GeglRectangle *result)
+gegl_operation_point_filter_process (GeglOperation       *operation,
+                                     GeglBuffer          *input,
+                                     GeglBuffer          *output,
+                                     const GeglRectangle *result)
 {
   GeglPad    *pad;
   const Babl *in_format;

Modified: trunk/gegl/operation/gegl-operation-point-filter.h
==============================================================================
--- trunk/gegl/operation/gegl-operation-point-filter.h	(original)
+++ trunk/gegl/operation/gegl-operation-point-filter.h	Mon Jun  2 20:35:45 2008
@@ -45,7 +45,9 @@
                         void          *in_buf,    /* input buffer      */
                         void          *out_buf,   /* output buffer     */
                         glong          samples,   /* number of samples */
-                        GeglRectangle *roi);      /* can be used if position is of importance*/
+                        GeglRectangle *roi);      /* rectangle out_buf spans in
+                                                     in buffer, see the checkerboard
+                                                     op for semantics */
 };
 
 GType gegl_operation_point_filter_get_type (void) G_GNUC_CONST;

Modified: trunk/gegl/operation/gegl-operation-point-render.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-point-render.c	(original)
+++ trunk/gegl/operation/gegl-operation-point-render.c	Mon Jun  2 20:35:45 2008
@@ -31,7 +31,8 @@
 #include "gegl-buffer-private.h"
 #include "gegl-tile-storage.h"
 
-static gboolean process_inner (GeglOperation       *operation,
+static gboolean gegl_operation_point_render_process 
+                              (GeglOperation       *operation,
                                GeglBuffer          *output,
                                const GeglRectangle *result);
 
@@ -56,7 +57,7 @@
   GeglOperationSourceClass *source_class    = GEGL_OPERATION_SOURCE_CLASS (klass);
   GeglOperationClass       *operation_class = GEGL_OPERATION_CLASS (klass);
 
-  source_class->process    = process_inner;
+  source_class->process    = gegl_operation_point_render_process;
   operation_class->prepare = prepare;
 
   operation_class->detect = detect;
@@ -73,9 +74,9 @@
 
 
 static gboolean
-process_inner (GeglOperation       *operation,
-               GeglBuffer          *output,
-               const GeglRectangle *result)
+gegl_operation_point_render_process (GeglOperation       *operation,
+                                     GeglBuffer          *output,
+                                     const GeglRectangle *result)
 {
   GeglPad    *pad;
   const Babl *out_format;

Modified: trunk/gegl/operation/gegl-operation-sink.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-sink.c	(original)
+++ trunk/gegl/operation/gegl-operation-sink.c	Mon Jun  2 20:35:45 2008
@@ -43,10 +43,11 @@
                                             const GValue        *value,
                                             GParamSpec          *pspec);
 
-static gboolean      process                 (GeglOperation       *operation,
-                                               GeglNodeContext     *context,
-                                               const gchar         *output_prop,
-                                               const GeglRectangle *result);
+static gboolean      gegl_operation_sink_process 
+                                            (GeglOperation       *operation,
+                                             GeglNodeContext     *context,
+                                             const gchar         *output_prop,
+                                             const GeglRectangle *result);
 static void          attach                 (GeglOperation       *operation);
 static GeglRectangle get_bounding_box        (GeglOperation       *self);
 static GeglRectangle get_required_for_output (GeglOperation       *operation,
@@ -68,7 +69,7 @@
   object_class->set_property = set_property;
   object_class->get_property = get_property;
 
-  operation_class->process                 = process;
+  operation_class->process                 = gegl_operation_sink_process;
   operation_class->attach                  = attach;
   operation_class->get_bounding_box        = get_bounding_box;
   operation_class->get_required_for_output = get_required_for_output;
@@ -115,10 +116,10 @@
 }
 
 static gboolean
-process (GeglOperation *operation,
-         GeglNodeContext *context,
-         const gchar   *output_prop,
-         const GeglRectangle *result)
+gegl_operation_sink_process (GeglOperation *operation,
+                             GeglNodeContext *context,
+                             const gchar   *output_prop,
+                             const GeglRectangle *result)
 {
   GeglOperationSink      *gegl_operation_sink;
   GeglOperationSinkClass *klass;

Modified: trunk/gegl/operation/gegl-operation-source.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-source.c	(original)
+++ trunk/gegl/operation/gegl-operation-source.c	Mon Jun  2 20:35:45 2008
@@ -41,7 +41,8 @@
                               guint         prop_id,
                               const GValue *value,
                               GParamSpec   *pspec);
-static gboolean process      (GeglOperation *operation,
+static gboolean gegl_operation_source_process 
+                             (GeglOperation *operation,
                               GeglNodeContext *context,
                               const gchar   *output_prop,
                               const GeglRectangle *result);
@@ -68,7 +69,7 @@
   gobject_class->set_property = set_property;
   gobject_class->get_property = get_property;
 
-  operation_class->process = process;
+  operation_class->process = gegl_operation_source_process;
   operation_class->attach  = attach;
   operation_class->get_cached_region = get_cached_region;
 
@@ -117,10 +118,10 @@
 }
 
 static gboolean
-process (GeglOperation       *operation,
-         GeglNodeContext     *context,
-         const gchar         *output_prop,
-         const GeglRectangle *result)
+gegl_operation_source_process (GeglOperation       *operation,
+                               GeglNodeContext     *context,
+                               const gchar         *output_prop,
+                               const GeglRectangle *result)
 {
   GeglOperationSourceClass *klass = GEGL_OPERATION_SOURCE_GET_CLASS (operation);
   GeglBuffer               *output;



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