gegl r1987 - in trunk: . gegl gegl/operation gegl/process operations/render



Author: ok
Date: Sat Feb  9 20:39:08 2008
New Revision: 1987
URL: http://svn.gnome.org/viewvc/gegl?rev=1987&view=rev

Log:
%s/adjust_result_rect/get_cached_region/
* gegl/gegl-plugin.h:
* gegl/operation/gegl-operation-source.c:
(gegl_operation_source_class_init), (get_cached_region):
* gegl/operation/gegl-operation.c:
(gegl_operation_get_cached_region):
* gegl/operation/gegl-operation.h:
* gegl/process/gegl-cr-visitor.c:
* operations/render/checkerboard.c:
* operations/render/color.c:
* operations/render/fractal-explorer.c:
* operations/render/noise.c:


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-plugin.h
   trunk/gegl/operation/gegl-operation-source.c
   trunk/gegl/operation/gegl-operation.c
   trunk/gegl/operation/gegl-operation.h
   trunk/gegl/process/gegl-cr-visitor.c
   trunk/operations/render/checkerboard.c
   trunk/operations/render/color.c
   trunk/operations/render/fractal-explorer.c
   trunk/operations/render/noise.c

Modified: trunk/gegl/gegl-plugin.h
==============================================================================
--- trunk/gegl/gegl-plugin.h	(original)
+++ trunk/gegl/gegl-plugin.h	Sat Feb  9 20:39:08 2008
@@ -181,7 +181,7 @@
    * (useful for global operations like contrast stretching, as well as
    * file loaders to force caching of the full raster).
    */
