[gegl/gsoc2009-gpu] GeglBufferIterator: Minor code cleanup



commit a04ada1024e44ca24379a9927c3920921116c2e5
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date:   Mon Jul 6 04:19:41 2009 +0800

    GeglBufferIterator: Minor code cleanup

 gegl/buffer/gegl-buffer-iterator.c |    6 ++++--
 gegl/buffer/gegl-buffer-iterator.h |   12 ++++++++----
 2 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index 0dd5158..9c39a76 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -377,14 +377,16 @@ iterator_buf_pool_release (gpointer buf)
 }
 
 typedef struct GpuTextureInfo {
-  gint            used; /* if this buffer is currently allocated */
+  gint            used; /* if this texture is currently allocated */
   GeglGpuTexture *texture;
 } GpuTextureInfo;
 
 static GArray *gpu_texture_pool = NULL;
 
 static GeglGpuTexture *
-iterator_gpu_texture_pool_get (gint width, gint height, const Babl *format)
+iterator_gpu_texture_pool_get (gint width,
+                               gint height,
+                               const Babl *format)
 {
   gint cnt;
 
diff --git a/gegl/buffer/gegl-buffer-iterator.h b/gegl/buffer/gegl-buffer-iterator.h
index 0d0b6f5..0020832 100644
--- a/gegl/buffer/gegl-buffer-iterator.h
+++ b/gegl/buffer/gegl-buffer-iterator.h
@@ -38,9 +38,12 @@
 typedef struct GeglBufferIterator
 {
   gint            length;
+
   gpointer        data    [GEGL_BUFFER_MAX_ITERABLES];
   GeglGpuTexture *gpu_data[GEGL_BUFFER_MAX_ITERABLES];
+
   GeglRectangle   roi     [GEGL_BUFFER_MAX_ITERABLES];
+
 } GeglBufferIterator;
 
 /**
@@ -74,13 +77,14 @@ void                gegl_buffer_iterator_free    (GeglBufferIterator  *i);
  * @iterator: a #GeglBufferIterator
  * @buffer: a #GeglBuffer
  * @roi: the rectangle to iterate over
- * @format: the format we want to process this buffers data in, pass 0 to use the buffers format.
+ * @format: the format we want to process this buffers data in, pass 0 to use
+ * the buffers format.
  * @flags: whether we need reading or writing to this buffer.
  *
  * Adds an additional buffer iterable that will be processed in sync with
- * the original one, if the buffer doesn't align with the other for tile access,
- * the corresponding scans and regions will be serialized automatically using
- * gegl_buffer_get.
+ * the original one, if the buffer doesn't align with the other for tile
+ * access, the corresponding scans and regions will be serialized automatically
+ * using gegl_buffer_get.
  *
  * Returns: an integer handle refering to the index in the iterator structure
  * of the added buffer.



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