Add ability to import JXL images

This commit is contained in:
xiota
2021-09-21 22:19:27 -07:00
parent 11240bc97d
commit dfc82c403c
12 changed files with 218 additions and 8 deletions

View File

@@ -90,6 +90,12 @@ void StdImageSource::getSampleFormat (const Glib::ustring &fname, IIOSampleForma
if (result == IMIO_SUCCESS) {
return;
}
#ifdef JXL
} else if (hasJxlExtension(fname)) {
sFormat = IIOSF_FLOAT32;
sArrangement = IIOSA_CHUNKY;
return;
#endif
} else if (hasTiffExtension(fname)) {
int result = ImageIO::getTIFFSampleFormat (fname, sFormat, sArrangement);