gegl r2151 - in trunk: . gegl gegl/buffer
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2151 - in trunk: . gegl gegl/buffer
- Date: Sun, 6 Apr 2008 13:21:58 +0100 (BST)
Author: neo
Date: Sun Apr 6 13:21:58 2008
New Revision: 2151
URL: http://svn.gnome.org/viewvc/gegl?rev=2151&view=rev
Log:
2008-04-06 Sven Neumann <sven gimp org>
* gegl/buffer/gegl-buffer-private.h: added a prototype for
gegl_swap_dir().
* gegl/gegl-init.c: removed gegl_swap_dir() prototype here.
* gegl/buffer/gegl-buffer-load.c: include gegl-buffer-load.h.
* gegl/buffer/gegl-sampler-lanczos.c (lanczos_lookup): don't mix
code and declarations.
Modified:
trunk/ChangeLog
trunk/gegl/buffer/gegl-buffer-allocator.c
trunk/gegl/buffer/gegl-buffer-load.c
trunk/gegl/buffer/gegl-buffer-private.h
trunk/gegl/buffer/gegl-sampler-lanczos.c
trunk/gegl/gegl-init.c
Modified: trunk/gegl/buffer/gegl-buffer-allocator.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer-allocator.c (original)
+++ trunk/gegl/buffer/gegl-buffer-allocator.c Sun Apr 6 13:21:58 2008
@@ -39,6 +39,7 @@
#include "gegl-storage.h"
#include "gegl-buffer-allocator.h"
+
G_DEFINE_TYPE (GeglBufferAllocator, gegl_buffer_allocator, GEGL_TYPE_BUFFER)
static GObjectClass * parent_class = NULL;
Modified: trunk/gegl/buffer/gegl-buffer-load.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer-load.c (original)
+++ trunk/gegl/buffer/gegl-buffer-load.c Sun Apr 6 13:21:58 2008
@@ -37,6 +37,7 @@
#include "gegl-buffer-types.h"
#include "gegl-buffer.h"
+#include "gegl-buffer-load.h"
#include "gegl-storage.h"
#include "gegl-tile-backend.h"
#include "gegl-handler.h"
Modified: trunk/gegl/buffer/gegl-buffer-private.h
==============================================================================
--- trunk/gegl/buffer/gegl-buffer-private.h (original)
+++ trunk/gegl/buffer/gegl-buffer-private.h Sun Apr 6 13:21:58 2008
@@ -81,5 +81,6 @@
*/
void gegl_buffer_flush (GeglBuffer *buffer);
+const gchar * gegl_swap_dir (void);
#endif
Modified: trunk/gegl/buffer/gegl-sampler-lanczos.c
==============================================================================
--- trunk/gegl/buffer/gegl-sampler-lanczos.c (original)
+++ trunk/gegl/buffer/gegl-sampler-lanczos.c Sun Apr 6 13:21:58 2008
@@ -264,17 +264,18 @@
{
GeglSamplerLanczos *self = GEGL_SAMPLER_LANCZOS (sampler);
- if (self->lanczos_lookup != NULL)
- g_free (self->lanczos_lookup);
-
const gint lanczos_width = self->lanczos_width;
const gint samples = (self->lanczos_spp * (lanczos_width + 1));
const gdouble dx = (gdouble) lanczos_width / (gdouble) (samples - 1);
- self->lanczos_lookup = g_new (gfloat, samples);
gdouble x = 0.0;
gint i;
+ if (self->lanczos_lookup != NULL)
+ g_free (self->lanczos_lookup);
+
+ self->lanczos_lookup = g_new (gfloat, samples);
+
for (i = 0; i < samples; i++)
{
self->lanczos_lookup[i] = ((ABS (x) < lanczos_width) ?
Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c (original)
+++ trunk/gegl/gegl-init.c Sun Apr 6 13:21:58 2008
@@ -136,9 +136,6 @@
void gegl_tile_mem_stats (void);
-
-const gchar *gegl_swap_dir (void);
-
void
gegl_exit (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]