declare gimp_bpp_to_babl_format() as G_GNUC_CONST.

2007-12-29  Sven Neumann  <sven@gimp.org>

	* app/gegl/gimp-gegl-utils.h: declare gimp_bpp_to_babl_format() 
as
	G_GNUC_CONST.


svn path=/trunk/; revision=24463
This commit is contained in:
Sven Neumann
2007-12-29 12:31:10 +00:00
committed by Sven Neumann
parent 1028a2d8b9
commit e77d96641f
3 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2007-12-29 Sven Neumann <sven@gimp.org>
* app/gegl/gimp-gegl-utils.h: declare gimp_bpp_to_babl_format() as
G_GNUC_CONST.
2007-12-29 Michael Natterer <mitch@gimp.org>
* app/gegl/gimpoperationtilesink.c (tile_sink_process): add

View File

@ -35,10 +35,14 @@ gimp_bpp_to_babl_format (guint bpp)
switch (bpp)
{
case 1: return babl_format ("Y' u8");
case 2: return babl_format ("Y'A u8");
case 3: return babl_format ("R'G'B' u8");
case 4: return babl_format ("R'G'B'A u8");
case 1:
return babl_format ("Y' u8");
case 2:
return babl_format ("Y'A u8");
case 3:
return babl_format ("R'G'B' u8");
case 4:
return babl_format ("R'G'B'A u8");
}
return NULL;

View File

@ -23,7 +23,7 @@
#define __GIMP_GEGL_UTILS_H__
const Babl * gimp_bpp_to_babl_format (guint bpp);
const Babl * gimp_bpp_to_babl_format (guint bpp) G_GNUC_CONST;
#endif /* __GIMP_GEGL_UTILS_H__ */