babl: add support for grayscale spaces
authorØyvind Kolås <pippin@gimp.org>
Sun, 18 Aug 2019 22:01:13 +0000 (00:01 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sun, 18 Aug 2019 22:02:43 +0000 (00:02 +0200)
commit446331df3b1cceac4ec631a4ea4f675197ea20e3
treec05ceeb4d8ba40affd0f074ecfcf12ed756e2548
parentd9c757e16ae06cf48373c39559d9d3b02bc33809
babl: add support for grayscale spaces

A grayscale space is just like an RGB space, but has a default set
of chromaticities for R,G,B. When ICC profiles are loaded only the TRC
is considered is considered (we could also include the whitepoint),
blackpoint tag is ignored (and should be baked into the used ICC
profile instead.)

This works with GIMP-2.10 but master of GIMP currently hangs when
trying to load a grayscale jpeg with attached grayscale ICC profile,
The if #0 on line 999 of babl/babl-icc.c needs to be turned into a
1 to enable grayscale icc profiles for further testing.
babl/babl-icc.c
babl/babl-space.c
babl/babl-space.h
babl/babl.h
export-symbols