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, 5 Jan 2017 14:06:52 +0100
On Thu, Jan 5, 2017 at 2:08 AM, Vincent
<debian-siril free-astro vinvin tf> 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 :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]