Commit 609f7730 authored by Øyvind Kolås's avatar Øyvind Kolås

modified to not generate as many warnings about not priorly declared

* gegl/gegl-chant.h: modified to not generate as many warnings about
not priorly declared function prototypes.
* gegl/gegl-dot.c: add function prototype.
* gegl/gegl-init.c: do not add an erronious pkg-config
lineto the makefile.
* gegl/operation/gegl-operation.h: added protoype for
gegl_list_properties()
* operations/common/gaussian-blur.c:
* operations/common/mblur.c:
* operations/external/ff-load.c:
* operations/external/png-load.c:
* operations/external/png-save.c:
* operations/external/svg-load.c: Fixed lack off function
declarations/made functions static.

svn path=/trunk/; revision=2153
parent 2ca6c6da
2008-04-06 Øyvind Kolås <pippin@gimp.org>
* gegl/gegl-chant.h: modified to not generate as many warnings about
not priorly declared function prototypes.
* gegl/gegl-dot.c: add function prototype.
* gegl/gegl-init.c: do not add an erronious pkg-config
lineto the makefile.
* gegl/operation/gegl-operation.h: added protoype for
gegl_list_properties()
* operations/common/gaussian-blur.c:
* operations/common/mblur.c:
* operations/external/ff-load.c:
* operations/external/png-load.c:
* operations/external/png-save.c:
* operations/external/svg-load.c: Fixed lack off function
declarations/made functions static.
2008-04-06 Øyvind Kolås <pippin@gimp.org>
* gegl/buffer/gegl-handlers.c: removed unused static variable
......
......@@ -29,7 +29,7 @@
#include <gegl-plugin.h>
GType gegl_chant_get_type ();
GType gegl_chant_get_type (void);
typedef struct _GeglChantO GeglChantO;
typedef struct _GeglChant GeglChant;
......@@ -256,6 +256,10 @@ static const GeglModuleInfo modinfo =
GEGL_MODULE_ABI_VERSION
};
/* prototypes added to silence warnings from gcc for -Wmissing-prototypes*/
gboolean gegl_module_register (GTypeModule *module);
const GeglModuleInfo * gegl_module_query (GTypeModule *module);
G_MODULE_EXPORT const GeglModuleInfo *
gegl_module_query (GTypeModule *module)
{
......
......@@ -28,6 +28,10 @@
#include "graph/gegl-connection.h"
#include "gegl.h"
gchar * gegl_to_dot (GeglNode *node); /* this should be in a gegl-dot.h header
* for consistency?
*/
static void
gegl_add_graph (GString *string,
GeglNode *node,
......
......@@ -327,7 +327,7 @@ static const gchar *makefile (void)
"# add a dedicated target with the extra bits linked in.\n"
"\n\n"
"CFLAGS += `pkg-config gegl --cflags` -I. -fPIC\n"
"LDFLAGS += `pkg-config --libs` -shared\n"
/*"LDFLAGS += `pkg-config --libs` -shared\n"*/
"SHREXT=.so\n"
"CFILES = $(wildcard ./*.c)\n"
"SOBJS = $(subst ./,,$(CFILES:.c=$(SHREXT)))\n"
......
......@@ -201,6 +201,9 @@ const Babl * gegl_operation_get_format (GeglOperation *operation,
GeglNode * gegl_operation_get_source_node (GeglOperation *operation,
const gchar *pad_name);
GParamSpec ** gegl_list_properties (const gchar *operation_type,
guint *n_properties_p);
G_END_DECLS
/***
......
......@@ -415,12 +415,14 @@ process (GeglOperation *operation,
gdouble B, b[4];
gdouble *cmatrix;
gint cmatrix_len;
gboolean force_iir;
gboolean force_fir;
temp = gegl_buffer_new (gegl_buffer_get_extent (input),
babl_format ("RaGaBaA float"));
gboolean force_iir = o->filter && !strcmp (o->filter, "iir");
gboolean force_fir = o->filter && !strcmp (o->filter, "fir");
force_iir = o->filter && !strcmp (o->filter, "iir");
force_fir = o->filter && !strcmp (o->filter, "fir");
if ((force_iir || o->std_dev_x > 1.0) && !force_fir)
{
......
......@@ -35,15 +35,15 @@ typedef struct
static void
init (GeglChantO *operation)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
Priv *priv = (Priv*)o->chant_data;
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
Priv *priv = (Priv*)o->chant_data;
GeglRectangle extent = {0,0,1024,1024};
g_assert (priv == NULL);
priv = g_new0 (Priv, 1);
o->chant_data = (void*) priv;
GeglRectangle extent = {0,0,1024,1024};
priv->acc = gegl_buffer_new (&extent, babl_format ("RGBA float"));
}
......
......@@ -17,7 +17,7 @@
*/
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_path (path, "File", "", "Path of file to load.")
gegl_chant_path (path, "File", "/home/pippin/input.avi", "Path of file to load.")
gegl_chant_int (frame, "Frame", 0, 1000000, 0, "frame number")
#else
......
......@@ -224,10 +224,10 @@ gegl_buffer_import_png (GeglBuffer *gegl_buffer,
return 0;
}
gint query_png (const gchar *path,
gint *width,
gint *height,
gpointer *format)
static gint query_png (const gchar *path,
gint *width,
gint *height,
gpointer *format)
{
png_uint_32 w;
png_uint_32 h;
......
......@@ -32,6 +32,18 @@ gegl_chant_int (compression, "Compression",
#include <png.h>
#include <stdio.h>
/* this call is available when the png-save plug-in is loaded,
* it might have to be dlsymed to be used?
*/
gint
gegl_buffer_export_png (GeglBuffer *gegl_buffer,
const gchar *path,
gint compression,
gint src_x,
gint src_y,
gint width,
gint height);
gint
gegl_buffer_export_png (GeglBuffer *gegl_buffer,
const gchar *path,
......
......@@ -118,7 +118,7 @@ load_get_size_callback (gint *width,
vals->resolution = 0.0;
}
gint
static gint
query_svg (const gchar *path,
gint *width,
gint *height)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment