Re: basic concepts and usage of gegl in gtk

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

 



On Thu, Jan 5, 2017 at 2:08 AM, Vincent
<debian-siril@xxxxxxxxxxxxxxxxxxxx> wrote:
> Thank you both for your answers. I finally made a sample application
> that reads a FITS file and tries to display the first channel's grey
> buffer in a gegl-gtk object.
>
> The code is here:
> https://free-astro.org/svn/siril/trunk/src/main_gegl_test.c
> you may also checkout trunk/deps/gegl-gtk. Compilation
> instructions are given at the top of the file, dependencies are GTK3,
> GEGL, gegl-gtk and cfitsio.
> A sample file is available here:
> https://free-astro.org/download/scott.fit

Changing this line:
   gegl_buffer_set(buf, &rect, 0, format, &fit.pdata[0], GEGL_AUTO_ROWSTRIDE);
to be:
   gegl_buffer_set(buf, &rect, 0, format, fit.pdata[0], GEGL_AUTO_ROWSTRIDE);

results in a window displaying an image rather than a seg fault for me.

Happy hacking :)
_______________________________________________
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