From 5572f8fc9026b9bbbdbc014f024ca1445459aa39 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Sat, 13 Jul 2024 12:23:16 +0200 Subject: [PATCH] Support animated JPEG XL images --- src/tilesource.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tilesource.c b/src/tilesource.c index f90e44d..256ab30 100644 --- a/src/tilesource.c +++ b/src/tilesource.c @@ -164,8 +164,9 @@ tilesource_open(Tilesource *tilesource, int level) "page", level, NULL); } - else if (vips_isprefix("webp", tilesource->loader) || - vips_isprefix("gif", tilesource->loader)) { + else if (vips_isprefix("webp", tilesource->loader) || + vips_isprefix("gif", tilesource->loader) || + vips_isprefix("jxl", tilesource->loader)) { /* These formats have pages all the same size and support page and n. */ image = vips_image_new_from_file(tilesource->filename, @@ -209,7 +210,7 @@ tilesource_render_notify_idle(void *user_data) } /* Come here from the vips_sink_screen() background thread when a tile has been - * calculated. This is a bbackground thread, so we add an idle callback + * calculated. This is a background thread, so we add an idle callback * which will be run by the main thread when it next hits the mainloop. */ static void @@ -1226,9 +1227,9 @@ tilesource_print(Tilesource *tilesource) printf("\tpages_same_size = %d\n", tilesource->pages_same_size); printf("\tall_mono = %d\n", tilesource->all_mono); printf("\ttype = %s\n", - vips_enum_nick(TYPE_SOURCE_TYPE, tilesource->type)); + vips_enum_nick(TYPE_TYPE, tilesource->type)); printf("\tmode = %s\n", - vips_enum_nick(TYPE_SOURCE_MODE, tilesource->mode)); + vips_enum_nick(TYPE_MODE, tilesource->mode)); printf("\tdelay = %p\n", tilesource->delay); printf("\tn_delay = %d\n", tilesource->n_delay); printf("\tdisplay_width = %d\n", tilesource->display_width);