[gegl] Update some more files to new api



commit 8598586e5bcf2a3147cb0658aafdce94b27ae2f0
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Sun Mar 25 22:17:14 2012 +0200

    Update some more files to new api

 operations/external/matting-levin.c           |    6 +++---
 operations/external/v4l.c                     |    4 ++--
 operations/workshop/external/gluas.c          |    2 +-
 operations/workshop/external/lens-correct.c   |    7 ++++---
 operations/workshop/generated/blend-reflect.c |    3 ++-
 operations/workshop/generated/negation.c      |    3 ++-
 operations/workshop/generated/soft-burn.c     |    3 ++-
 operations/workshop/generated/soft-dodge.c    |    3 ++-
 operations/workshop/generated/subtractive.c   |    3 ++-
 9 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/operations/external/matting-levin.c b/operations/external/matting-levin.c
index c5f2dfd..64981a4 100644
--- a/operations/external/matting-levin.c
+++ b/operations/external/matting-levin.c
@@ -1386,14 +1386,14 @@ matting_process (GeglOperation       *operation,
   input  = g_new (gdouble, result->width * result->height * COMPONENTS_INPUT);
   trimap = g_new (gdouble, result->width * result->height * COMPONENTS_AUX);
 
-  gegl_buffer_get (input_buf, 1.0, result, babl_format (FORMAT_INPUT), input, GEGL_AUTO_ROWSTRIDE);
-  gegl_buffer_get (  aux_buf, 1.0, result, babl_format (FORMAT_AUX),  trimap, GEGL_AUTO_ROWSTRIDE);
+  gegl_buffer_get (input_buf, result, 1.0, babl_format (FORMAT_INPUT), input, GEGL_AUTO_ROWSTRIDE);
+  gegl_buffer_get (  aux_buf, result, 1.0, babl_format (FORMAT_AUX),  trimap, GEGL_AUTO_ROWSTRIDE);
 
   output = matting_solve_level (input, trimap, result,
                                 MIN (o->active_levels, o->levels), o->levels,
                                 o->radius, powf (10, o->epsilon), o->lambda,
                                 o->threshold);
-  gegl_buffer_set (output_buf, result, babl_format (FORMAT_OUTPUT), output,
+  gegl_buffer_set (output_buf, result, 0, babl_format (FORMAT_OUTPUT), output,
                    GEGL_AUTO_ROWSTRIDE);
 
   success = TRUE;
diff --git a/operations/external/v4l.c b/operations/external/v4l.c
index 528ad29..deead04 100644
--- a/operations/external/v4l.c
+++ b/operations/external/v4l.c
@@ -284,11 +284,11 @@ process (GeglOperation       *operation,
                 }
             }
         }
-      gegl_buffer_set (output, NULL, NULL, foobuf, GEGL_AUTO_ROWSTRIDE);
+      gegl_buffer_set (output, NULL, 0, NULL, foobuf, GEGL_AUTO_ROWSTRIDE);
     }
   else
     {
-      gegl_buffer_set (output, NULL, NULL, capbuf, GEGL_AUTO_ROWSTRIDE);
+      gegl_buffer_set (output, NULL, 0, NULL, capbuf, GEGL_AUTO_ROWSTRIDE);
     }
   return  TRUE;
 }
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
index ebc5bf1..00beb55 100644
--- a/operations/workshop/external/gluas.c
+++ b/operations/workshop/external/gluas.c
@@ -287,7 +287,7 @@ set_rgba_pixel (void       *data,
     }
 
  gegl_buffer_set (p->out_drawable, &roi,
-                  p->rgba_float, buf,
+                  0, p->rgba_float, buf,
                   GEGL_AUTO_ROWSTRIDE);
 }
 
