[gegl] buffer: Move defines in gegl-tile.h to the end
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: Move defines in gegl-tile.h to the end
- Date: Fri, 23 Jul 2010 13:38:00 +0000 (UTC)
commit 2ea207cd8c96315927aed39abb1c590f7db8cbc8
Author: Martin Nordholts <martinn src gnome org>
Date: Fri Jul 23 13:56:01 2010 +0200
buffer: Move defines in gegl-tile.h to the end
Move defines in gegl-tile.h to the end, this makes the file look
prettier.
gegl/buffer/gegl-tile.h | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile.h b/gegl/buffer/gegl-tile.h
index 30cf69c..9bf7b15 100644
--- a/gegl/buffer/gegl-tile.h
+++ b/gegl/buffer/gegl-tile.h
@@ -71,9 +71,6 @@ void * gegl_tile_get_format (GeglTile *tile);
* later gotten with get_data()
*/
void gegl_tile_lock (GeglTile *tile);
-/* get a pointer to the linear buffer of the tile.
- */
-#define gegl_tile_get_data(tile) ((guchar*)((tile)->data))
/* unlock the tile notifying the tile that we're done manipulating
* the data.
@@ -87,6 +84,16 @@ gboolean gegl_tile_store (GeglTile *tile);
void gegl_tile_void (GeglTile *tile);
GeglTile *gegl_tile_dup (GeglTile *tile);
+/* utility low-level functions used by an undo system in horizon
+ * where the geglbufer originated, kept around in case they
+ * become useful again
+ */
+void gegl_tile_swp (GeglTile *a,
+ GeglTile *b);
+void gegl_tile_cpy (GeglTile *src,
+ GeglTile *dst);
+
+
/* computes the positive integer remainder (also for negative dividends)
*/
#define GEGL_REMAINDER(dividend, divisor) \
@@ -94,6 +101,10 @@ GeglTile *gegl_tile_dup (GeglTile *tile);
(divisor) - 1 - ((-((dividend) + 1)) % (divisor)) : \
(dividend) % (divisor))
+/* get a pointer to the linear buffer of the tile.
+ */
+#define gegl_tile_get_data(tile) ((guchar*)((tile)->data))
+
#define gegl_tile_offset(coordinate, stride) GEGL_REMAINDER((coordinate), (stride))
/* helper function to compute tile indices and offsets for coordinates
@@ -104,13 +115,5 @@ GeglTile *gegl_tile_dup (GeglTile *tile);
(coordinate) / (stride):\
((((coordinate) + 1) /(stride)) - 1))
-/* utility low-level functions used by an undo system in horizon
- * where the geglbufer originated, kept around in case they
- * become useful again
- */
-void gegl_tile_swp (GeglTile *a,
- GeglTile *b);
-void gegl_tile_cpy (GeglTile *src,
- GeglTile *dst);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]