Commit 0188d29d authored by Øyvind Kolås's avatar Øyvind Kolås

s/defined_region/get_defined_region/

parent 6751ce94
2006-09-03 Øyvind Kolås <pippin@gimp.org>
s/defined_region/get_defined_region/
* gegl/gegl-chant.h:
* gegl/gegl-have-visitor.c: (visit_node):
* gegl/gegl-operation-composer.c:
(gegl_operation_composer_class_init), (get_defined_region):
* gegl/gegl-operation-filter.c: (gegl_operation_filter_class_init),
(get_defined_region):
* gegl/gegl-operation-source.c: (gegl_operation_source_class_init),
(get_defined_region):
* gegl/gegl-operation.c: (gegl_operation_class_init),
(gegl_operation_get_defined_region), (get_defined_region):
* gegl/gegl-operation.h:
* operations/blur/box-blur.c: (get_defined_region), (class_init):
* operations/blur/gaussian-blur.c: (get_defined_region),
(class_init):
* operations/core/crop.c: (get_defined_region), (class_init):
* operations/core/shift.c: (get_defined_region), (class_init):
* operations/file-io/jpg-load.c: (get_defined_region):
* operations/file-io/magick-load.c: (get_defined_region):
* operations/file-io/png-load.c: (get_defined_region):
* operations/file-io/raw-load.c: (get_defined_region):
* operations/render/blank.c: (get_defined_region):
* operations/render/checkerboard.c: (get_defined_region):
* operations/render/noise.c: (get_defined_region):
* operations/render/text.c: (get_defined_region):
* operations/transform/affine.c: (op_affine_class_init),
(get_defined_region):
2006-09-03 Øyvind Kolås <pippin@gimp.org>
s/calc_need_rect/calc_source_regions/
......
......@@ -383,7 +383,7 @@ static void class_init (GeglOperationClass *operation_class);
#endif
#ifdef GEGL_CHANT_SOURCE
static GeglRect defined_region (GeglOperation *self);
static GeglRect get_defined_region (GeglOperation *self);
#endif
static void
......@@ -411,7 +411,7 @@ gegl_chant_class_init (ChantClass * klass)
#endif
#ifdef GEGL_CHANT_SOURCE
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
#endif
#define M_GEGL_CHANT_SET_NAME_EXTENDED(name) \
......
......@@ -61,6 +61,6 @@ visit_node (GeglVisitor *self,
GEGL_VISITOR_CLASS (gegl_have_visitor_parent_class)->visit_node (self, node);
rect = gegl_operation_defined_region (operation);
rect = gegl_operation_get_defined_region (operation);
gegl_operation_set_have_rect (operation, rect.x, rect.y, rect.w, rect.h);
}
......@@ -47,7 +47,7 @@ static gboolean evaluate (GeglOperation *operation,
static void associate (GeglOperation *operation);
static void clean_pads (GeglOperation *operation);
static GeglRect defined_region (GeglOperation *self);
static GeglRect get_defined_region (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
......@@ -67,7 +67,7 @@ gegl_operation_composer_class_init (GeglOperationComposerClass * klass)
operation_class->evaluate = evaluate;
operation_class->associate = associate;
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (object_class, PROP_OUTPUT,
......@@ -220,7 +220,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *self)
get_defined_region (GeglOperation *self)
{
GeglRect result = {0,0,0,0};
GeglRect *in_rect = gegl_operation_get_have_rect (self, "input");
......
......@@ -44,7 +44,7 @@ static gboolean evaluate (GeglOperation *operation,
static void associate (GeglOperation *operation);
static GeglRect defined_region (GeglOperation *self);
static GeglRect get_defined_region (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static void clean_pads (GeglOperation *operation);
......@@ -64,7 +64,7 @@ gegl_operation_filter_class_init (GeglOperationFilterClass * klass)
operation_class->evaluate = evaluate;
operation_class->associate = associate;
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (object_class, PROP_OUTPUT,
......@@ -193,7 +193,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *self)
get_defined_region (GeglOperation *self)
{
GeglRect result = {0,0,0,0};
GeglRect *in_rect;
......
......@@ -44,7 +44,7 @@ static void clean_pads (GeglOperation *operation);
G_DEFINE_TYPE (GeglOperationSource, gegl_operation_source, GEGL_TYPE_OPERATION)
static GeglRect defined_region (GeglOperation *self);
static GeglRect get_defined_region (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static void
......@@ -61,7 +61,7 @@ gegl_operation_source_class_init (GeglOperationSourceClass * klass)
operation_class->associate = associate;
operation_class->clean_pads = clean_pads;
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
g_object_class_install_property (gobject_class, PROP_OUTPUT,
......@@ -157,7 +157,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *self)
get_defined_region (GeglOperation *self)
{
GeglRect result = {0,0,0,0};
g_warning ("Gegl Source '%s' has no proper have_rect function",
......
......@@ -36,7 +36,7 @@ static void gegl_operation_init (GeglOperation *self);
static void associate (GeglOperation *self);
static void clean_pads (GeglOperation *self);
static GeglRect defined_region (GeglOperation *self);
static GeglRect get_defined_region (GeglOperation *self);
static gboolean calc_source_regions (GeglOperation *self);
static gboolean calc_result_rect (GeglOperation *self);
......@@ -52,7 +52,7 @@ gegl_operation_class_init (GeglOperationClass * klass)
klass->associate = associate;
klass->prepare = NULL;
klass->clean_pads = clean_pads;
klass->defined_region = defined_region;
klass->get_defined_region = get_defined_region;
klass->calc_source_regions = calc_source_regions;
klass->calc_result_rect = calc_result_rect;
}
......@@ -105,16 +105,16 @@ gegl_operation_evaluate (GeglOperation *self,
}
GeglRect
gegl_operation_defined_region (GeglOperation *self)
gegl_operation_get_defined_region (GeglOperation *self)
{
GeglRect rect = {0,0,0,0};
GeglOperationClass *klass;
klass = GEGL_OPERATION_GET_CLASS (self);
g_warning ("'%s'.defined_region",
g_warning ("'%s'.get_defined_region",
G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS(self)));
if (klass->defined_region)
return klass->defined_region (self);
if (klass->get_defined_region)
return klass->get_defined_region (self);
return rect;
}
......@@ -332,7 +332,7 @@ gegl_operation_set_result_rect (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *self)
get_defined_region (GeglOperation *self)
{
GeglRect rect = {0,0,0,0};
g_warning ("Op '%s' has no proper have_rect function",
......
......@@ -58,17 +58,18 @@ struct _GeglOperationClass
gchar *description;
char *categories; /* a colon seperated list of categories */
gboolean (*evaluate) (GeglOperation *self,
const gchar *output_pad);
gboolean (*evaluate) (GeglOperation *self,
const gchar *output_pad);
void (*associate) (GeglOperation *self);
void (*prepare) (GeglOperation *self);
void (*clean_pads) (GeglOperation *self);
void (*associate) (GeglOperation *self);
void (*prepare) (GeglOperation *self);
void (*clean_pads) (GeglOperation *self);
GeglRect (*defined_region) (GeglOperation *self);
GeglRect (*get_defined_region) (GeglOperation *self);
gboolean (*calc_source_regions) (GeglOperation *self);
gboolean (*calc_result_rect) (GeglOperation *self);
gboolean (*calc_source_regions) (GeglOperation *self);
gboolean (*calc_result_rect) (GeglOperation *self);
};
......@@ -91,7 +92,7 @@ void gegl_operation_create_pad (GeglOperation *self,
gboolean gegl_operation_register (GeglOperation *self,
GeglNode *node);
void gegl_operation_clean_pads (GeglOperation *self);
GeglRect gegl_operation_defined_region (GeglOperation *self);
GeglRect gegl_operation_get_defined_region (GeglOperation *self);
gboolean gegl_operation_calc_source_regions (GeglOperation *self);
gboolean gegl_operation_calc_result_rect (GeglOperation *self);
......
......@@ -222,7 +222,7 @@ ver_blur (GeglBuffer *src,
#include <math.h>
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result;
GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input");
......@@ -255,7 +255,7 @@ calc_source_regions (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
}
......
......@@ -287,7 +287,7 @@ ver_blur (GeglBuffer *src,
#include <math.h>
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result;
GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input");
......@@ -322,7 +322,7 @@ calc_source_regions (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
}
......
......@@ -72,7 +72,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result;
ChantInstance *op_crop = (ChantInstance*)(operation);
......@@ -104,7 +104,7 @@ calc_source_regions (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
}
......
......@@ -68,7 +68,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *op_shift = (ChantInstance*)(operation);
......@@ -98,7 +98,7 @@ calc_source_regions (GeglOperation *self)
static void class_init (GeglOperationClass *operation_class)
{
operation_class->defined_region = defined_region;
operation_class->get_defined_region = get_defined_region;
operation_class->calc_source_regions = calc_source_regions;
}
......
......@@ -102,7 +102,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
......
......@@ -94,7 +94,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
......
......@@ -116,7 +116,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
......
......@@ -74,7 +74,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
......
......@@ -65,7 +65,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {-10000000,-10000000,20000000,20000000};
return result;
......
......@@ -93,7 +93,7 @@ evaluate (GeglOperation *operation,
}
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {-10000000,-10000000, 20000000, 20000000};
return result;
......
......@@ -95,7 +95,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {-10000000, -10000000, 20000000, 20000000};
return result;
......
......@@ -145,7 +145,7 @@ evaluate (GeglOperation *operation,
static GeglRect
defined_region (GeglOperation *operation)
get_defined_region (GeglOperation *operation)
{
GeglRect result = {0,0,0,0};
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
......
......@@ -60,7 +60,7 @@ static gboolean is_intermediate_node (OpAffine *affine);
static gboolean is_composite_node (OpAffine *affine);
static void get_source_matrix (OpAffine *affine,
Matrix3 output);
static GeglRect defined_region (GeglOperation *op);
static GeglRect get_defined_region (GeglOperation *op);
static gboolean calc_source_regions (GeglOperation *op);
static gboolean evaluate (GeglOperation *op,
const gchar *output_prop);
......@@ -119,7 +119,7 @@ op_affine_class_init (OpAffineClass *klass)
gobject_class->set_property = set_property;
gobject_class->get_property = get_property;
op_class->defined_region = defined_region;
op_class->get_defined_region = get_defined_region;
op_class->calc_source_regions = calc_source_regions;
op_class->categories = "geometry";
......@@ -312,7 +312,7 @@ get_source_matrix (OpAffine *affine,
}
static GeglRect
defined_region (GeglOperation *op)
get_defined_region (GeglOperation *op)
{
OpAffine *affine = (OpAffine *) op;
OpAffineClass *klass = OP_AFFINE_GET_CLASS (affine);
......
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