Commit 6751ce94 authored by Øyvind Kolås's avatar Øyvind Kolås

s/calc_need_rect/calc_source_regions/

parent 9e824fb2
2006-09-03 Øyvind Kolås <pippin@gimp.org>
s/calc_need_rect/calc_source_regions/
* gegl/gegl-need-visitor.c: (visit_node):
* gegl/gegl-operation-composer.c:
(gegl_operation_composer_class_init), (calc_source_regions):
* gegl/gegl-operation-filter.c: (gegl_operation_filter_class_init),
(calc_source_regions):
* gegl/gegl-operation-source.c: (gegl_operation_source_class_init),
(calc_source_regions):
* gegl/gegl-operation.c: (gegl_operation_class_init),
(gegl_operation_calc_source_regions), (calc_source_regions):
* gegl/gegl-operation.h:
* operations/blur/box-blur.c: (calc_source_regions), (class_init):
* operations/blur/gaussian-blur.c: (calc_source_regions),
(class_init):
* operations/color/stretch-contrast.c: (calc_source_regions),
(class_init):
* operations/core/crop.c: (calc_source_regions), (class_init):
* operations/core/shift.c: (calc_source_regions), (class_init):
* operations/transform/affine.c: (op_affine_class_init),
(calc_source_regions):
2006-09-03 Øyvind Kolås <pippin@gimp.org>
Fix mistake in "class"->"operation" renaming patch, from Victor
......@@ -99,9 +123,9 @@
* gegl/gegl-chant.h:
* operations/blur/box-blur.c: (evaluate), (calc_have_rect),
(calc_need_rect):
(calc_source_regions):
* operations/blur/gaussian-blur.c: (evaluate), (calc_have_rect),
(calc_need_rect):
(calc_source_regions):
* operations/color/brightness-contrast.c: (evaluate):
* operations/color/invert.c:
* operations/color/stretch-contrast.c:
......@@ -1110,7 +1134,7 @@
A node's need_rect should be what is needed from it by its parents,
not what it needs from its children. An operation sets the need_rects
of its children using gegl_operation_set_need_rect(self) in its
calc_need_rect() function.
calc_source_regions() function.
2006-06-25 Øyvind Kolås <pippin@gimp.org>
......@@ -1680,12 +1704,12 @@
(gegl_node_get_need_rect), (gegl_node_get_debug_name):
* gegl/gegl-node.h:
* gegl/gegl-operation.c: (gegl_operation_class_init),
(gegl_operation_calc_have_rect), (gegl_operation_calc_need_rect),
(gegl_operation_calc_have_rect), (gegl_operation_calc_source_regions),
(gegl_operation_calc_comp_rect), (gegl_operation_calc_result_rect),
(associate), (gegl_operation_set_have_rect),
(gegl_operation_get_have_rect), (gegl_operation_set_need_rect),
(gegl_operation_set_comp_rect), (gegl_pad_get_connected_to2),
(gegl_operation_get_need_rect), (calc_have_rect), (calc_need_rect),
(gegl_operation_get_need_rect), (calc_have_rect), (calc_source_regions),
(calc_comp_rect), (calc_result_rect), (gegl_operation_need_rect),
(gegl_operation_have_rect), (gegl_operation_result_rect),
(gegl_operation_comp_rect):
......
......@@ -59,5 +59,5 @@ visit_node (GeglVisitor *self,
GeglOperation *operation = node->operation;
GEGL_VISITOR_CLASS (gegl_need_visitor_parent_class)->visit_node (self, node);
gegl_operation_calc_need_rect (operation);
gegl_operation_calc_source_regions (operation);
}
......@@ -48,7 +48,7 @@ static void associate (GeglOperation *operation);
static void clean_pads (GeglOperation *operation);
static GeglRect defined_region (GeglOperation *self);
static gboolean calc_need_rect (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
G_DEFINE_TYPE (GeglOperationComposer, gegl_operation_composer, GEGL_TYPE_OPERATION)
......@@ -68,7 +68,7 @@ gegl_operation_composer_class_init (GeglOperationComposerClass * klass)
operation_class->associate = associate;
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (object_class, PROP_OUTPUT,
g_param_spec_object ("output",
......@@ -239,7 +239,7 @@ defined_region (GeglOperation *self)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
GeglRect *need_rect = gegl_operation_need_rect (self);
......
......@@ -45,7 +45,7 @@ static gboolean evaluate (GeglOperation *operation,
static void associate (GeglOperation *operation);
static GeglRect defined_region (GeglOperation *self);
static gboolean calc_need_rect (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static void clean_pads (GeglOperation *operation);
G_DEFINE_TYPE (GeglOperationFilter, gegl_operation_filter, GEGL_TYPE_OPERATION)
......@@ -65,7 +65,7 @@ gegl_operation_filter_class_init (GeglOperationFilterClass * klass)
operation_class->associate = associate;
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (object_class, PROP_OUTPUT,
g_param_spec_object ("output",
......@@ -208,7 +208,7 @@ defined_region (GeglOperation *self)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
GeglRect *need_rect = gegl_operation_need_rect (self);
......
......@@ -45,7 +45,7 @@ static void clean_pads (GeglOperation *operation);
G_DEFINE_TYPE (GeglOperationSource, gegl_operation_source, GEGL_TYPE_OPERATION)
static GeglRect defined_region (GeglOperation *self);
static gboolean calc_need_rect (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static void
gegl_operation_source_class_init (GeglOperationSourceClass * klass)
......@@ -62,7 +62,7 @@ gegl_operation_source_class_init (GeglOperationSourceClass * klass)
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (gobject_class, PROP_OUTPUT,
g_param_spec_object ("output",
......@@ -166,7 +166,7 @@ defined_region (GeglOperation *self)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
return TRUE;
}
......@@ -37,7 +37,7 @@ static void associate (GeglOperation *self);
static void clean_pads (GeglOperation *self);
static GeglRect defined_region (GeglOperation *self);
static gboolean calc_need_rect (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static gboolean calc_result_rect (GeglOperation *self);
G_DEFINE_TYPE (GeglOperation, gegl_operation, G_TYPE_OBJECT)
......@@ -53,7 +53,7 @@ gegl_operation_class_init (GeglOperationClass * klass)
klass->prepare = NULL;
klass->clean_pads = clean_pads;
klass->defined_region = defined_region;
klass->calc_need_rect = calc_need_rect;
klass->calc_source_regions = calc_source_regions;
klass->calc_result_rect = calc_result_rect;
}
......@@ -119,14 +119,14 @@ gegl_operation_defined_region (GeglOperation *self)
}
gboolean
gegl_operation_calc_need_rect (GeglOperation *self)
gegl_operation_calc_source_regions (GeglOperation *self)
{
GeglOperationClass *klass;
klass = GEGL_OPERATION_GET_CLASS (self);
if (klass->calc_need_rect)
return klass->calc_need_rect (self);
if (klass->calc_source_regions)
return klass->calc_source_regions (self);
return FALSE;
}
......@@ -341,7 +341,7 @@ defined_region (GeglOperation *self)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
g_warning ("Op '%s' has no proper need_rect function",
G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS(self)));
......
......@@ -67,7 +67,7 @@ struct _GeglOperationClass
GeglRect (*defined_region) (GeglOperation *self);
gboolean (*calc_need_rect) (GeglOperation *self);
gboolean (*calc_source_regions) (GeglOperation *self);
gboolean (*calc_result_rect) (GeglOperation *self);
};
......@@ -92,7 +92,7 @@ gboolean gegl_operation_register (GeglOperation *self,
GeglNode *node);
void gegl_operation_clean_pads (GeglOperation *self);
GeglRect gegl_operation_defined_region (GeglOperation *self);
gboolean gegl_operation_calc_need_rect (GeglOperation *self);
gboolean gegl_operation_calc_source_regions (GeglOperation *self);
gboolean gegl_operation_calc_result_rect (GeglOperation *self);
/* this method defined for the Operation, even though it acts on the Node.
......
......@@ -241,7 +241,7 @@ defined_region (GeglOperation *operation)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
ChantInstance *blur = GEGL_CHANT_INSTANCE (self);
GeglRect *need = gegl_operation_need_rect (self);
......@@ -256,7 +256,7 @@ calc_need_rect (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
}
#endif
......@@ -307,7 +307,7 @@ defined_region (GeglOperation *operation)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
GeglRect *need = gegl_operation_need_rect (self);
ChantInstance *blur = GEGL_CHANT_INSTANCE(self);
......@@ -323,7 +323,7 @@ calc_need_rect (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
}
#endif
......@@ -156,7 +156,7 @@ evaluate (GeglOperation *operation,
* compute the scale op.
*/
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
GeglRect *requested;
requested = gegl_operation_need_rect (self);
......@@ -177,7 +177,7 @@ calc_need_rect (GeglOperation *self)
*/
static void class_init (GeglOperationClass *operation_class)
{
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
}
#endif
......@@ -91,7 +91,7 @@ defined_region (GeglOperation *operation)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
GeglRect *requested = gegl_operation_need_rect (self);
......@@ -105,7 +105,7 @@ calc_need_rect (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
}
#endif
......@@ -84,7 +84,7 @@ defined_region (GeglOperation *operation)
}
static gboolean
calc_need_rect (GeglOperation *self)
calc_source_regions (GeglOperation *self)
{
ChantInstance *op_shift = (ChantInstance*)(self);
GeglRect *requested = gegl_operation_need_rect (self);
......@@ -99,7 +99,7 @@ calc_need_rect (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->calc_need_rect = calc_need_rect;
operation_class->calc_source_regions = calc_source_regions;
}
#endif
......@@ -61,7 +61,7 @@ static gboolean is_composite_node (OpAffine *affine);
static void get_source_matrix (OpAffine *affine,
Matrix3 output);
static GeglRect defined_region (GeglOperation *op);
static gboolean calc_need_rect (GeglOperation *op);
static gboolean calc_source_regions (GeglOperation *op);
static gboolean evaluate (GeglOperation *op,
const gchar *output_prop);
......@@ -120,7 +120,7 @@ op_affine_class_init (OpAffineClass *klass)
gobject_class->get_property = get_property;
op_class->defined_region = defined_region;
op_class->calc_need_rect = calc_need_rect;
op_class->calc_source_regions = calc_source_regions;
op_class->categories = "geometry";
filter_class->evaluate = evaluate;
......@@ -380,7 +380,7 @@ defined_region (GeglOperation *op)
}
static gboolean
calc_need_rect (GeglOperation *op)
calc_source_regions (GeglOperation *op)
{
OpAffine *affine = (OpAffine *) op;
Matrix3 inverse;
......
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