Commit 0c7de021 authored by Øyvind Kolås's avatar Øyvind Kolås

s/gegl_operation_need_rect/gegl_operation_get_requested_region/

parent 377edd67
2006-09-03 Øyvind Kolås <pippin@gimp.org>
s/gegl_operation_need_rect/gegl_operation_get_requested_region/
* gegl/gegl-operation-composer.c: (calc_source_regions):
* gegl/gegl-operation-filter.c: (calc_source_regions):
* gegl/gegl-operation.c: (gegl_operation_get_requested_region):
* gegl/gegl-operation.h:
* operations/blur/box-blur.c: (calc_source_regions):
* operations/blur/gaussian-blur.c: (calc_source_regions):
* operations/color/stretch-contrast.c: (process),
(calc_source_regions):
* operations/core/crop.c: (calc_source_regions):
* operations/core/shift.c: (calc_source_regions):
* operations/display/display.c: (process):
* operations/render/blank.c: (process):
* operations/render/checkerboard.c: (process):
* operations/render/noise.c: (process):
* operations/transform/affine.c: (calc_source_regions):
2006-09-03 Øyvind Kolås <pippin@gimp.org>
s/gegl_operation_set_need_rect/gegl_operation_set_source_region/
......
......@@ -241,7 +241,7 @@ get_defined_region (GeglOperation *self)
static gboolean
calc_source_regions (GeglOperation *self)
{
GeglRect *need_rect = gegl_operation_need_rect (self);
GeglRect *need_rect = gegl_operation_get_requested_region (self);
gegl_operation_set_source_region (self, "input", need_rect);
gegl_operation_set_source_region (self, "aux", need_rect);
......
......@@ -210,7 +210,7 @@ get_defined_region (GeglOperation *self)
static gboolean
calc_source_regions (GeglOperation *self)
{
GeglRect *need_rect = gegl_operation_need_rect (self);
GeglRect *need_rect = gegl_operation_get_requested_region (self);
gegl_operation_set_source_region (self, "input", need_rect);
return TRUE;
......
......@@ -111,8 +111,6 @@ gegl_operation_get_defined_region (GeglOperation *self)
GeglOperationClass *klass;
klass = GEGL_OPERATION_GET_CLASS (self);
g_warning ("'%s'.get_defined_region",
G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS(self)));
if (klass->get_defined_region)
return klass->get_defined_region (self);
return rect;
......@@ -354,7 +352,7 @@ calc_result_rect (GeglOperation *self)
}
GeglRect *
gegl_operation_need_rect (GeglOperation *operation)
gegl_operation_get_requested_region (GeglOperation *operation)
{
g_assert (operation);
g_assert (operation->node);
......
......@@ -107,9 +107,10 @@ void gegl_operation_set_source_region (GeglOperation *operation,
void gegl_operation_set_result_region (GeglOperation *operation,
GeglRect *region);
GeglRect *gegl_operation_need_rect (GeglOperation *operation);
GeglRect *gegl_operation_have_rect (GeglOperation *operation);
GeglRect *gegl_operation_result_rect (GeglOperation *operation);
GeglRect *gegl_operation_get_requested_region (GeglOperation *operation);
GeglRect *gegl_operation_have_rect (GeglOperation *operation);
GeglRect *gegl_operation_result_rect (GeglOperation *operation);
G_END_DECLS
......
......@@ -244,7 +244,7 @@ static gboolean
calc_source_regions (GeglOperation *self)
{
ChantInstance *blur = GEGL_CHANT_INSTANCE (self);
GeglRect need = *gegl_operation_need_rect (self);
GeglRect need = *gegl_operation_get_requested_region (self);
gint radius = ceil(blur->radius);
need.x-=radius;
......
......@@ -309,7 +309,7 @@ get_defined_region (GeglOperation *operation)
static gboolean
calc_source_regions (GeglOperation *self)
{
GeglRect need = *gegl_operation_need_rect (self);
GeglRect need = *gegl_operation_get_requested_region (self);
ChantInstance *blur = GEGL_CHANT_INSTANCE(self);
gint radius_x = ceil(blur->radius_x+0.5);
gint radius_y = ceil(blur->radius_y+0.5);
......
......@@ -91,7 +91,7 @@ process (GeglOperation *operation,
gdouble min, max;
input = filter->input;
result = gegl_operation_need_rect (operation);
result = gegl_operation_get_requested_region (operation);
if (result->w==0 ||
result->h==0)
......@@ -159,7 +159,7 @@ static gboolean
calc_source_regions (GeglOperation *self)
{
gegl_operation_set_source_region (self, "input",
gegl_operation_need_rect (self));
gegl_operation_get_requested_region (self));
return TRUE;
}
......
......@@ -93,7 +93,7 @@ static gboolean
calc_source_regions (GeglOperation *self)
{
gegl_operation_set_source_region (self, "input",
gegl_operation_need_rect (self));
gegl_operation_get_requested_region (self));
return TRUE;
}
......
......@@ -87,7 +87,7 @@ static gboolean
calc_source_regions (GeglOperation *self)
{
ChantInstance *op_shift = (ChantInstance*)(self);
GeglRect rect = *gegl_operation_need_rect (self);
GeglRect rect = *gegl_operation_get_requested_region (self);
rect.x -= op_shift->x;
rect.y -= op_shift->y;
......
......@@ -84,7 +84,7 @@ process (GeglOperation *operation,
GeglOperationFilter *op_filter = GEGL_OPERATION_FILTER (operation);
ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
GeglBuffer *source;
GeglRect *need = gegl_operation_need_rect (operation);
GeglRect *need = gegl_operation_get_requested_region (operation);
SDL_Surface **sdl_outwin = NULL; //op_sym (op, "sdl_outwin");
if(strcmp("output", output_prop))
......
......@@ -43,7 +43,7 @@ process (GeglOperation *operation,
g_object_unref (op_source->output);
op_source->output=NULL;
need = gegl_operation_need_rect (operation);
need = gegl_operation_get_requested_region (operation);
{
GeglRect *result = gegl_operation_result_rect (operation);
......
......@@ -49,7 +49,7 @@ process (GeglOperation *operation,
g_object_unref (op_source->output);
op_source->output=NULL;
need = gegl_operation_need_rect (operation);
need = gegl_operation_get_requested_region (operation);
{
GeglRect *result = gegl_operation_result_rect (operation);
gfloat *buf;
......
......@@ -53,7 +53,7 @@ process (GeglOperation *operation,
g_object_unref (op_source->output);
op_source->output=NULL;
need = gegl_operation_need_rect (operation);
need = gegl_operation_get_requested_region (operation);
{
GeglRect *result = gegl_operation_result_rect (operation);
......
......@@ -389,7 +389,7 @@ calc_source_regions (GeglOperation *op)
gdouble need_points [8];
gint i;
requested_rect = *(gegl_operation_need_rect (op));
requested_rect = *(gegl_operation_get_requested_region (op));
if (is_intermediate_node (affine) ||
matrix3_is_identity (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