diff --git a/operations/workshop/external/lens-correct.c b/operations/workshop/external/lens-correct.c
index 2b77918..9939b60 100644
--- a/operations/workshop/external/lens-correct.c
+++ b/operations/workshop/external/lens-correct.c
@@ -419,7 +419,8 @@ static gboolean
 process (GeglOperation       *operation,
          GeglBuffer          *input,
          GeglBuffer          *output,
-         const GeglRectangle *result)
+         const GeglRectangle *result,
+         gint                 level)
 {
   GeglChantO          *o = GEGL_CHANT_PROPERTIES (operation);
   LensCorrectionModel  lens;
@@ -434,7 +435,7 @@ process (GeglOperation       *operation,
   found = find_make_lens (&lens, o, boundary);
   if (!found) make_lens (&lens, o, boundary);
 
-  gegl_buffer_get (input, 1.0, result, babl_format ("RGBA float"),
+  gegl_buffer_get (input, result, 1.0, babl_format ("RGBA float"),
                    src_buf, GEGL_AUTO_ROWSTRIDE);
 
   for (y = result->y; y < result->y + result->height; y++)
@@ -444,7 +445,7 @@ process (GeglOperation       *operation,
                            result, &boundary, &lens, x, y, input);
       }
 
-  gegl_buffer_set (output, result, babl_format ("RGBA float"),
+  gegl_buffer_set (output, result, 0, babl_format ("RGBA float"),
                    dst_buf, GEGL_AUTO_ROWSTRIDE);
 
   g_free (dst_buf);
diff --git a/operations/workshop/generated/blend-reflect.c b/operations/workshop/generated/blend-reflect.c
index fa91334..c1d3bbc 100644
--- a/operations/workshop/generated/blend-reflect.c
+++ b/operations/workshop/generated/blend-reflect.c
@@ -54,7 +54,8 @@ process (GeglOperation       *op,
          void                *aux_buf,
          void                *out_buf,
          glong                n_pixels,
-         const GeglRectangle *roi)
+         const GeglRectangle *roi,
+         gint                 level)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;
diff --git a/operations/workshop/generated/negation.c b/operations/workshop/generated/negation.c
index b576fc2..6ea2283 100644
--- a/operations/workshop/generated/negation.c
+++ b/operations/workshop/generated/negation.c
@@ -54,7 +54,8 @@ process (GeglOperation       *op,
          void                *aux_buf,
          void                *out_buf,
          glong                n_pixels,
-         const GeglRectangle *roi)
+         const GeglRectangle *roi,
+         gint                 level)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;
diff --git a/operations/workshop/generated/soft-burn.c b/operations/workshop/generated/soft-burn.c
index 6e07fdb..ffcc0f9 100644
--- a/operations/workshop/generated/soft-burn.c
+++ b/operations/workshop/generated/soft-burn.c
@@ -54,7 +54,8 @@ process (GeglOperation       *op,
          void                *aux_buf,
          void                *out_buf,
          glong                n_pixels,
-         const GeglRectangle *roi)
+         const GeglRectangle *roi,
+         gint                 level)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;
diff --git a/operations/workshop/generated/soft-dodge.c b/operations/workshop/generated/soft-dodge.c
index ecbdc5c..6e2cf4f 100644
--- a/operations/workshop/generated/soft-dodge.c
+++ b/operations/workshop/generated/soft-dodge.c
@@ -54,7 +54,8 @@ process (GeglOperation       *op,
          void                *aux_buf,
          void                *out_buf,
          glong                n_pixels,
-         const GeglRectangle *roi)
+         const GeglRectangle *roi,
+         gint                 level)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;
diff --git a/operations/workshop/generated/subtractive.c b/operations/workshop/generated/subtractive.c
index fe0bf98..1fd0a9b 100644
--- a/operations/workshop/generated/subtractive.c
+++ b/operations/workshop/generated/subtractive.c
@@ -54,7 +54,8 @@ process (GeglOperation       *op,
          void                *aux_buf,
          void                *out_buf,
          glong                n_pixels,
-         const GeglRectangle *roi)
+         const GeglRectangle *roi,
+         gint                 level)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;



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