Commit 5d8490c7 authored by Øyvind "pippin" Kolås's avatar Øyvind "pippin" Kolås

pack: take offsets of input buffers into account

parent 6d4b25e6
Pipeline #180815 passed with stages
in 8 minutes and 34 seconds
......@@ -38,6 +38,8 @@ property_enum (orientation, _("Orientation"), GeglOrientation, gegl_orientation,
typedef struct
{
GeglNode *reset_origin_input;
GeglNode *reset_origin_aux;
GeglNode *over;
GeglNode *translate;
int in_width;
......@@ -131,8 +133,8 @@ update_graph (GeglOperation *operation)
GeglNode *aux = gegl_node_get_input_proxy (gegl, "aux");
GeglNode *output = gegl_node_get_output_proxy (gegl, "output");
gegl_node_link_many (input, state->over, output, NULL);
gegl_node_link_many (aux, state->translate, NULL);
gegl_node_link_many (input, state->reset_origin_input, state->over, output, NULL);
gegl_node_link_many (aux, state->reset_origin_aux, state->translate, NULL);
gegl_node_connect_from (state->over, "aux",
state->translate, "output");
......@@ -148,6 +150,8 @@ attach (GeglOperation *operation)
state->over = gegl_node_new_child (gegl, "operation", "gegl:over", NULL);
state->translate = gegl_node_new_child (gegl, "operation", "gegl:translate", NULL);
state->reset_origin_input = gegl_node_new_child (gegl, "operation", "gegl:reset-origin", NULL);
state->reset_origin_aux = gegl_node_new_child (gegl, "operation", "gegl:reset-origin", NULL);
}
static void
......
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