cache the data in "RaGaBa A" float instead as a copy of the tile managers

* app/gegl/gimpoperationtilesource.c:
(gimp_operation_tile_source_prepare),
(gimp_operation_tile_source_process): cache the data in "RaGaBa A"
float instead as a copy of the tile managers exact data, this allows
more direct tile data access at projection compositing time.

svn path=/trunk/; revision=27632
This commit is contained in:
Øyvind Kolås 2008-11-12 20:43:36 +00:00
parent d990457022
commit f742f2137e
2 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2008-11-12 Øyvind Kolås <pippin@gimp.org>
* app/gegl/gimpoperationtilesource.c:
(gimp_operation_tile_source_prepare),
(gimp_operation_tile_source_process): cache the data in "RaGaBa A"
float instead as a copy of the tile managers exact data, this allows
more direct tile data access at projection compositing time.
2008-11-12 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpbase.def: sorted.

View file

@ -185,12 +185,8 @@ gimp_operation_tile_source_prepare (GeglOperation *operation)
if (self->tile_manager)
{
const Babl *format;
format = gimp_bpp_to_babl_format (tile_manager_bpp (self->tile_manager),
self->linear);
gegl_operation_set_format (operation, "output", format);
gegl_operation_set_format (operation, "output", babl_format("RaGaBaA float"));
}
}
@ -224,7 +220,8 @@ gimp_operation_tile_source_process (GeglOperation *operation,
if (! self->tile_manager)
return FALSE;
format = gegl_operation_get_format (operation, "output");
format = gimp_bpp_to_babl_format (tile_manager_bpp (self->tile_manager),
self->linear);
pixel_region_init (&srcPR, self->tile_manager,
result->x, result->y,