gegl r2995 - in trunk: . gegl/buffer
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2995 - in trunk: . gegl/buffer
- Date: Thu, 26 Mar 2009 20:16:07 +0000 (UTC)
Author: martinn
Date: Thu Mar 26 20:16:07 2009
New Revision: 2995
URL: http://svn.gnome.org/viewvc/gegl?rev=2995&view=rev
Log:
Rename pset/get() to gegl_buffer_pixel_set/get()
Patch from Henrik Akesson that renames pset()/pget() to
gegl_buffer_pixel_set() and gegl_buffer_pixel_get() in order to
improve readability of code and to conform to gegl coding standards.
Modified:
trunk/ChangeLog
trunk/gegl/buffer/gegl-buffer-access.c
trunk/gegl/buffer/gegl-buffer-private.h
Modified: trunk/gegl/buffer/gegl-buffer-access.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer-access.c (original)
+++ trunk/gegl/buffer/gegl-buffer-access.c Thu Mar 26 20:16:07 2009
@@ -50,11 +50,11 @@
#if 0
static inline void
-pset (GeglBuffer *buffer,
- gint x,
- gint y,
- const Babl *format,
- guchar *buf)
+gegl_buffer_pixel_set (GeglBuffer *buffer,
+ gint x,
+ gint y,
+ const Babl *format,
+ guchar *buf)
{
gint tile_width = buffer->tile_storage->tile_width;
gint tile_height = buffer->tile_storage->tile_width;
@@ -116,11 +116,11 @@
#endif
static inline void
-pset (GeglBuffer *buffer,
- gint x,
- gint y,
- const Babl *format,
- gpointer data)
+gegl_buffer_set_pixel (GeglBuffer *buffer,
+ gint x,
+ gint y,
+ const Babl *format,
+ gpointer data)
{
guchar *buf = data;
gint tile_width = buffer->tile_storage->tile_width;
@@ -200,11 +200,11 @@
}
static inline void
-pget (GeglBuffer *buffer,
- gint x,
- gint y,
- const Babl *format,
- gpointer data)
+gegl_buffer_get_pixel (GeglBuffer *buffer,
+ gint x,
+ gint y,
+ const Babl *format,
+ gpointer data)
{
guchar *buf = data;
gint tile_width = buffer->tile_storage->tile_width;
@@ -595,7 +595,7 @@
if (rect && rect->width == 1 && rect->height == 1) /* fast path */
{
- pset (buffer, rect->x, rect->y, format, src);
+ gegl_buffer_set_pixel (buffer, rect->x, rect->y, format, src);
}
else
{
@@ -949,7 +949,7 @@
rect->width == 1 &&
rect->height == 1) /* fast path */
{
- pget (buffer, rect->x, rect->y, format, dest_buf);
+ gegl_buffer_get_pixel (buffer, rect->x, rect->y, format, dest_buf);
#if ENABLE_MP
g_static_rec_mutex_unlock (&mutex);
#endif
@@ -1086,7 +1086,7 @@
/*#define USE_WORKING_SHORTCUT*/
#ifdef USE_WORKING_SHORTCUT
- pget (buffer, x, y, format, dest);
+ gegl_buffer_get_pixel (buffer, x, y, format, dest);
return;
#endif
Modified: trunk/gegl/buffer/gegl-buffer-private.h
==============================================================================
--- trunk/gegl/buffer/gegl-buffer-private.h (original)
+++ trunk/gegl/buffer/gegl-buffer-private.h Thu Mar 26 20:16:07 2009
@@ -47,8 +47,8 @@
GeglRectangle abyss;
- GeglTile *hot_tile; /* cached tile for speeding up pget/pset (1x1
- sized gets/sets)*/
+ GeglTile *hot_tile; /* cached tile for speeding up gegl_buffer_get_pixel
+ and gegl_buffer_set_pixel (1x1 sized gets/sets)*/
GeglSampler *sampler; /* cached sampler for speeding up random
access interpolated fetches from the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]