-  GeglRectangle   (*adjust_result_region)  (GeglOperation       *operation,
+  GeglRectangle   (*get_cached_region)     (GeglOperation       *operation,
                                             const GeglRectangle *roi);
 
   /* XXX: What is GeglNode doing in this part of the API?
@@ -225,7 +225,7 @@
                                                           const gchar   *input_pad,
                                                           const GeglRectangle *input_region);
 GeglRectangle   gegl_operation_get_bounding_box          (GeglOperation *operation);
-GeglRectangle   gegl_operation_adjust_result_region      (GeglOperation *operation,
+GeglRectangle   gegl_operation_get_cached_region         (GeglOperation *operation,
                                                           const GeglRectangle *roi);
 
 GeglRectangle   gegl_operation_get_invalidated_by_change (GeglOperation *operation,

Modified: trunk/gegl/operation/gegl-operation-source.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-source.c	(original)
+++ trunk/gegl/operation/gegl-operation-source.c	Sat Feb  9 20:39:08 2008
@@ -55,7 +55,7 @@
 static GeglRectangle get_invalidated_by_change (GeglOperation       *operation,
                                                  const gchar         *input_pad,
                                                  const GeglRectangle *roi);
-static GeglRectangle  adjust_result_region     (GeglOperation       *operation,
+static GeglRectangle  get_cached_region        (GeglOperation       *operation,
                                                  const GeglRectangle *roi);
 
 
@@ -70,7 +70,7 @@
 
   operation_class->process = process;
   operation_class->attach  = attach;
-  operation_class->adjust_result_region = adjust_result_region;
+  operation_class->get_cached_region = get_cached_region;
 
   operation_class->get_bounding_box  = get_bounding_box;
   operation_class->get_invalidated_by_change = get_invalidated_by_change;
@@ -158,8 +158,8 @@
 }
 
 static GeglRectangle
-adjust_result_region (GeglOperation       *operation,
-                      const GeglRectangle *roi)
+get_cached_region (GeglOperation       *operation,
+                   const GeglRectangle *roi)
 {
   GeglRectangle result = *roi;
   result = operation->node->have_rect;

Modified: trunk/gegl/operation/gegl-operation.c
==============================================================================
--- trunk/gegl/operation/gegl-operation.c	(original)
+++ trunk/gegl/operation/gegl-operation.c	Sat Feb  9 20:39:08 2008
@@ -192,17 +192,17 @@
 
 
 GeglRectangle
-gegl_operation_adjust_result_region (GeglOperation       *operation,
-                                     const GeglRectangle *roi)
+gegl_operation_get_cached_region (GeglOperation       *operation,
+                                  const GeglRectangle *roi)
 {
   GeglOperationClass *klass = GEGL_OPERATION_GET_CLASS (operation);
 
-  if (!klass->adjust_result_region)
+  if (!klass->get_cached_region)
     {
       return *roi;
     }
 
-  return klass->adjust_result_region (operation, roi);
+  return klass->get_cached_region (operation, roi);
 }
 
 static void

Modified: trunk/gegl/operation/gegl-operation.h
==============================================================================
--- trunk/gegl/operation/gegl-operation.h	(original)
+++ trunk/gegl/operation/gegl-operation.h	Sat Feb  9 20:39:08 2008
@@ -96,8 +96,8 @@
    * (useful for global operations like contrast stretching, as well as
    * file loaders to force caching of the full raster).
    */
-  GeglRectangle   (*adjust_result_region)  (GeglOperation       *operation,
-                                            const GeglRectangle *roi);
+  GeglRectangle   (*get_cached_region)         (GeglOperation       *operation,
+                                                const GeglRectangle *roi);
 
   /* XXX: What is GeglNode doing in this part of the API?
    * Returns the node providing data for a specific location within the
@@ -140,7 +140,7 @@
                                                         const gchar   *input_pad,
                                                         const GeglRectangle *input_region);
 GeglRectangle   gegl_operation_get_bounding_box        (GeglOperation *operation);
-GeglRectangle   gegl_operation_adjust_result_region    (GeglOperation *operation,
+GeglRectangle   gegl_operation_get_cached_region       (GeglOperation *operation,
                                                         const GeglRectangle *roi);
 
 GeglRectangle   gegl_operation_get_invalidated_by_change(GeglOperation *operation,

Modified: trunk/gegl/process/gegl-cr-visitor.c
==============================================================================
--- trunk/gegl/process/gegl-cr-visitor.c	(original)
+++ trunk/gegl/process/gegl-cr-visitor.c	Sat Feb  9 20:39:08 2008
@@ -64,7 +64,7 @@
   if (!context->cached)
     {
       gegl_rectangle_intersect (&context->result_rect, &node->have_rect, &context->need_rect);
-      context->result_rect = gegl_operation_adjust_result_region (node->operation, &context->result_rect);
+      context->result_rect = gegl_operation_get_cached_region (node->operation, &context->result_rect);
 
     }
   context->refs = gegl_node_get_num_sinks (node);

Modified: trunk/operations/render/checkerboard.c
==============================================================================
--- trunk/operations/render/checkerboard.c	(original)
+++ trunk/operations/render/checkerboard.c	Sat Feb  9 20:39:08 2008
@@ -126,7 +126,7 @@
   operation_class->description = "Checkerboard renderer.";
 
   operation_class->no_cache = TRUE;
-  operation_class->adjust_result_region = NULL;
+  operation_class->get_cached_region = NULL;
 }
 
 #endif

Modified: trunk/operations/render/color.c
==============================================================================
--- trunk/operations/render/color.c	(original)
+++ trunk/operations/render/color.c	Sat Feb  9 20:39:08 2008
@@ -100,7 +100,7 @@
 
   operation_class->no_cache = TRUE;
   operation_class->detect = detect;
-  operation_class->adjust_result_region = NULL;
+  operation_class->get_cached_region = NULL;
 }
 
 #endif

Modified: trunk/operations/render/fractal-explorer.c
==============================================================================
--- trunk/operations/render/fractal-explorer.c	(original)
+++ trunk/operations/render/fractal-explorer.c	Sat Feb  9 20:39:08 2008
@@ -468,7 +468,7 @@
   operation_class->description = "Fractal Explorer";
 
   operation_class->no_cache = TRUE;
-  operation_class->adjust_result_region = NULL;
+  operation_class->get_cached_region = NULL;
 }
 
 #endif

Modified: trunk/operations/render/noise.c
==============================================================================
--- trunk/operations/render/noise.c	(original)
+++ trunk/operations/render/noise.c	Sat Feb  9 20:39:08 2008
@@ -99,7 +99,7 @@
   operation_class->description = "Perlin noise generator.";
 
   operation_class->no_cache = TRUE;
-  operation_class->adjust_result_region = NULL;
+  operation_class->get_cached_region = NULL;
 }
 
 #endif



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