gimp r25918 - in trunk: . app/gegl



Author: neo
Date: Wed Jun 11 09:42:22 2008
New Revision: 25918
URL: http://svn.gnome.org/viewvc/gimp?rev=25918&view=rev

Log:
2008-06-11  Sven Neumann  <sven gimp org>

	* app/gegl/gimpoperationcolorbalance.c
	* app/gegl/gimpoperationcolorize.c
	* app/gegl/gimpoperationcurves.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationhuesaturation.c
	* app/gegl/gimpoperationlevels.c
	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationthreshold.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: added const to GeglRectangle*
	argument.


Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimpoperationcolorbalance.c
   trunk/app/gegl/gimpoperationcolorize.c
   trunk/app/gegl/gimpoperationcurves.c
   trunk/app/gegl/gimpoperationdesaturate.c
   trunk/app/gegl/gimpoperationhuesaturation.c
   trunk/app/gegl/gimpoperationlevels.c
   trunk/app/gegl/gimpoperationposterize.c
   trunk/app/gegl/gimpoperationthreshold.c
   trunk/app/gegl/gimpoperationtilesink.c
   trunk/app/gegl/gimpoperationtilesource.c

Modified: trunk/app/gegl/gimpoperationcolorbalance.c
==============================================================================
--- trunk/app/gegl/gimpoperationcolorbalance.c	(original)
+++ trunk/app/gegl/gimpoperationcolorbalance.c	Wed Jun 11 09:42:22 2008
@@ -32,11 +32,11 @@
 #include "gimpoperationcolorbalance.h"
 
 
-static gboolean gimp_operation_color_balance_process (GeglOperation *operation,
-                                                      void          *in_buf,
-                                                      void          *out_buf,
-                                                      glong          samples,
-                                                      GeglRectangle *roi);
+static gboolean gimp_operation_color_balance_process (GeglOperation       *operation,
+                                                      void                *in_buf,
+                                                      void                *out_buf,
+                                                      glong                samples,
+                                                      const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationColorBalance, gimp_operation_color_balance,
@@ -113,11 +113,11 @@
 }
 
 static gboolean
