[gegl] tests: adapt to new API



commit 476b9af70cf35e5f2b29edde5cace398b07f5ace
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Mar 26 02:59:41 2012 +0100

    tests: adapt to new API

 tests/buffer/buffer-test.c                   |   12 ++++++++----
 tests/buffer/tests/test_get_buffer_scaled.c  |    3 ++-
 tests/buffer/tests/test_get_buffer_scaled2.c |    3 ++-
 3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/tests/buffer/buffer-test.c b/tests/buffer/buffer-test.c
index 9a01846..7d87cf0 100644
--- a/tests/buffer/buffer-test.c
+++ b/tests/buffer/buffer-test.c
@@ -149,7 +149,8 @@ print_buffer_internal (GString    *gstring,
                         "height", &height,
                         NULL);
   buf = g_malloc (width*height*sizeof(gfloat));
-  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0);
+  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0,
+                   GEGL_ABYSS_NONE);
   print_linear_buffer_internal_float (gstring, width, height, buf);
   g_free (buf);
 }
@@ -168,7 +169,8 @@ fill (GeglBuffer *buffer,
                         "height", &height,
                         NULL);
   buf = g_malloc (width*height*sizeof(gfloat));
-  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0);
+  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0,
+                   GEGL_ABYSS_NONE);
 
   i=0;
   for (y=0;y<height;y++)
@@ -197,7 +199,8 @@ static void checkerboard          (GeglBuffer *buffer,
                         "height", &height,
                         NULL);
   buf = g_malloc (width*height*sizeof(gfloat));
-  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0);
+  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0,
+                   GEGL_ABYSS_NONE);
 
   i=0;
   for (y=0;y<height;y++)
@@ -240,7 +243,8 @@ static void vgrad (GeglBuffer *buffer)
                         "height", &height,
                         NULL);
   buf = g_malloc (width*height*sizeof(gfloat));
-  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0);
+  gegl_buffer_get (buffer, NULL, 1.0, babl_format ("Y float"), buf, 0,
+                   GEGL_ABYSS_NONE);
 
   i=0;
   for (y=0;y<height;y++)
diff --git a/tests/buffer/tests/test_get_buffer_scaled.c b/tests/buffer/tests/test_get_buffer_scaled.c
index 0b8da49..c7b5ea2 100644
--- a/tests/buffer/tests/test_get_buffer_scaled.c
+++ b/tests/buffer/tests/test_get_buffer_scaled.c
@@ -18,7 +18,8 @@ TEST ()
         {
           getrect.x=i;
           /*getrect.y=i;*/
-          gegl_buffer_get (buffer, &getrect, 1.2, babl_format ("Y u8"), buf, 0);
+          gegl_buffer_get (buffer, &getrect, 1.2, babl_format ("Y u8"), buf, 0,
+                           GEGL_ABYSS_NONE);
           print_linear_buffer_u8 (getrect.width, getrect.height, buf);
         }
     }
diff --git a/tests/buffer/tests/test_get_buffer_scaled2.c b/tests/buffer/tests/test_get_buffer_scaled2.c
index ab4da47..0b2458e 100644
--- a/tests/buffer/tests/test_get_buffer_scaled2.c
+++ b/tests/buffer/tests/test_get_buffer_scaled2.c
@@ -11,7 +11,8 @@ TEST ()
   checkerboard (buffer, 2, 0.0, 1.0);
   buf = g_malloc (getrect.width*getrect.height*sizeof(gfloat));
 
-  gegl_buffer_get (buffer, &getrect, 0.66, babl_format ("Y u8"), buf, 0);
+  gegl_buffer_get (buffer, &getrect, 0.66, babl_format ("Y u8"), buf, 0,
+                   GEGL_ABYSS_NONE);
 
 
   print_linear_buffer_u8 (getrect.width, getrect.height, buf);



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