heiflib 1.3.2 no longer minimum supported version
GIMP version: Master/a3a95ad4
Operating System: Debian, WSL.
When trying to build GIMP from source, either with Autotools or Meson, the following errors were encountered during the build process.
file-heif.c: In function ‘load_image’:
file-heif.c:843:15: warning: implicit declaration of function ‘heif_image_handle_get_luma_bits_per_pixel’; did you mean ‘heif_image_get_bits_per_pixel’? [-Wimplicit-function-declaration]
bit_depth = heif_image_handle_get_luma_bits_per_pixel (handle);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heif_image_get_bits_per_pixel
file-heif.c:870:20: error: ‘heif_chroma_interleaved_RRGGBBAA_LE’ undeclared (first use in this function); did you mean ‘heif_chroma_interleaved_RGBA’?
chroma = heif_chroma_interleaved_RRGGBBAA_LE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heif_chroma_interleaved_RGBA
file-heif.c:870:20: note: each undeclared identifier is reported only once for each function it appears in
file-heif.c:874:20: error: ‘heif_chroma_interleaved_RRGGBB_LE’ undeclared (first use in this function); did you mean ‘heif_chroma_interleaved_RGBA’?
chroma = heif_chroma_interleaved_RRGGBB_LE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heif_chroma_interleaved_RGBA
file-heif.c: In function ‘save_image’:
file-heif.c:1296:14: warning: returning ‘void *’ from a function with return type ‘gboolean’ {aka ‘int’} makes integer from pointer without a cast [-Wint-conversion]
return NULL;
^~~~
file-heif.c:1332:32: error: ‘heif_chroma_interleaved_RRGGBBAA_LE’ undeclared (first use in this function); did you mean ‘heif_chroma_interleaved_RGBA’?
heif_chroma_interleaved_RRGGBBAA_LE :
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heif_chroma_interleaved_RGBA
file-heif.c:1333:32: error: ‘heif_chroma_interleaved_RRGGBB_LE’ undeclared (first use in this function); did you mean ‘heif_chroma_interleaved_RGBA’?
heif_chroma_interleaved_RRGGBB_LE,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heif_chroma_interleaved_RGBA
After discussion on GIMPNet it's apparent that some recent changes to the heif plugin have caused heiflib 1.3.2 to no longer be supported for building GIMP with.
I have a fix ready that should allow the plugin to build, as part of the GIMP build process, that should return the functionality to what it was like before the compile-breaking change however I have no familiarity with submitting a fix and will likely need guidance on how to do so properly.