[gegl/gsoc2009-gpu: 2/15] Implement gegl_tile_get_format()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl/gsoc2009-gpu: 2/15] Implement gegl_tile_get_format()
- Date: Wed, 24 Jun 2009 05:38:09 +0000 (UTC)
commit 68828e9cc622da56249582c9280b07430b99dfc1
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Sat Jun 13 02:07:20 2009 +0800
Implement gegl_tile_get_format()
Implement gegl_tile_get_format() by looking-up the format through the
tile's tile storage.
gegl/buffer/gegl-tile.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile.c b/gegl/buffer/gegl-tile.c
index 4e0febc..5dc8528 100644
--- a/gegl/buffer/gegl-tile.c
+++ b/gegl/buffer/gegl-tile.c
@@ -230,6 +230,12 @@ gegl_tile_new (gint size)
return tile;
}
+void *
+gegl_tile_get_format (GeglTile *tile)
+{
+ return (void *) tile->tile_storage->format;
+}
+
static gpointer
gegl_memdup (gpointer src, gsize size)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]