synced from GEGL. removed, since none of it's provided functionlity is any

* app/gegl/gegl/gegl-operation.h: synced from GEGL.
* app/gegl/gegl/graph/gegl-node-context.h: removed, since none
of it's provided functionlity is any longer used by the GIMP
implemented ops.
* app/gegl/gegl/graph/: removed.

svn path=/trunk/; revision=24631
This commit is contained in:
Øyvind Kolås 2008-01-17 00:52:00 +00:00
parent 6e1f1ce140
commit 5a3660b1bb
3 changed files with 10 additions and 114 deletions

View File

@ -1,8 +1,16 @@
2008-01-16 Øyvind Kolås <pippin@gimp.org>
* app/gegl/gegl/gegl-operation.h: synced from GEGL.
* app/gegl/gegl/graph/gegl-node-context.h: removed, since none
of it's provided functionlity is any longer used by the GIMP
implemented ops.
* app/gegl/gegl/graph/: removed.
2008-01-16 Øyvind Kolås <pippin@gimp.org>
* app/gegl/gegl/buffer/gegl-buffer-types.h: removed.
* app/gegl/gegl/buffer/: removed.
* app/gegl/gegl/gegl-operation.h: synced from gegl. Now includes
* app/gegl/gegl/gegl-operation.h: synced from GEGL. Now includes
the installed gegl-buffer.h which contains the public typedefs
needed for implementing operations anyways.

View File

@ -23,7 +23,7 @@
#include <glib-object.h>
#include <babl/babl.h>
#include "gegl-types.h"
#include "buffer/gegl-buffer.h"
#include "gegl/buffer/gegl-buffer.h"
G_BEGIN_DECLS

View File

@ -1,112 +0,0 @@
/* This file is part of GEGL
*
* GEGL is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* GEGL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2003 Calvin Williamson
* 2006 Øyvind Kolås
*/
#ifndef __GEGL_NODE_CONTEXT_H__
#define __GEGL_NODE_CONTEXT_H__
#include <gegl/buffer/gegl-buffer.h>
G_BEGIN_DECLS
#define GEGL_TYPE_NODE_CONTEXT (gegl_node_context_get_type ())
#define GEGL_NODE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_NODE_CONTEXT, GeglNodeContext))
#define GEGL_NODE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_NODE_CONTEXT, GeglNodeContextClass))
#define GEGL_IS_NODE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_NODE_CONTEXT))
#define GEGL_IS_NODE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_NODE_CONTEXT))
#define GEGL_NODE_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_NODE_CONTEXT, GeglNodeContextClass))
typedef struct _GeglNodeContextClass GeglNodeContextClass;
struct _GeglNodeContext
{
GObject parent_instance;
GeglNode *node;
gpointer context_id;
GeglRectangle need_rect; /* the rectangle needed from this node */
GeglRectangle result_rect; /* the result computation rectangle for this node,
(will differ if the needed rect extends beyond
the defined rectangle, some operations might
event force/suggest expansion of the result
rect.. (contrast stretch?))
*/
gboolean cached; /* true if the cache can be used directly, and
recomputation of inputs is unneccesary) */
gint refs; /* set to number of nodes that depends on it
before evaluation begins, each time data is
fetched from the op the reference count is
dropped, when it drops to zero, the op is
asked to clean it's pads
*/
GSList *property; /* used internally for data being exchanged */
};
struct _GeglNodeContextClass
{
GObjectClass parent_class;
};
GType gegl_node_context_get_type (void) G_GNUC_CONST;
GeglBuffer *gegl_node_context_get_target (GeglNodeContext *self,
const gchar *padname);
GeglBuffer *gegl_node_context_get_source (GeglNodeContext *self,
const gchar *padname);
GObject *gegl_node_context_get_object (GeglNodeContext *context,
const gchar *padname);
void gegl_node_context_set_object (GeglNodeContext *context,
const gchar *padname,
GObject *data);
void gegl_node_context_set_property (GeglNodeContext *node,
const gchar *name,
const GValue *value);
void gegl_node_context_get_property (GeglNodeContext *node,
const gchar *name,
GValue *value);
/* the rest of these functions are for internal use only */
void gegl_node_context_remove_property (GeglNodeContext *self,
const gchar *name);
GeglRectangle * gegl_node_context_get_need_rect (GeglNodeContext *node);
void gegl_node_context_set_need_rect (GeglNodeContext *node,
gint x,
gint y,
gint width,
gint height);
GeglRectangle * gegl_node_context_get_result_rect (GeglNodeContext *node);
void gegl_node_context_set_result_rect (GeglNodeContext *node,
gint x,
gint y,
gint width,
gint height);
G_END_DECLS
#endif /* __GEGL_NODE_H__ */