GeglBuffer *src_buffer; GeglBuffer *sink_buffer =NULL; src_buffer = gegl_buffer_new (GEGL_RECTANGLE (0,0,10,10), in_format); ptn = gegl_node_new (); src = gegl_node_new_child (ptn,"operation","gegl:buffer-source","buffer", src_buffer,NULL); opacity = gegl_node_new_child (p...
}else{// Using GeglBuffer with aligned tiles for zero-copy accessself->buffer = GEGL_BUFFER(g_object_new(GEGL_TYPE_BUFFER,"x", self->extent_rect.x,"y", self->extent_rect.y,"width", self->extent_rect.width,"height", self->extent_rect.height,"format", self->format,"tile-width",...
The edge limitation means that only ports with typeGeglBuffer(image data) can be connected together. Other data-types are in GEGL exposed as aGProperty, and can currently only be set it to aFBP IIPliteral. In the future, support for streaming property changes from outside is planned. ...
gint width = gegl_buffer_get_width (apply_buffer); gint height = gegl_buffer_get_height (apply_buffer);if(applicator->src_buffer != src_buffer) { applicator->src_buffer = src_buffer;gegl_node_set(applicator->src_node,"buffer", src_buffer,NULL); }if(applicator->apply_buffer != apply...
GeglBuffer *output,constGeglRectangle *result){constBabl *in_format = gegl_operation_get_format (operation,"input");constBabl *out_format = gegl_operation_get_format (operation,"output"); gint err; gint j; cl_int cl_err; GeglOperationAreaFilter *op_area =GEGL_OPERATION_AREA_FILTER(operatio...
test_end ("passthrough", gegl_buffer_get_pixel_count (buffer2) *16); g_object_unref (gegl); g_object_unref (buffer2);return0; } 开发者ID:ChristianBusch,项目名称:gegl,代码行数:29,代码来源:passthrough.c 示例2: main ▲点赞 6▼ ...
output = gegl_node_get_output_proxy (node,"output"); coef = gegl_node_new_child (node,"operation","gegl:buffer-source","buffer", ct->coef,NULL); cage = gegl_node_new_child (node,"operation","gimp:cage-transform","config", ct->config,"fill_plain_color", options->fill_plain_color...
sampler = gegl_buffer_sampler_new (NULL, babl_format("RaGaBaA float"), gegl_sampler_type_from_string (affine->filter)); context_rect = *gegl_sampler_get_context_rect (sampler); g_object_unref (sampler);if(gegl_operation_source_get_bounding_box(op,"input")) ...