-gimp_operation_color_balance_process (GeglOperation *operation,
-                                      void          *in_buf,
-                                      void          *out_buf,
-                                      glong          samples,
-                                      GeglRectangle *roi)
+gimp_operation_color_balance_process (GeglOperation       *operation,
+                                      void                *in_buf,
+                                      void                *out_buf,
+                                      glong                samples,
+                                      const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpColorBalanceConfig   *config = GIMP_COLOR_BALANCE_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationcolorize.c
==============================================================================
--- trunk/app/gegl/gimpoperationcolorize.c	(original)
+++ trunk/app/gegl/gimpoperationcolorize.c	Wed Jun 11 09:42:22 2008
@@ -31,11 +31,11 @@
 #include "gimpoperationcolorize.h"
 
 
-static gboolean gimp_operation_colorize_process (GeglOperation *operation,
-                                                 void          *in_buf,
-                                                 void          *out_buf,
-                                                 glong          samples,
-                                                 GeglRectangle *roi);
+static gboolean gimp_operation_colorize_process (GeglOperation       *operation,
+                                                 void                *in_buf,
+                                                 void                *out_buf,
+                                                 glong                samples,
+                                                 const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationColorize, gimp_operation_colorize,
@@ -76,11 +76,11 @@
 }
 
 static gboolean
-gimp_operation_colorize_process (GeglOperation *operation,
-                                 void          *in_buf,
-                                 void          *out_buf,
-                                 glong          samples,
-                                 GeglRectangle *roi)
+gimp_operation_colorize_process (GeglOperation       *operation,
+                                 void                *in_buf,
+                                 void                *out_buf,
+                                 glong                samples,
+                                 const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpColorizeConfig       *config = GIMP_COLORIZE_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationcurves.c
==============================================================================
--- trunk/app/gegl/gimpoperationcurves.c	(original)
+++ trunk/app/gegl/gimpoperationcurves.c	Wed Jun 11 09:42:22 2008
@@ -35,11 +35,11 @@
 #include "gimpoperationcurves.h"
 
 
-static gboolean gimp_operation_curves_process (GeglOperation *operation,
-                                               void          *in_buf,
-                                               void          *out_buf,
-                                               glong          samples,
-                                               GeglRectangle *roi);
+static gboolean gimp_operation_curves_process (GeglOperation       *operation,
+                                               void                *in_buf,
+                                               void                *out_buf,
+                                               glong                samples,
+                                               const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationCurves, gimp_operation_curves,
@@ -80,11 +80,11 @@
 }
 
 static gboolean
-gimp_operation_curves_process (GeglOperation *operation,
-                               void          *in_buf,
-                               void          *out_buf,
-                               glong          samples,
-                               GeglRectangle *roi)
+gimp_operation_curves_process (GeglOperation       *operation,
+                               void                *in_buf,
+                               void                *out_buf,
+                               glong                samples,
+                               const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpCurvesConfig         *config = GIMP_CURVES_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationdesaturate.c
==============================================================================
--- trunk/app/gegl/gimpoperationdesaturate.c	(original)
+++ trunk/app/gegl/gimpoperationdesaturate.c	Wed Jun 11 09:42:22 2008
@@ -31,11 +31,11 @@
 #include "gimpdesaturateconfig.h"
 
 
-static gboolean  gimp_operation_desaturate_process (GeglOperation *operation,
-                                                    void          *in_buf,
-                                                    void          *out_buf,
-                                                    glong          samples,
-                                                    GeglRectangle *roi);
+static gboolean  gimp_operation_desaturate_process (GeglOperation       *operation,
+                                                    void                *in_buf,
+                                                    void                *out_buf,
+                                                    glong                samples,
+                                                    const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationDesaturate, gimp_operation_desaturate,
@@ -76,11 +76,11 @@
 }
 
 static gboolean
-gimp_operation_desaturate_process (GeglOperation *operation,
-                                   void          *in_buf,
-                                   void          *out_buf,
-                                   glong          samples,
-                                   GeglRectangle *roi)
+gimp_operation_desaturate_process (GeglOperation       *operation,
+                                   void                *in_buf,
+                                   void                *out_buf,
+                                   glong                samples,
+                                   const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpDesaturateConfig     *config = GIMP_DESATURATE_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationhuesaturation.c
==============================================================================
--- trunk/app/gegl/gimpoperationhuesaturation.c	(original)
+++ trunk/app/gegl/gimpoperationhuesaturation.c	Wed Jun 11 09:42:22 2008
@@ -32,11 +32,11 @@
 #include "gimpoperationhuesaturation.h"
 
 
-static gboolean gimp_operation_hue_saturation_process (GeglOperation *operation,
-                                                       void          *in_buf,
-                                                       void          *out_buf,
-                                                       glong          samples,
-                                                       GeglRectangle *roi);
+static gboolean gimp_operation_hue_saturation_process (GeglOperation       *operation,
+                                                       void                *in_buf,
+                                                       void                *out_buf,
+                                                       glong                samples,
+                                                       const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationHueSaturation, gimp_operation_hue_saturation,
@@ -125,11 +125,11 @@
 }
 
 static gboolean
-gimp_operation_hue_saturation_process (GeglOperation *operation,
-                                       void          *in_buf,
-                                       void          *out_buf,
-                                       glong          samples,
-                                       GeglRectangle *roi)
+gimp_operation_hue_saturation_process (GeglOperation       *operation,
+                                       void                *in_buf,
+                                       void                *out_buf,
+                                       glong                samples,
+                                       const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpHueSaturationConfig  *config = GIMP_HUE_SATURATION_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationlevels.c
==============================================================================
--- trunk/app/gegl/gimpoperationlevels.c	(original)
+++ trunk/app/gegl/gimpoperationlevels.c	Wed Jun 11 09:42:22 2008
@@ -32,11 +32,11 @@
 #include "gimpoperationlevels.h"
 
 
-static gboolean gimp_operation_levels_process (GeglOperation *operation,
-                                               void          *in_buf,
-                                               void          *out_buf,
-                                               glong          samples,
-                                               GeglRectangle *roi);
+static gboolean gimp_operation_levels_process (GeglOperation       *operation,
+                                               void                *in_buf,
+                                               void                *out_buf,
+                                               glong                samples,
+                                               const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationLevels, gimp_operation_levels,
@@ -108,11 +108,11 @@
 }
 
 static gboolean
-gimp_operation_levels_process (GeglOperation *operation,
-                               void          *in_buf,
-                               void          *out_buf,
-                               glong          samples,
-                               GeglRectangle *roi)
+gimp_operation_levels_process (GeglOperation       *operation,
+                               void                *in_buf,
+                               void                *out_buf,
+                               glong                samples,
+                               const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpLevelsConfig         *config = GIMP_LEVELS_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationposterize.c
==============================================================================
--- trunk/app/gegl/gimpoperationposterize.c	(original)
+++ trunk/app/gegl/gimpoperationposterize.c	Wed Jun 11 09:42:22 2008
@@ -32,11 +32,11 @@
 #include "gimpposterizeconfig.h"
 
 
-static gboolean gimp_operation_posterize_process (GeglOperation *operation,
-                                                  void          *in_buf,
-                                                  void          *out_buf,
-                                                  glong          samples,
-                                                  GeglRectangle *roi);
+static gboolean gimp_operation_posterize_process (GeglOperation       *operation,
+                                                  void                *in_buf,
+                                                  void                *out_buf,
+                                                  glong                samples,
+                                                  const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationPosterize, gimp_operation_posterize,
@@ -77,11 +77,11 @@
 }
 
 static gboolean
-gimp_operation_posterize_process (GeglOperation *operation,
-                                  void          *in_buf,
-                                  void          *out_buf,
-                                  glong          samples,
-                                  GeglRectangle *roi)
+gimp_operation_posterize_process (GeglOperation       *operation,
+                                  void                *in_buf,
+                                  void                *out_buf,
+                                  glong                samples,
+                                  const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpPosterizeConfig      *config = GIMP_POSTERIZE_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationthreshold.c
==============================================================================
--- trunk/app/gegl/gimpoperationthreshold.c	(original)
+++ trunk/app/gegl/gimpoperationthreshold.c	Wed Jun 11 09:42:22 2008
@@ -31,11 +31,11 @@
 #include "gimpthresholdconfig.h"
 
 
-static gboolean gimp_operation_threshold_process (GeglOperation *operation,
-                                                  void          *in_buf,
-                                                  void          *out_buf,
-                                                  glong          samples,
-                                                  GeglRectangle *roi);
+static gboolean gimp_operation_threshold_process (GeglOperation       *operation,
+                                                  void                *in_buf,
+                                                  void                *out_buf,
+                                                  glong                samples,
+                                                  const GeglRectangle *roi);
 
 
 G_DEFINE_TYPE (GimpOperationThreshold, gimp_operation_threshold,
@@ -76,11 +76,11 @@
 }
 
 static gboolean
-gimp_operation_threshold_process (GeglOperation *operation,
-                                  void          *in_buf,
-                                  void          *out_buf,
-                                  glong          samples,
-                                  GeglRectangle *roi)
+gimp_operation_threshold_process (GeglOperation       *operation,
+                                  void                *in_buf,
+                                  void                *out_buf,
+                                  glong                samples,
+                                  const GeglRectangle *roi)
 {
   GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
   GimpThresholdConfig      *config = GIMP_THRESHOLD_CONFIG (point->config);

Modified: trunk/app/gegl/gimpoperationtilesink.c
==============================================================================
--- trunk/app/gegl/gimpoperationtilesink.c	(original)
+++ trunk/app/gegl/gimpoperationtilesink.c	Wed Jun 11 09:42:22 2008
@@ -218,14 +218,13 @@
        pr;
        pr = pixel_regions_process (pr))
     {
-      GeglRectangle rect = { destPR.x, destPR.y, destPR.w, destPR.h };
+      const GeglRectangle rect = { destPR.x, destPR.y, destPR.w, destPR.h };
 
       gegl_buffer_get (input,
                        1.0, &rect, format, destPR.data, destPR.rowstride);
     }
 
-  g_signal_emit (operation, tile_sink_signals[DATA_WRITTEN], 0,
-                 result);
+  g_signal_emit (operation, tile_sink_signals[DATA_WRITTEN], 0, result);
 
   return TRUE;
 }

Modified: trunk/app/gegl/gimpoperationtilesource.c
==============================================================================
--- trunk/app/gegl/gimpoperationtilesource.c	(original)
+++ trunk/app/gegl/gimpoperationtilesource.c	Wed Jun 11 09:42:22 2008
@@ -83,7 +83,7 @@
   operation_class->description        = "GIMP TileManager source";
   operation_class->prepare            = gimp_operation_tile_source_prepare;
   operation_class->get_bounding_box   = gimp_operation_tile_source_get_bounding_box;
-  operation_class->get_cached_region = NULL; /* the default source is
+  operation_class->get_cached_region  = NULL; /* the default source is
                                                  expanding to agressivly
                                                  make use of available caching,
                                                  this behavior is at least a
@@ -238,7 +238,7 @@
        pr;
        pr = pixel_regions_process (pr))
     {
-      GeglRectangle rect = { srcPR.x, srcPR.y, srcPR.w, srcPR.h };
+      const GeglRectangle rect = { srcPR.x, srcPR.y, srcPR.w, srcPR.h };
 
       gegl_buffer_set (output, &rect, format, srcPR.data, srcPR.rowstride);
     }



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