Commit 7905a7c0 authored by Martin Nordholts's avatar Martin Nordholts

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

svn path=/trunk/; revision=27911
parent b2794207
2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
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
2009-01-17 Sven Neumann <sven@gimp.org>
Bug 568021 Unused code in unsharp-mask.c
......
......@@ -49,13 +49,13 @@ gimp_bpp_to_babl_format (guint bpp,
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 @@ gimp_bpp_to_babl_format (guint bpp,
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");
}
}
......
......@@ -187,7 +187,7 @@ gimp_operation_point_layer_mode_get_property (GObject *object,
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);
......
......@@ -186,7 +186,7 @@ gimp_operation_tile_source_prepare (GeglOperation *operation)
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"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment