Re: basic concepts and usage of gegl in gtk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 28, 2016 at 11:34 PM, Vincent
<debian-siril@xxxxxxxxxxxxxxxxxxxx> wrote:
>     gegl_buffer_set(buf, &_rect, 1, format, image_buffer, GEGL_AUTO_ROWSTRIDE);

> The problem is that all I get from this code is segfaults. What did I
> miss? Isn't gegl-gtk supposed to display the image data given by the
> output port of a node? Is something required to transform the gegl
> buffer data to a format that the gegl-gtk widget can understand?

Without a downloadable buildable code example it is hard to diagnose
what is going wrong, based on reading the provided source there is at
least one other thing going wrong. You should be providing 0 as the
mipmap level/third argument of gegl_buffer_set, if writing directly to
mipmap level 1, display at scales <50% zoom will only read empty
pixels. The side effect of this would be nothing displayed though; not
segfaults.

/pippin
_______________________________________________
gegl-developer-list mailing list
List address:    gegl-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list




[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux