gegl r2277 - in trunk: . gegl/operation operations/common



Author: ok
Date: Tue May  6 00:18:14 2008
New Revision: 2277
URL: http://svn.gnome.org/viewvc/gegl?rev=2277&view=rev

Log:
Improved indentation/argument naming/docs.
* gegl/operation/gegl-operation-area-filter.h:
* gegl/operation/gegl-operation-filter.h:
* gegl/operation/gegl-operation-sink.h:
* gegl/operation/gegl-operation-source.h:
* gegl/operation/gegl-operation.h:
* operations/common/brightness-contrast.c: (process_simd),
(gegl_chant_class_init):


Modified:
   trunk/ChangeLog
   trunk/gegl/operation/gegl-operation-area-filter.h
   trunk/gegl/operation/gegl-operation-filter.h
   trunk/gegl/operation/gegl-operation-sink.h
   trunk/gegl/operation/gegl-operation-source.h
   trunk/gegl/operation/gegl-operation.h
   trunk/operations/common/brightness-contrast.c

Modified: trunk/gegl/operation/gegl-operation-area-filter.h
==============================================================================
--- trunk/gegl/operation/gegl-operation-area-filter.h	(original)
+++ trunk/gegl/operation/gegl-operation-area-filter.h	Tue May  6 00:18:14 2008
@@ -35,7 +35,7 @@
 {
   GeglOperationFilter parent_instance;
 
-  gint                left;
+  gint                left;   /* extra pixels needed in each direction */
   gint                right;
   gint                top;
   gint                bottom;

Modified: trunk/gegl/operation/gegl-operation-filter.h
==============================================================================
--- trunk/gegl/operation/gegl-operation-filter.h	(original)
+++ trunk/gegl/operation/gegl-operation-filter.h	Tue May  6 00:18:14 2008
@@ -44,7 +44,7 @@
   gboolean (* process) (GeglOperation       *self,
                         GeglBuffer          *input,
                         GeglBuffer          *output,
-                        const GeglRectangle *result);
+                        const GeglRectangle *roi);
 };
 
 GType gegl_operation_filter_get_type (void) G_GNUC_CONST;

Modified: trunk/gegl/operation/gegl-operation-sink.h
==============================================================================
--- trunk/gegl/operation/gegl-operation-sink.h	(original)
+++ trunk/gegl/operation/gegl-operation-sink.h	Tue May  6 00:18:14 2008
@@ -45,7 +45,7 @@
 
   gboolean (* process) (GeglOperation       *self,
                         GeglBuffer          *input,
-                        const GeglRectangle *result);
+                        const GeglRectangle *roi);
 };
 
 GType    gegl_operation_sink_get_type   (void) G_GNUC_CONST;

Modified: trunk/gegl/operation/gegl-operation-source.h
==============================================================================
--- trunk/gegl/operation/gegl-operation-source.h	(original)
+++ trunk/gegl/operation/gegl-operation-source.h	Tue May  6 00:18:14 2008
@@ -43,7 +43,7 @@
 
   gboolean (* process) (GeglOperation       *self,
                         GeglBuffer          *output,
-                        const GeglRectangle *result);
+                        const GeglRectangle *roi);
 };
 
 GType gegl_operation_source_get_type (void) G_GNUC_CONST;

Modified: trunk/gegl/operation/gegl-operation.h
==============================================================================
--- trunk/gegl/operation/gegl-operation.h	(original)
+++ trunk/gegl/operation/gegl-operation.h	Tue May  6 00:18:14 2008
@@ -138,15 +138,10 @@
   GeglNode*     (*detect)                    (GeglOperation       *operation,
                                               gint                 x,
                                               gint                 y);
-
-
-  GCallback      processor[MAX_PROCESSOR];
-  gchar          *processor_string[MAX_PROCESSOR];
 };
 
 
 
-
 GType           gegl_operation_get_type        (void) G_GNUC_CONST;
 
 GeglRectangle   gegl_operation_get_invalidated_by_change

Modified: trunk/operations/common/brightness-contrast.c
==============================================================================
--- trunk/operations/common/brightness-contrast.c	(original)
+++ trunk/operations/common/brightness-contrast.c	Tue May  6 00:18:14 2008
@@ -109,12 +109,16 @@
 
 
 #ifdef HAS_G4FLOAT
+/* The compiler supports vector extensions allowing an version of
+ * the process code that produces more optimal instructions on the
+ * target platform.
+ */
 
 static gboolean
-process_gcc_vectors (GeglOperation *op,
-                     void          *in_buf,
-                     void          *out_buf,
-                     glong          samples)
+process_simd (GeglOperation *op,
+              void          *in_buf,
+              void          *out_buf,
+              glong          samples)
 {
   GeglChantO *o = GEGL_CHANT_PROPERTIES (op);
   g4float *in  = in_buf;
@@ -175,7 +179,7 @@
    * broken and not conforming to the reference implementation.
    */
   gegl_operation_class_add_processor (operation_class,
-                                      G_CALLBACK (process_gcc_vectors), "g4float");
+                                      G_CALLBACK (process_simd), "g4float");
 #endif
 }
 



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