static gboolean process (GeglOperation *operation, GeglBuffer *input, GeglBuffer *output, const GeglRectangle *result, gint level) { GeglChantO *o = GEGL_CHANT_PROPERTIES (operation); GeglRectangle input_rect = gegl_operation_get_required_for_output (operation, "input", result); hor_min ( input, &input_rect, output, result, o->radius); ver_min (output, result, output, result, o->radius); return TRUE; }
static gboolean process (GeglOperation *operation, GeglBuffer *input, GeglBuffer *output, const GeglRectangle *result, gint level) { GeglProperties *o = GEGL_PROPERTIES (operation); GeglRectangle input_rect = gegl_operation_get_required_for_output (operation, "input", result); if (gegl_cl_is_accelerated ()) if (cl_process (operation, input, output, result)) return TRUE; hor_min ( input, &input_rect, output, result, o->radius); ver_min (output, result, output, result, o->radius); return TRUE; }