gimp r27911 - in trunk: . app/gegl



Author: martinn
Date: Sat Jan 17 21:20:05 2009
New Revision: 27911
URL: http://svn.gnome.org/viewvc/gimp?rev=27911&view=rev

Log:
Adapt to new babl API, s/babl_format/babl_format_from_name/

* app/gegl/gimp-gegl-utils.c
* app/gegl/gimpoperationpointlayermode.c
* app/gegl/gimpoperationtilesource.c


Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimp-gegl-utils.c
   trunk/app/gegl/gimpoperationpointlayermode.c
   trunk/app/gegl/gimpoperationtilesource.c

Modified: trunk/app/gegl/gimp-gegl-utils.c
==============================================================================
--- trunk/app/gegl/gimp-gegl-utils.c	(original)
+++ trunk/app/gegl/gimp-gegl-utils.c	Sat Jan 17 21:20:05 2009
@@ -49,13 +49,13 @@
       switch (bpp)
         {
         case 1:
-          return babl_format ("Y u8");
+          return babl_format_from_name ("Y u8");
         case 2:
-          return babl_format ("YA u8");
+          return babl_format_from_name ("YA u8");
         case 3:
-          return babl_format ("RGB u8");
+          return babl_format_from_name ("RGB u8");
         case 4:
-          return babl_format ("RGBA u8");
+          return babl_format_from_name ("RGBA u8");
         }
     }
   else
@@ -63,13 +63,13 @@
       switch (bpp)
         {
         case 1:
-          return babl_format ("Y' u8");
+          return babl_format_from_name ("Y' u8");
         case 2:
-          return babl_format ("Y'A u8");
+          return babl_format_from_name ("Y'A u8");
         case 3:
-          return babl_format ("R'G'B' u8");
+          return babl_format_from_name ("R'G'B' u8");
         case 4:
-          return babl_format ("R'G'B'A u8");
+          return babl_format_from_name ("R'G'B'A u8");
         }
     }
 

Modified: trunk/app/gegl/gimpoperationpointlayermode.c
==============================================================================
--- trunk/app/gegl/gimpoperationpointlayermode.c	(original)
+++ trunk/app/gegl/gimpoperationpointlayermode.c	Sat Jan 17 21:20:05 2009
@@ -187,7 +187,7 @@
 static void
 gimp_operation_point_layer_mode_prepare (GeglOperation *operation)
 {
-  Babl *format = babl_format ("RaGaBaA float");
+  Babl *format = babl_format_from_name ("RaGaBaA float");
 
   gegl_operation_set_format (operation, "input",  format);
   gegl_operation_set_format (operation, "output", format);

Modified: trunk/app/gegl/gimpoperationtilesource.c
==============================================================================
--- trunk/app/gegl/gimpoperationtilesource.c	(original)
+++ trunk/app/gegl/gimpoperationtilesource.c	Sat Jan 17 21:20:05 2009
@@ -186,7 +186,7 @@
   if (self->tile_manager)
     {
 
-      gegl_operation_set_format (operation, "output", babl_format("RaGaBaA float"));
+      gegl_operation_set_format (operation, "output", babl_format_from_name("RaGaBaA float"));
     }
 }
 



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