Re: [Gimp-developer] How to deal with pixel-per-pixel operations?

On Tue, 2013-06-11 at 14:03 +0200, Alessandro Francesconi wrote:
Got problems here...

Following the goat example, I downloaded the libgegl-dev 0.2 package (I'm on Debian)

For GIMP git master, you need babl master and gegl master, no tarballs.


 and I've started including the necessary libs in my source code:

#include <libgimp/gimp.h>

#include <libgimp/gimpui.h>

#include <gegl.h>

gegl_init() is recognized, but gimp_drawable_get_buffer() and gimp_drawable_get_shadow_buffer() don't.
They appears to be defined in the git repository, here:
But looking at the gimp 2.8.4 libs I have in my machine, gimpdrawable.h does not contain those definitions!

Don't tell me... gimp_drawable_get_buffer() and similar are not yet in the set of available APIs for 
GIMP-dev 2.8.4.... is it right? How can I develop a GEGL plugin for 2.8.4 application in these conditions? 

(a bit angry) Ale

From: alessandrofrancesconi live it
To: pippin gimp org
Date: Tue, 11 Jun 2013 10:53:26 +0000
CC: gimp-developer-list gnome org
Subject: Re: [Gimp-developer] How to deal with pixel-per-pixel operations?

Thank you so much!


Da: Øyvind Kolås
Data invio: ‎martedì‎ ‎11‎ ‎giugno‎ ‎2013 ‎12‎.‎49
A: Alessandro Francesconi
Cc: gimp-developer-list gnome org

On Tue, Jun 11, 2013 at 11:05 AM, Alessandro Francesconi <alessandrofrancesconi live it> wrote:

Thanks for the answer, I’m not new on GIMP plugin’s development but I’m totally new on GEGL operations!

After a first look, it seems that none of the standard plugins from the GIMP’s procedure database use 
GEGL for their operations, and the only way to test a operation made with GEGL is to open this dialog:

.... am I wrong?

I mean, is it possible to define a new plugin using the classical method with ’gimp_install_procedure()’, 
making it accessible through the PDB and writing a ”complex” user interface with GTK, but using GEGL APIs 
for the image manipulation phase?

Take a look at goat-exercise.c in gimp/plug-ins/common, it shows how to get and manipulate image 
drawables as GeglBuffers. For documentation on GEGL see or the docs dir of your own GEGL 

«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson                  
gimp-developer-list mailing list
gimp-developer-list gnome org
gimp-developer-list mailing list
gimp-developer-list gnome org

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