Re: [Gegl-developer] basic concepts and usage of gegl in gtk
- From: Øyvind Kolås <pippin gimp org>
- To: Vincent <debian-siril free-astro vinvin tf>
- Cc: gegl-developer-list <gegl-developer-list gnome org>
- Subject: Re: [Gegl-developer] basic concepts and usage of gegl in gtk
- Date: Thu, 29 Dec 2016 01:17:48 +0100
On Wed, Dec 28, 2016 at 11:34 PM, Vincent
<debian-siril free-astro vinvin tf> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]