specify that this operation does not need the full buffer available before

* app/gegl/gimpoperationtilesink.c: specify that this operation does
not need the full buffer available before "flushing" the sink.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation.h: updated copy of headers.

svn path=/trunk/; revision=24479
This commit is contained in:
Øyvind Kolås
2007-12-30 15:12:07 +00:00
parent 10a38da7de
commit 772d2629c3
4 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,11 @@
2007-12-30 Øyvind Kolås <pippin@gimp.org>
* app/gegl/gimpoperationtilesink.c: specify that this operation does
not need the full buffer available before "flushing" the sink.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation.h: updated copy of headers.
2007-12-30 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpegqual.c (quant_info): added entry for Canon

View File

@ -30,6 +30,8 @@ extern "C" {
#define GEGL_OPERATION_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_OPERATION_SINK, GeglOperationSink))
#define GEGL_OPERATION_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_OPERATION_SINK, GeglOperationSinkClass))
#define GEGL_OPERATION_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_OPERATION_SINK, GeglOperationSinkClass))
#define GEGL_IS_OPERATION_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_OPERATION_SINK))
#define GEGL_IS_OPERATION_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_OPERATION_SINK))
typedef struct _GeglOperationSink GeglOperationSink;
struct _GeglOperationSink
@ -41,12 +43,15 @@ typedef struct _GeglOperationSinkClass GeglOperationSinkClass;
struct _GeglOperationSinkClass
{
GeglOperationClass operation_class;
gboolean needs_full;
gboolean (*process) (GeglOperation *self,
gpointer context_id);
};
GType gegl_operation_sink_get_type (void) G_GNUC_CONST;
gboolean gegl_operation_sink_needs_full (GeglOperation *operation);
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@ -250,19 +250,15 @@ GeglBuffer * gegl_operation_get_source (GeglOperation *operation,
gpointer context_id,
const gchar *pad_name);
gboolean
gegl_operation_calc_source_regions (GeglOperation *operation,
gboolean gegl_operation_calc_source_regions (GeglOperation *operation,
gpointer context_id);
void
gegl_operation_vector_prop_changed (GeglVector *vector,
void gegl_operation_vector_prop_changed (GeglVector *vector,
GeglOperation *operation);
void
gegl_extension_handler_cleanup (void);
void gegl_extension_handler_cleanup (void);
void
gegl_operation_gtype_cleanup (void);
void gegl_operation_gtype_cleanup (void);
G_END_DECLS

View File

@ -77,6 +77,7 @@ gimp_operation_tile_sink_class_init (GimpOperationTileSinkClass * klass)
object_class->get_property = gimp_operation_tile_sink_get_property;
sink_class->process = gimp_operation_tile_sink_process;
sink_class->needs_full = FALSE;
gegl_operation_class_set_name (operation_class, "gimp-tilemanager-sink");;