RSS/Atom feed Twitter
Site is read-only, email is disabled

Specifying chromaticities alongside gegl buffer data

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Specifying chromaticities alongside gegl buffer data Mukund Sivaraman 25 Feb 21:03
  Specifying chromaticities alongside gegl buffer data Øyvind Kolås 09 Mar 12:28
Mukund Sivaraman
2015-02-25 21:03:52 UTC (about 9 years ago)

Specifying chromaticities alongside gegl buffer data

Hi all

In the babl roadmap, there is the suggestion of a babl_define_named_rgb_space() proto that takes the chromaticities to create a babl format. This looks like a good idea, but I have a couple of questions regarding it:

1. A GIMP plug-in's address space is different from the GIMP host application's. After a file plug-in is done reading data into the app, it is terminated. If a babl format is created using a function such as above, how will a plug-in be able to pass a buffer to the host app, so that the buffer's format in the host app has corresponding chromaticities to what the plug-in had?

2. Assuming that processing operations want to work with buffers with known input formats and return a buffer with a known output format, do all such formats with custom chromaticities require naming? Would it not be sufficient if babl knew that the buffer was in an anonymous format with these associated chromaticities and knew how to convert it to a well-known format that a processing op would request (such as "RGB float")? i.e., the format is never looked up by name once it is created.

These questions rise out of the OpenEXR format that Houz and I were looking at this week. There doesn't seem to be a way to pass the original source data as it exists in the EXR file and associated chromaticities from the plug-in to the GIMP app.

(The GIMP app could repeat creating a babl format in the host app for the plug-in by having the plug-in pass the chromaticities using libgimp* function calls, but there should be a way to avoid having the plug-in repeat itself. Rather than calling babl directly, perhaps it may have to create a babl format using libgimp.)

Mukund

Øyvind Kolås
2015-03-09 12:28:42 UTC (about 9 years ago)

Specifying chromaticities alongside gegl buffer data

On Wed, Feb 25, 2015 at 10:03 PM, Mukund Sivaraman wrote:

1. A GIMP plug-in's address space is different from the GIMP host application's. After a file plug-in is done reading data into the app, it is terminated. If a babl format is created using a function such as above, how will a plug-in be able to pass a buffer to the host app, so that the buffer's format in the host app has corresponding chromaticities to what the plug-in had?

This problem is similar to the extra code needed to synchronize palette/indexed babl formats between the GIMP plug-in host/clients. Thus some inspiration could be taken from that, or improvements to the approach might also apply there.

/pippin