[gegl/gsoc2009-gpu: 1/15] Rename gegl_tile_indice() to gegl_tile_index() and update all references to it
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl/gsoc2009-gpu: 1/15] Rename gegl_tile_indice() to gegl_tile_index() and update all references to it
- Date: Wed, 24 Jun 2009 05:38:04 +0000 (UTC)
commit bce3469f21fcb23a08f2fd8483a70dd3680056c3
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Fri Jun 12 20:23:07 2009 +0800
Rename gegl_tile_indice() to gegl_tile_index() and update all references to it
gegl/buffer/gegl-buffer-access.c | 16 ++++++++--------
gegl/buffer/gegl-buffer-iterator.c | 4 ++--
gegl/buffer/gegl-buffer-save.c | 4 ++--
gegl/buffer/gegl-buffer.c | 4 ++--
gegl/buffer/gegl-tile.h | 2 +-
5 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index c36520a..5470837 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -88,8 +88,8 @@ gegl_buffer_pixel_set (GeglBuffer *buffer,
gint tiledx = buffer_x + buffer->shift_x + x;
GeglTile *tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
- gegl_tile_indice (tiledx, tile_width),
- gegl_tile_indice (tiledy, tile_height),
+ gegl_tile_index (tiledx, tile_width),
+ gegl_tile_index (tiledy, tile_height),
0);
if (tile)
@@ -170,8 +170,8 @@ gegl_buffer_set_pixel (GeglBuffer *buffer,
}
else
{
- gint indice_x = gegl_tile_indice (tiledx, tile_width);
- gint indice_y = gegl_tile_indice (tiledy, tile_height);
+ gint indice_x = gegl_tile_index (tiledx, tile_width);
+ gint indice_y = gegl_tile_index (tiledy, tile_height);
GeglTile *tile = NULL;
if (buffer->hot_tile &&
@@ -248,8 +248,8 @@ gegl_buffer_get_pixel (GeglBuffer *buffer,
}
else
{
- gint indice_x = gegl_tile_indice (tiledx, tile_width);
- gint indice_y = gegl_tile_indice (tiledy, tile_height);
+ gint indice_x = gegl_tile_index (tiledx, tile_width);
+ gint indice_y = gegl_tile_index (tiledy, tile_height);
GeglTile *tile = NULL;
if (buffer->hot_tile &&
@@ -458,8 +458,8 @@ gegl_buffer_iterate (GeglBuffer *buffer,
{
guchar *tile_base, *tp;
GeglTile *tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
- gegl_tile_indice (tiledx, tile_width),
- gegl_tile_indice (tiledy, tile_height),
+ gegl_tile_index (tiledx, tile_width),
+ gegl_tile_index (tiledy, tile_height),
level);
gint lskip = (buffer_abyss_x) - (buffer_x + bufx);
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index 3c7d16b..537069f 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -182,8 +182,8 @@ gulp:
i->subrect.height = tile_height - offsety;
i->tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
- gegl_tile_indice (tiledx, tile_width),
- gegl_tile_indice (tiledy, tile_height),
+ gegl_tile_index (tiledx, tile_width),
+ gegl_tile_index (tiledy, tile_height),
0);
if (i->write && tile_width==i->subrect.width)
{
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index e9f2ab1..5a8f7e7 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -295,8 +295,8 @@ gegl_buffer_save (GeglBuffer *buffer,
gint tiledx = buffer->extent.x + bufx;
gint offsetx = gegl_tile_offset (tiledx, tile_width);
- gint tx = gegl_tile_indice (tiledx / factor, tile_width);
- gint ty = gegl_tile_indice (tiledy / factor, tile_height);
+ gint tx = gegl_tile_index (tiledx / factor, tile_width);
+ gint ty = gegl_tile_index (tiledy / factor, tile_height);
if (gegl_tile_source_exist (GEGL_TILE_SOURCE (buffer), tx, ty, z))
{
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 352147e..fcb8135 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -1133,7 +1133,7 @@ gegl_buffer_void (GeglBuffer *buffer)
gint tiledy = buffer->extent.y + buffer->shift_y + bufy;
gint offsety = gegl_tile_offset (tiledy, tile_height);
gint bufx = 0;
- gint ty = gegl_tile_indice (tiledy / factor, tile_height);
+ gint ty = gegl_tile_index (tiledy / factor, tile_height);
if (z != 0 || /* FIXME: handle z==0 correctly */
ty >= buffer->min_y)
@@ -1142,7 +1142,7 @@ gegl_buffer_void (GeglBuffer *buffer)
gint tiledx = buffer->extent.x + buffer->shift_x + bufx;
gint offsetx = gegl_tile_offset (tiledx, tile_width);
- gint tx = gegl_tile_indice (tiledx / factor, tile_width);
+ gint tx = gegl_tile_index (tiledx / factor, tile_width);
if (z != 0 ||
tx >= buffer->min_x)
diff --git a/gegl/buffer/gegl-tile.h b/gegl/buffer/gegl-tile.h
index 07ba5c2..86f973a 100644
--- a/gegl/buffer/gegl-tile.h
+++ b/gegl/buffer/gegl-tile.h
@@ -112,7 +112,7 @@ GeglTile *gegl_tile_dup (GeglTile *tile);
/* helper function to compute tile indices and offsets for coordinates
* based on a tile stride (tile_width or tile_height)
*/
-#define gegl_tile_indice(coordinate,stride) \
+#define gegl_tile_index(coordinate,stride) \
(((coordinate) >= 0)?\
(coordinate) / (stride):\
((((coordinate) + 1) /(stride)) - 1))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]