gegl r2388 - in trunk: . gegl/buffer



Author: ok
Date: Fri Jun  6 01:11:20 2008
New Revision: 2388
URL: http://svn.gnome.org/viewvc/gegl?rev=2388&view=rev

Log:
* gegl/buffer/gegl-buffer.[ch]: added gegl_buffer_get_format accessor.


Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-buffer.c
   trunk/gegl/buffer/gegl-buffer.h

Modified: trunk/gegl/buffer/gegl-buffer.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.c	(original)
+++ trunk/gegl/buffer/gegl-buffer.c	Fri Jun  6 01:11:20 2008
@@ -1019,6 +1019,12 @@
   }
 }
 
+
+const Babl    *gegl_buffer_get_format        (GeglBuffer           *buffer)
+{
+  return buffer?buffer->format:0;
+}
+
 gboolean gegl_buffer_is_shared (GeglBuffer *buffer)
 {
   GeglTileBackend *backend = gegl_buffer_backend (buffer);

Modified: trunk/gegl/buffer/gegl-buffer.h
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.h	(original)
+++ trunk/gegl/buffer/gegl-buffer.h	Fri Jun  6 01:11:20 2008
@@ -239,6 +239,8 @@
                                                gint                 rowstride);
 
 
+const Babl    *gegl_buffer_get_format        (GeglBuffer           *buffer);
+
 /**
  * gegl_buffer_clear:
  * @buffer: a #GeglBuffer



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